[PR #13657] feat: tui should show pending permissions or questions when attaching to a session #14758

Open
opened 2026-02-16 18:19:31 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/13657

State: open
Merged: No


Closes https://github.com/anomalyco/opencode/issues/10564

What does this PR do?

When attaching to a session that generated questions or permissions while no TUI was running, this loads them in on attach.

How did you verify your code works?

  1. Started opencode withopencode serve --port 4100
  2. Created a session and sent a prompt via prompt_async that triggers the question tool
  3. Waited for the question.asked SSE event to fire
  4. Attached to the session: opencode attach http://127.0.0.1:4100 -s <sessionId>
  5. Confirmed the pending questions rendered interactively in the TUI
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/13657 **State:** open **Merged:** No --- Closes https://github.com/anomalyco/opencode/issues/10564 ### What does this PR do? When attaching to a session that generated questions or permissions while no TUI was running, this loads them in on attach. ### How did you verify your code works? 1. Started opencode with`opencode serve --port 4100` 2. Created a session and sent a prompt via `prompt_async` that triggers the question tool 3. Waited for the `question.asked` SSE event to fire 4. Attached to the session: `opencode attach http://127.0.0.1:4100 -s <sessionId>` 5. Confirmed the pending questions rendered interactively in the TUI
yindo added the pull-request label 2026-02-16 18:19:31 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14758