Skip to content

[FEATURE]: Question Tool 'type your own answer' doesnt' support file references #11026

Closed as not planned

Description

@AyushWalekar

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Type your own answer section in question tool input doesn't support adding file reference.

Image

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 28, 2026
  2. bezerra-lapc commented on Jan 28, 2026

    @bezerra-lapc

    Hello, I'll see what I can do to help you. After I'll return with documentation of my changes.

  3. bezerra-lapc commented on Jan 28, 2026

    @bezerra-lapc

    Hello again, I made some changes and here go the screenshots of use and below the documentation. I don't send the pull request, because I wanna read your opinion.

    Image Image

    Doc:

    File references in “Type your own answer” (tool question)

    What changed

    In the TUI (planning mode), when the question tool shows the “Type your own answer” option, you can now insert file references like @path/to/file using the same autocomplete behavior as the main prompt input.

    This fixes the case where the custom answer input couldn’t (or couldn’t easily) reference files during the question flow.

    How to test / use

    1. Start the TUI and enter a flow that triggers the question tool (e.g., planning mode).
    2. Select “Type your own answer” to focus the textarea.
    3. Type @ and start writing a path (e.g., @README.md).
    4. Use autocomplete:
      • tab: selects the highlighted autocomplete item
      • esc: closes autocomplete
    5. To submit the custom answer:
      • press enter again (with autocomplete closed) to confirm/advance, as before.

    Implementation location

    • question tool UI (TUI): packages/opencode/src/cli/cmd/tui/routes/session/question.tsx
  4. AyushWalekar commented on Jan 29, 2026

    @AyushWalekar
    ContributorAuthor

    looks good!

  5. bezerra-lapc commented on Jan 29, 2026

    @bezerra-lapc
  6. jesseleite commented on Mar 10, 2026

    @jesseleite

    Agreed! And not just @mention'ing files, but also subagents from this 'Type your own answer' input 🙏

  7. removed
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
  8. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions