feat(web): add agent output terminal tabs for orchestrator sessions #522

Merged
jason.woltje merged 1 commits from feat/ms19-agent-terminal into main 2026-02-26 04:04:27 +00:00
Owner

Summary

  • Add hook — SSE connection to , tracks agent lifecycle (spawned → running → completed/error)
  • Add component — read-only pre-based output view with ANSI stripping, status badges, copy button, live elapsed timer
  • Integrate agent tabs into — agent sessions appear alongside PTY tabs with visual divider
  • 79 new tests (31 useAgentStream + 34 AgentTerminal + 14 TerminalPanel integration)

Task

CT-ORCH-002 — Agent output in terminal

Test Plan

  • TypeScript: 0 errors
  • Vitest: 1441 tests pass (104 files)
  • Agent lifecycle: spawned → output → completed/error
  • Agent tabs render alongside terminal tabs
  • Dismiss removes completed/errored agents
  • All 5 themes supported via CSS variables
## Summary - Add hook — SSE connection to , tracks agent lifecycle (spawned → running → completed/error) - Add component — read-only pre-based output view with ANSI stripping, status badges, copy button, live elapsed timer - Integrate agent tabs into — agent sessions appear alongside PTY tabs with visual divider - 79 new tests (31 useAgentStream + 34 AgentTerminal + 14 TerminalPanel integration) ## Task CT-ORCH-002 — Agent output in terminal ## Test Plan - [x] TypeScript: 0 errors - [x] Vitest: 1441 tests pass (104 files) - [x] Agent lifecycle: spawned → output → completed/error - [x] Agent tabs render alongside terminal tabs - [x] Dismiss removes completed/errored agents - [x] All 5 themes supported via CSS variables
jason.woltje added 1 commit 2026-02-26 04:04:21 +00:00
feat(web): add agent output terminal tabs for orchestrator sessions (CT-ORCH-002)
All checks were successful
ci/woodpecker/push/web Pipeline was successful
61522f43aa
Implements read-only agent output viewing in the TerminalPanel as a
separate tab group alongside interactive PTY terminal sessions.

- useAgentStream hook: SSE connection to /api/orchestrator/events with
  exponential backoff reconnect, per-agent output accumulation, and
  full lifecycle tracking (spawning→running→completed/error)
- AgentTerminal component: read-only <pre>-based output view with ANSI
  stripping, status indicator (pulse/dot), status badge, elapsed duration,
  copy-to-clipboard, and error message overlay
- TerminalPanel integration: agent tabs appear automatically when agents
  are active, show colored status dots, dismissable when completed/error,
  and section divider separates terminal vs agent tabs
- 79 new unit tests across useAgentStream, AgentTerminal, and TerminalPanel

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jason.woltje merged commit 9b2520ce1f into main 2026-02-26 04:04:27 +00:00
Sign in to join this conversation.