Skip to content

feat: add delegation tree to InterfacePanel#583

Merged
FL4TLiN3 merged 3 commits intomainfrom
feat/delegation-tree-interface-panel
Feb 19, 2026
Merged

feat: add delegation tree to InterfacePanel#583
FL4TLiN3 merged 3 commits intomainfrom
feat/delegation-tree-interface-panel

Conversation

@FL4TLiN3
Copy link
Contributor

Summary

  • Add real-time delegation tree visualization to the InterfacePanel, showing hierarchical expert structure with status indicators, current actions, and context window usage
  • Add useDelegationTree hook for event-driven state management with runId aliasing and expertKey fallback for robust node tracking across run resumes
  • Add useElapsedTime hook for job duration tracking that stops on completion
  • Redesign InterfacePanel layout as status bar + delegation tree + input field, with per-child pruning of completed subtrees

Test plan

  • Unit tests for all pure functions (formatTokenCount, formatElapsedTime, deriveActionLabel, processDelegationTreeEvent, flattenTree, getInProgressCount) — 44 tests
  • pnpm typecheck passes (23/23)
  • pnpm test passes (1132 tests)
  • pnpm build passes (23/23)
  • Manual verification: run TUI with delegating expert to confirm tree renders correctly

🤖 Generated with Claude Code

FL4TLiN3 and others added 3 commits February 19, 2026 13:08
…alization

Add a delegation tree component that displays the hierarchical structure of
expert delegations in real-time, showing each expert's status, current action,
and context window usage. The tree prunes completed subtrees to keep the
display focused on active work.

Key changes:
- Add useDelegationTree hook with event-driven state management
- Add useElapsedTime hook for job duration tracking
- Add DelegationTree rendering component with box-drawing tree structure
- Redesign InterfacePanel as status bar + delegation tree + input field
- Remove marginLeft from delegated expert activity log entries

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ed module

- Add changeset for tui-components minor bump
- Fix Biome formatting in use-execution-state.ts
- Remove unused use-streaming-phase.ts and its barrel export

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Patch bump is appropriate since minor/major requires all packages to bump together.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@FL4TLiN3 FL4TLiN3 force-pushed the feat/delegation-tree-interface-panel branch from 92f0f77 to 96ab968 Compare February 19, 2026 13:08
@FL4TLiN3 FL4TLiN3 merged commit a82ec5b into main Feb 19, 2026
11 checks passed
@FL4TLiN3 FL4TLiN3 deleted the feat/delegation-tree-interface-panel branch February 19, 2026 13:09
@FL4TLiN3 FL4TLiN3 mentioned this pull request Feb 19, 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