Repository navigation
Conversation
…ses its owner Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
/ai-review Generated by Claude Code |
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 135.7 MB, up 4.0 KB from 135.7 MB. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
There was a problem hiding this comment.
Superseded by a newer AI review
🤖 AI Review
CLI reference prose guidance: not applicable (no reference sources changed).
Both reviews identified one minor test coverage gap. The new command case verifies owner-loss diagnostics before the first stream event, leaving disconnects after streaming begins untested. The verdict is based on source inspection. CLI reference prose review was inapplicable.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | packages/stack/src/effect.integration.test.ts:1035 |
test-coverage |
claude+codex | The case named "a running command" drops the connection before the client receives any command event. It verifies the lease and log-tail diagnostic for a pending RPC and leaves the same diagnostic untested after streaming begins. The shared fiber name and early-settlement message also still describe the composition call. |
Stats
Claude findings: 1 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: manual · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: not applicable (no reference sources changed).
The PR adds owner lease and log-tail diagnostics to command-stream transport failures. Both findings are confirmed. The new test covers a disconnect before the first RPC response, leaving disconnects after attachment untested. Status, log, and stdin failures retain their existing generic diagnostics. The diff changes no CLI reference prose. This was a static review because workspace dependencies were absent.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | packages/stack/src/effect.integration.test.ts:986 |
test-coverage |
codex | The case named "a running command" only exercises a disconnect while the client is waiting for the first RPC response. It leaves a disconnect after command attachment untested. |
| ⚪ NIT | packages/stack/src/effect.ts:851 |
error-handling |
claude | Owner transport failures on status streams, log streams, and command stdin still omit the lease status and available owner log tail. |
Stats
Claude findings: 1 · Codex findings: 1 · Confirmed: 2 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
| }), | ||
| ), | ||
| Stream.mapError((cause) => failure("command", cause)), | ||
| Stream.catch((cause) => |
There was a problem hiding this comment.
⚪ NIT · error-handling · source: claude
Owner transport failures on status streams, log streams, and command stdin still omit the lease status and available owner log tail.
Evidence: packages/stack/src/effect.ts:851–853 passes the runCommand stream failure and its connection to ownerFailure. The shared stream helper at line 641 and both commandInput calls at lines 868 and 875 pass errors directly to failure. Line 194 appends owner detail only when supplied.
Suggested fix: For consistent diagnostics, use ownerFailure with the borrowed connection for RPC errors inside the shared stream helper and for both commandInput calls.
There was a problem hiding this comment.
Correct, the status/log streams and commandInput still map failures directly. This PR covers only the runCommand stream path, because that is where the contract-test flake failed (operation: 'command'). I am leaving the other paths to a separate change instead of widening this diagnostic PR.
Generated by Claude Code
Flaky test check: ✅ no flaky testsCommit Each execution is a separate Vitest process; |
jgoux
left a comment
There was a problem hiding this comment.
The TransportError path from the cited CI run is covered: the new command case fails without the effect.ts change and passes with it. One gap remains for the main case the PR describes, a command whose owner drops while it runs. Details inline.
…he response body Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MBEk1LbJ2E6dMJWE4Vhjtm
TL;DR
When a stack command loses its owner connection, the error now says whether that owner still holds the stack lease and shows its log tail, as calls already do. This covers drops both before and after the response headers.
apps/cli/tests/contract/contract.native-tls.integration.test.ts › consumer contract (stack/native over api.tls, project pair): catalog setup failed withOwner response unavailable … ECONNRESET(operation: 'command'), the same symptom as the openstart.e2e›auth.site_urlflake. The lease andowner.logtail detail only coveredcall, and only aTransportErrorbefore headers.runCommandmapped its stream failure without the detail, and a drop after headers surfaces asDecodeErrorduring the body read, so a command whose owner crashed mid-run gave no clue either way. Command stream failures now go through the same lost-owner observation, and both kinds count as a lost owner. The lost-owner integration test covers a pending call, a pending command and a command streaming output.ref
spotted in:
https://claude.ai/code/session_01MBEk1LbJ2E6dMJWE4Vhjtm
Generated by Claude Code