feat(tui): hint to view workflow agents after workflow tool runs#1353
Merged
Conversation
Dynamic-workflow agents already register as subagents in the session and
appear in the Subagents panel, but nothing told users the shortcut existed.
Render the session_child_first keybind hint after workflow tool messages too,
with workflow-specific copy ('view workflow agents'), reusing the existing
panel and navigation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
session_child_firstkeybind hint afterworkflowtool messages too, with workflow-specific copy (view workflow agents), reusing the existing panel and navigation.Why
Workflow guest scripts spawn agents via
agent()/parallel()/pipeline(), all usingactor.spawn({ mode: "subagent", sessionID })against the main session — so they are already listed inDialogSubagentand drillable to their transcripts. The only gap was discoverability: theactortool advertises the panel with aview subagentshint, but theworkflowtool rendered none.Change
packages/opencode/src/cli/cmd/tui/routes/session/index.tsx(AssistantMessage):hasActorPart/hasWorkflowPartmemos.actororworkflowtool part.view workflow agentsfor workflow messages,view subagentsotherwise (mixed messages fall back to the subagent wording). Samesession_child_firstkeybind —moveFirstChild()already includes workflow agents.No new data plumbing, schema, persistence, or runtime changes.
Verification
docs/compose/specs/2026-06-25-workflow-agents-view-hint-design.md).bun typecheckcould not be run in the authoring sandbox (missing installed deps). The change is a refactor of an already-type-checkedprops.parts.some(...)expression plus a string ternary, so it introduces no new types. Please confirmbun typecheckfrompackages/opencodein CI/your env.view workflow agentshint renders after the workflow tool message and the shortcut opens the Subagents panel listing the workflow's agents.Note on diff
The
chore: add generated filescommit (regenerated SDKtypes.gen.ts) was already part of this branch's history prior to this work; the functional change here is the ~12-lineindex.tsxedit.