feat(flow-chat): add recursive agent session tree - #1985
Merged
Conversation
wsp1911
force-pushed
the
dev2
branch
2 times, most recently
from
August 2, 2026 18:15
7c4d8d5 to
69c920b
Compare
- expose persisted session lineage through desktop and remote session APIs - merge lineage snapshots with live state in a recursive Flow Chat tree - add localized tree controls, lifecycle states, and focused coverage
- Add recursive Agents session lineage tree with live status tracking. - Replace the background activity panel with a background command panel. - Support non-cascading cancellation for individual agent sessions. - Highlight the Agents entry for active foreground and background descendants. - Preserve persisted session titles and manual tree collapse state. - Update desktop/server APIs, localization, styles, and focused tests.
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
Add a recursive Agents session tree for FlowChat and replace the legacy background subagent activity panel with a background command panel.
Fixes #
Type and Areas
Type:
Feature / bug fix / UI/UX / test
Areas:
Rust core, desktop/Tauri, server/relay, web UI, localization
Motivation / Impact
Agents can now be viewed as a recursive parent-child session hierarchy.
This PR:
Verification
pnpm run type-check:webpnpm --dir src/web-ui run test:run src/flow_chat/components/modern/FlowChatHeader.test.tsx src/flow_chat/components/modern/SessionTreePopover.test.tsx src/flow_chat/utils/sessionLineage.test.ts src/web-ui/src/infrastructure/api/service-api/AgentAPI.test.tspnpm run i18n:auditpnpm --dir src/web-ui run lintpnpm run theme:color-audit:allcargo check -p bitfun-desktopcargo check --workspacepnpm run check:core-boundariesgit diff --checkManual UI interaction verification was not performed per repository instructions.
Reviewer Notes
cancelDescendantsdefaults totruefor backward compatibility.cancelDescendants: false.Checklist