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]: TUI should show pending permissions or questions when attaching to a session #10564
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
When using opencode attach to connect to a running server, the TUI does not display permissions or questions that were asked while no TUI was attached. This blocks the detach/reattach workflow.
Expected: The pending question should be displayed in the TUI
Actual: The question is not shown; the session appears stuck on N questions asked
The TUI's sync context src/cli/cmd/tui/context/sync.tsx only populates store.permission and store.question from SSE events permission.asked, question.asked. When a TUI attaches after the event has already fired, it never receives the event and doesn't know about pending items.
The server already has endpoints to list pending items:
GET /permission - Lists all pending permission requests
GET /question - Lists all pending question requests
But the TUI doesn't call these during bootstrap.
I think we should add API calls to the bootstrap sequence in sync.tsx to fetch pending permissions and questions:
I am building an opencode agent orchestrator and needed this functionality, so I took @tensor-ninja 's idea and tried it out. Seems to work great. #13657
Activity
dseravalli commentedon Feb 14, 2026
I am building an opencode agent orchestrator and needed this functionality, so I took @tensor-ninja 's idea and tried it out. Seems to work great.
#13657
tensor-ninja commentedon Feb 15, 2026
Yes! I'd love to see this merged!
github-actions commentedon Apr 17, 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.