feat(app): add workflow graph modal for subagent session tree#1827
Open
yashranaway wants to merge 1 commit into
Open
feat(app): add workflow graph modal for subagent session tree#1827yashranaway wants to merge 1 commit into
yashranaway wants to merge 1 commit into
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
@yashranaway is attempting to deploy a commit to the Different AI Team on Vercel. A member of the Team first needs to authorize it. |
3c000be to
47518cb
Compare
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.
Closes #1763
Summary
WorkflowGraphModalthat renders the parent/child session hierarchy for the current workspace as a tree of cards. Each card shows the session title, a status dot, and a "{count} subagent(s)" badge when the subtree has children, with a CSS connector line linking parents to their children.View workflow graphentry into the React command palette (next to the settings tabs) so the modal is one ⌘+K stroke away. The entry is rendered conditionally and only appears when a workspace is selected, so it stays out of the way on the welcome surface.buildSessionTreeStatehelper from the sidebar so the modal and the sidebar agree on what counts as a parent/child relationship and which subtree is active. No new data plumbing, no new server call.Verification
node scripts/i18n-audit.mjs --cipasses with the newsession.workflow_graph_*andsession.cmd_workflow_graph_*keys added.pnpm --filter @openwork/app typecheckcurrently fails on the same pre-existingorigin/deverrors inmessaging-view-state.ts,app-sidebar.tsx, andsettings-route.tsx(lines 1324-1557); this branch does not touch those files.OPENWORK_DEV_MODE=1 pnpm dev: created a workspace, sent a prompt that spawned subagents via the task tool, opened the modal from ⌘+K → "View workflow graph". The tree renders with both root sessions and their subagent children connected by the indent line, and each card navigates back to its session on click.Screenshot
Notes
parentID), and visual-regression tests. The modal subscribes to the same reactiveworkspaceSessionGroupssnapshot the sidebar uses, so changes propagate on the next re-render without a dedicated stream.