You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Question Tool 'type your own answer' doesnt' support file references #11026
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.
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
Start the TUI and enter a flow that triggers the question tool (e.g., planning mode).
Select “Type your own answer” to focus the textarea.
Type @ and start writing a path (e.g., @README.md).
Use autocomplete:
tab: selects the highlighted autocomplete item
esc: closes autocomplete
To submit the custom answer:
press enter again (with autocomplete closed) to confirm/advance, as before.
Activity
bezerra-lapc commentedon Jan 28, 2026
Hello, I'll see what I can do to help you. After I'll return with documentation of my changes.
bezerra-lapc commentedon Jan 28, 2026
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.
Doc:
File references in “Type your own answer” (tool
question)What changed
In the TUI (planning mode), when the
questiontool shows the “Type your own answer” option, you can now insert file references like@path/to/fileusing 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
questiontool (e.g., planning mode).@and start writing a path (e.g.,@README.md).tab: selects the highlighted autocomplete itemesc: closes autocompleteenteragain (with autocomplete closed) to confirm/advance, as before.Implementation location
questiontool UI (TUI):packages/opencode/src/cli/cmd/tui/routes/session/question.tsxAyushWalekar commentedon Jan 29, 2026
looks good!
bezerra-lapc commentedon Jan 29, 2026
I'll open a PR.
And I return.
But if you wanna use, follow my branch and my commit link:
https://github.com/bezerraluiz/opencode/tree/issue-11026
https://github.com/bezerraluiz/opencode/commit/db3e3ce601020f0c17eca44ba1aa12fee38c67dc
jesseleite commentedon Mar 10, 2026
Agreed! And not just @mention'ing files, but also subagents from this 'Type your own answer' input 🙏
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.