Skip to content

fix(runner): stream Claude lane progress - #321

Open
davidrobertson wants to merge 1 commit into
ericlitman:mainfrom
davidrobertson:fix/stream-claude-runner-progress
Open

davidrobertson wants to merge 1 commit into
ericlitman:mainfrom
davidrobertson:fix/stream-claude-runner-progress

Conversation

@davidrobertson

Copy link
Copy Markdown
Contributor

Why

Claude's JSON output arrives at the end of a turn. Until then, the runner's stdout sidecar can stay empty even when Claude is working. Stream events so callers can see progress while the lane runs.

What changed

  • Capture Claude's newline-delimited events in the existing private stdout sidecar as they arrive.
  • Read the final response and model proof from the terminal result. Preserve a reported error reason in the receipt, even when startup output fills the evidence limit.

Scope

This covers external Claude lanes. They keep their existing access controls and deadline behavior.

Blast Radius

Consumers that inspect Claude's raw stdout sidecar now receive one JSON object per line. The final response file and receipt schema keep their current formats.

Verification

  • The runner regression fails with terminal JSON and passes with streaming. The fake CLI holds the terminal result while the test checks for a startup event.
  • The Bun suite, strict typecheck, static checks, and Claude plugin validation passed.
  • A live pstack-runner call from Codex saw system:init before the receipt and completed a synthetic prompt with provider-verified Claude Opus 5.5. The maintainer live-gate feature for this path is codex:runner.

@mergify

mergify Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

Merge Protections

🟠 1 of 2 protections blocking · waiting on 🤖 CI

Protection Waiting on
🟠 Queue ready pull requests 🤖 CI
🟢 🚦 Auto-queue —

🟠 Queue ready pull requests

Waiting for

  • check-success=live-gate
Waiting checks: live-gate.

Automatically queue non-draft pull requests targeting main after verify and live-gate pass on the head and every review thread is resolved.

  • check-success=live-gate
  • #review-threads-unresolved = 0
  • -draft
  • check-success=verify

Show 1 satisfied protection

🟢 🚦 Auto-queue

When all merge protections are satisfied and these conditions match, this pull request will be queued automatically.

  • -files~=^\.github/
  • base = main

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