Skip to content

feat(delegation): continue_with_session and hide sub-sessions by default#375

Open
hkx1997 wants to merge 2 commits into
xintaofei:mainfrom
hkx1997:feat/delegation-continue-session-clean
Open

feat(delegation): continue_with_session and hide sub-sessions by default#375
hkx1997 wants to merge 2 commits into
xintaofei:mainfrom
hkx1997:feat/delegation-continue-session-clean

Conversation

@hkx1997

@hkx1997 hkx1997 commented Jul 23, 2026

Copy link
Copy Markdown

Summary

Multi-agent continue_with_session / close_session, plus sidebar treatment of delegated sub-sessions — no file-path context-menu changes.

Backend (codeg-mcp + broker)

  • New MCP tools: continue_with_session, close_session
  • Completed/failed children stay alive for reuse; cancel/close still tear down
  • Resume via external_id when the child process is gone
  • Same task_id for status/cancel after continue

Sidebar

  • Root list never shows delegation children (parent_id / kind=delegate / delegation_call_id)
  • Funnel toggle Show delegated sub-sessions (default off)
  • Sub badge uses DB markers only (not UI depth, so worktree indent is not mislabeled)
  • Parent shows an N sub hint when trees are hidden

Sub-agent dialog

  • Multi-turn timeline: while a continue turn streams, only the current reply partial is hidden; prior history stays

Test plan

  • pnpm exec vitest run src/lib/conversation-sidebar.test.ts src/lib/adapters/tool-kind-classifier.test.ts src/contexts/conversation-runtime-context.test.tsx (94 passed)
  • cargo check --manifest-path src-tauri/Cargo.toml --features test-utils --lib
  • ESLint on key frontend files (after prettier)
  • Manual: funnel default hides sub-trees; enable + expand shows real Sub rows only
  • Manual: delegate → wait for transcript → cancel → continue → dialog keeps prior turns

hkx1997 added 2 commits July 23, 2026 23:57
…efault

Add continue_with_session/close_session MCP tools so parent agents can resume
a failed or completed child without cold re-delegation. Keep completed/failed
children alive for resume, re-spawn via external_id when needed, and fix the
sub-agent dialog timeline to preserve multi-turn history during continue.

Sidebar: filter out delegation children from root lists
(parent_id/kind/delegation_call_id), add a funnel toggle for showing
sub-session trees (default off), and label sub-session rows when expanded.
@hkx1997
hkx1997 force-pushed the feat/delegation-continue-session-clean branch from 0edfcd6 to 6108844 Compare July 23, 2026 15:58
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