Skip to content

fix(#517): report the attempts actually made when proxy init fails fast - #521

Merged
debugmcpdev merged 1 commit into
mainfrom
fix/517-init-attempt-count
Aug 27, 2026
Merged

fix(#517): report the attempts actually made when proxy init fails fast#521
debugmcpdev merged 1 commit into
mainfrom
fix/517-init-attempt-count

Conversation

@debugmcpdev

Copy link
Copy Markdown
Collaborator

Follow-up from the #515 review (#517): the retry loop breaks out early once the worker has exited (no ack can arrive), but the thrown message was still built from the constant retry budget — a launch that fast-failed on attempt 2 reported "after 6 attempts". The count is the first thing a reader uses to judge how long the launch actually spent trying, so 6-vs-2 changes the read considerably.

Change

sendInitWithRetry now tracks the attempts actually made and distinguishes the two exits:

  • exhausted: Failed to initialize proxy after 6 attempts.
  • fast-fail: Failed to initialize proxy after 2 attempts (proxy exited; further retries skipped).

The exit details appended to the message (code=… signal=… stderr:) are unchanged — they still carry the actionable part.

Tests

Full unit suite (4227 tests) and lint pass.

Fixes #517

🤖 Generated with Claude Code

https://claude.ai/code/session_01XtvNu3aNB1nw1URRL5UTgR

Follow-up from the #515 review: the retry loop breaks out early once the
worker has exited (no ack can arrive), but the thrown message was still
built from the constant retry budget — a launch that fast-failed on
attempt 2 reported "after 6 attempts", misreading how long the launch
spent trying.

Track the attempts actually made and say which exit happened:
- exhausted:  "Failed to initialize proxy after 6 attempts."
- fast-fail:  "Failed to initialize proxy after 2 attempts (proxy
  exited; further retries skipped)."

The exit details appended to the message (code/signal/stderr) are
unchanged. The two pinning tests now assert the new wording, and the
exhaustion test pins that the full count keeps its plain form.

Fixes #517

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XtvNu3aNB1nw1URRL5UTgR
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@debugmcpdev
debugmcpdev merged commit 5761f4d into main Aug 27, 2026
10 checks passed
@debugmcpdev
debugmcpdev deleted the fix/517-init-attempt-count branch August 27, 2026 16:48
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.

proxy init failure says "after 6 attempts" even when it fast-failed on attempt 2

1 participant