mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[GH-ISSUE #586] TUI doesn't show pending permissions or questions when attaching to a session #928
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#928
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tensor-ninja on GitHub (Jan 25, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/586
When using
opencode attachto 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.You can reproduce by:
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.tsxonly populatesstore.permissionandstore.questionfrom SSE eventspermission.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:
But the TUI doesn't call these during bootstrap.
I think we should add API calls to the bootstrap sequence in
sync.tsxto fetch pending permissions and questions:@msmps commented on GitHub (Jan 25, 2026):
@tensor-ninja this belongs in https://github.com/anomalyco/opencode
@tensor-ninja commented on GitHub (Jan 25, 2026):
oops. My bad. Thanks @msmps