Skip to content

feat(flow-chat): add recursive agent session tree - #1985

Merged
wsp1911 merged 2 commits into
GCWing:mainfrom
wsp1911:dev2
Aug 2, 2026
Merged

feat(flow-chat): add recursive agent session tree#1985
wsp1911 merged 2 commits into
GCWing:mainfrom
wsp1911:dev2

Conversation

@wsp1911

@wsp1911 wsp1911 commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

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:

  • Adds persisted session lineage APIs with remote workspace support.
  • Adds an Agents tree popover with live lifecycle status and session titles.
  • Supports per-session cancellation without automatically cancelling descendants.
  • Highlights the Agents entry for active foreground and background descendants.
  • Preserves manual collapse state while sessions are running.
  • Replaces the background activity panel with a background command panel.
  • Updates localized labels, icons, styles, and focused tests.

Verification

  • pnpm run type-check:web
  • pnpm --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.ts
  • pnpm run i18n:audit
  • pnpm --dir src/web-ui run lint
  • pnpm run theme:color-audit:all
  • cargo check -p bitfun-desktop
  • cargo check --workspace
  • pnpm run check:core-boundaries
  • git diff --check

Manual UI interaction verification was not performed per repository instructions.

Reviewer Notes

  • cancelDescendants defaults to true for backward compatibility.
  • Agents tree cancellation explicitly passes cancelDescendants: false.
  • Persisted metadata remains authoritative for display titles while live sessions provide runtime state.
  • No database migration is required.

Checklist

  • This PR is focused and does not include secrets, temporary prompts, generated scratch files, or unrelated artifacts.
  • Relevant verification is recorded above, or skipped checks are explained.
  • User-facing strings, docs, and locales are updated where applicable.

@wsp1911
wsp1911 force-pushed the dev2 branch 2 times, most recently from 7c4d8d5 to 69c920b Compare August 2, 2026 18:15
wsp1911 added 2 commits August 3, 2026 02:15
- 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.
@wsp1911
wsp1911 merged commit a3d2527 into GCWing:main Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant