Repository navigation
fix(resume): success path must announce itself (no silent-success) - #120
Conversation
…t-success) A joiner that paired, teardown'd (no --flush), then ran 'airc connect' again printed 'Resuming as joiner of <peer>...' and went silent — even on full success. Fresh-pair printed 'Connected to <peer> (SSH verified, reminder: Xs)' at the corresponding spot; resume's success branch had no banner. Per the 'never swallow errors' rule (Joel, 2026-04-15): silent-success is the same evidence-eating shape as silent-failure, because the user can't distinguish 'SSH-paired-OK' from 'script-wedged-mid-startup'. Caught 2026-04-26 by vhsm-Claude observing through the substrate: 'fresh-join printed it; resume path didn't. silent-success same evidence-eating shape as silent-fail.' Fix: in cmd_connect's resume probe-success branch (the 'else' of 'if ! __AUTH_OK__ matched'), print 'Resumed as joiner of <peer> in #<room> (SSH verified)' or, for legacy 1:1 invites with no saved room_name, 'Resumed as joiner of <peer> (SSH verified)'. Mirrors the fresh-pair banner's content + intent. Test: scenario_resume_prints_connected_banner spawns host+joiner, teardowns joiner (preserving state), re-runs connect. Asserts both the entry banner AND the success banner appear in stdout. Pre-fix: only the entry banner. Post-fix: both. 2/2 pass. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Pull request overview
This PR ensures the airc connect resume success path is visibly acknowledged (avoiding “silent-success” after the initial “Resuming…” banner), and adds an integration scenario to prevent regressions.
Changes:
- Print a “Resumed as joiner … (SSH verified)” banner when the resume SSH probe succeeds (room and legacy 1:1 variants).
- Add a new integration scenario
resume_prints_connected_bannerand wire it into the test runner andall.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
airc |
Adds a resume-success banner after a successful resume SSH probe (room-aware). |
test/integration.sh |
Adds an integration scenario asserting both resume entry and resume success banners are printed; registers it in the mode dispatcher. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # or the script wedged. Fresh-pair prints "Connected to ..." | ||
| # at line ~2469; resume must too. Caught 2026-04-26 by | ||
| # vhsm-Claude observing through the substrate. |
There was a problem hiding this comment.
The comment references a specific line number ("line ~2469") as the location of the fresh-pair banner. This will drift over time and become misleading; prefer referencing the banner text (e.g., "Connected to ... (SSH verified") or the code block/function name instead of an approximate line number.
| # or the script wedged. Fresh-pair prints "Connected to ..." | |
| # at line ~2469; resume must too. Caught 2026-04-26 by | |
| # vhsm-Claude observing through the substrate. | |
| # or the script wedged. Fresh-pair prints the | |
| # "Connected to ... (SSH verified)" banner; resume must too. | |
| # Caught 2026-04-26 by vhsm-Claude observing through the substrate. |
| # tell SSH-pair-OK from script-wedged. Fresh-pair printed | ||
| # "Connected to '<peer>' (SSH verified, ...)" at line ~2469; |
There was a problem hiding this comment.
This scenario comment cites a concrete line number ("line ~2469") for where the fresh-pair banner prints. Line references in comments tend to rot as the file changes; consider referencing the banner text or the function/section that emits it rather than an approximate line number.
| # tell SSH-pair-OK from script-wedged. Fresh-pair printed | |
| # "Connected to '<peer>' (SSH verified, ...)" at line ~2469; | |
| # tell SSH-pair-OK from script-wedged. Fresh-pair already printed | |
| # the success banner "Connected to '<peer>' (SSH verified, ...)"; |
Summary
Pre-fix: a joiner that paired, teardown'd (no --flush), then ran
airc connectprintedResuming as joiner of <peer>...and went silent on success. Fresh-pair printedConnected to <peer> (SSH verified, reminder: Xs); resume's success branch had no analogous banner.Per the project's "never swallow errors" rule: silent-success is the same evidence-eating shape as silent-failure — the user can't tell
SSH-paired-OKfromscript-wedged-mid-startup.Caught by vhsm-Claude through the substrate while regression-testing #118: "fresh-join printed it; resume path didn't. silent-success same evidence-eating shape as silent-fail."
Fix
In
cmd_connect's resume probe-success branch, print:Resumed as joiner of '<peer>' in #<room> (SSH verified)(room mode)Resumed as joiner of '<peer>' (SSH verified)(legacy 1:1)Mirrors the fresh-pair banner's intent + format.
Test plan
bash test/integration.sh resume_prints_connected_banner— 2/2 pass (entry + success banners both fire). Pre-fix: only entry.Platform
No platform-specific change.
🤖 Generated with Claude Code