Skip to content

feat(session): Claude Code-like client for session connect#40

Merged
hbrooks merged 1 commit into
mainfrom
feat/connect-claude-code-ui
Jul 12, 2026
Merged

feat(session): Claude Code-like client for session connect#40
hbrooks merged 1 commit into
mainfrom
feat/connect-claude-code-ui

Conversation

@hbrooks

@hbrooks hbrooks commented Jul 12, 2026

Copy link
Copy Markdown
Member

No description provided.

Render `agent session connect` like Claude Code instead of dumping the
raw stream: group tool calls with their results, space messages apart,
show assistant output clearly, and animate a status spinner.

- lib/events.ts: pure parser that shapes Claude Code step events into
  grouped, styled transcript items (tool calls, results, thinking,
  messages, summaries). Unit-tested.
- ui/ConnectApp.tsx: Ink UI with a live-rendered transcript, a composer
  that echoes your messages, queued-message region for sends mid-turn,
  elapsed timer, and ctrl+r to expand/collapse tool output.
- Drive the transcript from the structured steps API (GET
  /v1/sessions/{id}/steps); the WebSocket carries only text, so it is
  used as a wake plus status signal, backed by a slow poll.
- session start --connect: dedupe the header and replace the sandbox
  wait dots with a self-clearing spinner.

Changes are scoped to `session connect` (and `start --connect`).
@hbrooks hbrooks merged commit 244cfed into main Jul 12, 2026
1 check passed
@hbrooks hbrooks deleted the feat/connect-claude-code-ui branch July 12, 2026 12:20
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