Skip to content

Contain Claude probe stdin EPIPE#145

Merged
SDSLeon merged 1 commit into
masterfrom
cursor/contain-claude-probe-epipe-2ca1
Jun 8, 2026
Merged

Contain Claude probe stdin EPIPE#145
SDSLeon merged 1 commit into
masterfrom
cursor/contain-claude-probe-epipe-2ca1

Conversation

@SDSLeon

@SDSLeon SDSLeon commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Summary

Contain Claude SDK probe-owned stdin EPIPE errors by routing probe child creation through a guarded spawn helper, while preserving non-EPIPE stream failures.

Motivation

Production supervisor reports showed write EPIPE during Claude-related status/auth refresh work. The Claude SDK probe can emit child stdin EPIPE after the short-lived probe process exits, outside the awaited query path; keeping that broken pipe local prevents noisy supervisor-level errors without hiding unrelated stream failures.

Testing

  • pnpm run typecheck
  • pnpm exec vitest run src/supervisor/agents/claude/probe.test.ts
  • pnpm exec vitest run src/supervisor/runtime/agentAuthentication.test.ts
  • pnpm exec oxlint --type-aware --deny-warnings "src/supervisor/agents/claude/probe.ts" "src/supervisor/agents/claude/probe.test.ts" "src/supervisor/agents/claude/sdkProbeWorker.ts" "src/supervisor/agents/claude/sdkProbeProcess.ts"
  • pnpm exec oxfmt --check "src/supervisor/agents/claude/probe.ts" "src/supervisor/agents/claude/probe.test.ts" "src/supervisor/agents/claude/sdkProbeWorker.ts" "src/supervisor/agents/claude/sdkProbeProcess.ts"
  • git diff --check
  • pnpm run lint
  • pnpm run fmt:check
  • pnpm run test
  • Not run; reason: used focused checks for the supervisor-only bug fix.

Screenshots

N/A - supervisor runtime change.

Linked issue

Closes #

Open in Web Open in Cursor 

@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
lightcode-landing Skipped Skipped Jun 7, 2026 3:18am

@SDSLeon SDSLeon marked this pull request as ready for review June 8, 2026 02:22
@SDSLeon SDSLeon merged commit 62bbb4a into master Jun 8, 2026
6 checks passed
@SDSLeon SDSLeon deleted the cursor/contain-claude-probe-epipe-2ca1 branch June 8, 2026 02:22
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.

2 participants