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
Clicking on subagent labels in TUI does not navigate to subagent session #20184
After commit c5442d4 ("refactor(session): effectify SessionPrompt service"), clicking on subagent labels in the TUI no longer navigates to the subagent session view. Clicking does nothing.
The TUI click handler checks props.metadata.sessionId and only navigates if it's truthy. The sessionId is set via ctx.metadata() during task tool execution, but this metadata is being silently dropped due to a race condition in the new queue-based LLM layer.
This issue might be a duplicate of or closely related to existing issues. Please check:
Clicking on Task tool no longer navigates to subagent session #15769: "Clicking on Task tool no longer navigates to subagent session" (CLOSED) — same symptom, previously fixed via a different root cause (BlockTool→InlineTool refactor). Your issue may represent a regression of the same UX after a subsequent refactor.
Opened #20187 as a fix. The root cause is that ctx.metadata() fires while the part is still pending, and the processor's tool-call handler overwrites it with a fresh state. Fix uses a synchronous side-channel on the processor context to buffer metadata until the tool-call handler can merge it.
The same issue applies in the Web UI - clicking on subagents is not possible as long as they are running
I hadn't checked but yes there's nothing TUI specific about this bug.
Also, guessing everyone checking this bug is using some variation of the now-obsoleted Anthropic oauth plugin. The bug is when using @ai-sdk/anthropic directly, which is why it doesn't happen via Zen or other proxies.
From looking through the 1.4.0 code changes, this does not appear to have been fixed by merging the original bugfix PR. The click-navigation code itself changed very little, but the TUI worker/session event-stream plumbing was refactored substantially in 1.4.0, so it looks more likely that this started working again as a side effect of those broader changes.
Activity
github-actions commentedon Mar 31, 2026
This issue might be a duplicate of or closely related to existing issues. Please check:
If the fix from #15769 was inadvertently reverted or broken by
c5442d418, it may be worth referencing those issues for context.rmk40 commentedon Mar 31, 2026
Opened #20187 as a fix. The root cause is that
ctx.metadata()fires while the part is still pending, and the processor's tool-call handler overwrites it with a fresh state. Fix uses a synchronous side-channel on the processor context to buffer metadata until the tool-call handler can merge it.rmk40 commentedon Mar 31, 2026
Fix + E2E regression test: #20198 (supersedes #20187)
rmk40 commentedon Mar 31, 2026
Submitting as two PRs so the test infrastructure is reviewed separately from the bug fix:
Merge #20208 first, then #20210.
fix(session): preserve tool metadata across pending→running transition
Femumme commentedon Mar 31, 2026
The same issue applies in the Web UI - clicking on subagents is not possible as long as they are running
altendky commentedon Mar 31, 2026
@rmk40 has certainly made it further into this than i did. i'll close this for now presuming their work will be seen through. thanks!
altendky commentedon Mar 31, 2026
uhm... this is the issue, not the pr. sorry, i'll go close my pr now...
rmk40 commentedon Mar 31, 2026
I hadn't checked but yes there's nothing TUI specific about this bug.
Also, guessing everyone checking this bug is using some variation of the now-obsoleted Anthropic oauth plugin. The bug is when using @ai-sdk/anthropic directly, which is why it doesn't happen via Zen or other proxies.
Femumme commentedon Mar 31, 2026
Actually, I'm experiencing this with GitHub Copilot.
Navaneeth-Sharma commentedon Mar 31, 2026
same @Femumme , I'm also experiencing this with GitHub Copilot.
nabilfreeman commentedon Apr 11, 2026
Confirmed on my side that this is working again in OpenCode 1.4.0 installed via Homebrew. In the TUI I can click into subagents again.
nabilfreeman commentedon Apr 11, 2026
From looking through the 1.4.0 code changes, this does not appear to have been fixed by merging the original bugfix PR. The click-navigation code itself changed very little, but the TUI worker/session event-stream plumbing was refactored substantially in 1.4.0, so it looks more likely that this started working again as a side effect of those broader changes.
github-actions commentedon Jul 4, 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.