GeezerVison is showing github.com — fix(tui): restore subagent navigation by aryaminus · Pull Request #35762 · anomalyco/opencode
Conversation
aryaminus
commented
Jul 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Issue for this PR
Closes #34457
Also addresses the cancelled subagent navigation part of #32432 and the nested child navigation part of #15972.
Type of change
- Bug fix
- New feature
- Refactor / code improvement
- Documentation
What does this PR do?
This restores navigation into subagent sessions after task cancellation or interruption.
The main regression was that failed task rows could have a valid child session id, but the TUI treated the failed state as an error-expansion click and returned before running the row click handler. This PR lets failed rows with an onClick navigate, while preserving error expansion for failed rows that do not navigate anywhere.
It also keeps task cards linkable when the child session id is on top-level part metadata, keeps the subagent footer hint visible for completed/cancelled subagents, and fixes session.child.first to choose true direct children instead of siblings in nested sessions.
This does not change Windows-specific ctrl+x down key handling from #33085 or remap Ctrl+X from #23322.
How did you verify your code works?
npx --yes [email protected] test src/components/message-part.test.ts from packages/session-ui
npx --yes [email protected] run test test/cli/run/footer.view.test.tsx from packages/opencode
npx --yes [email protected] run test test/cli/tui/inline-tool-wrap-snapshot.test.tsx from packages/tui
npx --yes [email protected] typecheck from packages/session-ui
npx --yes [email protected] typecheck from packages/opencode
npx --yes [email protected] typecheck from packages/tui
- pre-push hook:
bun turbo typecheck (30 successful, 30 total)
Screenshots / recordings
No screenshot; this is a navigation/click behavior fix.
Checklist
- I have tested my changes locally
- I have not included unrelated changes in this PR
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
zack-heil-fhr, michael-schienbein-fhr, taylor-rackley-FHR, avery-hyman-fhr, atomic-235, XavierCLL, and christian-berard-fhr reacted with heart emoji
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Jul 12, 2026
|
Hi maintainers, this PR has been open for a few weeks with all checks green but no review yet.
This restores navigation into subagent sessions after task cancellation/interruption across three packages:
packages/tui/src/routes/session/index.tsx (InlineTool row click, children()/siblings() split for nested navigation)
packages/session-ui/src/components/message-part.tsx + new message-part-task.ts (task card session id resolution from top-level metadata)
packages/opencode/src/cli/cmd/run/footer.view.tsx (subagent footer hint visibility)
Closes #34457 and addresses parts of #32432 and #15972.
Could someone from the TUI / session-ui side take a look? cc @thdxr @rekram1-node @simonklee @Hona @Brendonovich
Happy to make any changes requested.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@thdxr can we get this fixed, please?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.
— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|