Skip to content

fix(resume): success path must announce itself (no silent-success) - #120

Merged
joelteply merged 1 commit into
canaryfrom
fix/resume-success-no-silent-banner
Apr 26, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/resume-success-no-silent-banner

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Summary

Pre-fix: a joiner that paired, teardown'd (no --flush), then ran airc connect printed Resuming as joiner of <peer>... and went silent on success. Fresh-pair printed Connected 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-OK from script-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

…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]>
Copilot AI review requested due to automatic review settings April 26, 2026 17:19
@joelteply
joelteply merged commit b7bdcc4 into canary Apr 26, 2026
@joelteply
joelteply deleted the fix/resume-success-no-silent-banner branch April 26, 2026 17:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_banner and wire it into the test runner and all.

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.

Comment thread airc
Comment on lines +1815 to +1817
# 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.

Copilot AI Apr 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
# 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.

Copilot uses AI. Check for mistakes.
Comment thread test/integration.sh
Comment on lines +2161 to +2162
# tell SSH-pair-OK from script-wedged. Fresh-pair printed
# "Connected to '<peer>' (SSH verified, ...)" at line ~2469;

Copilot AI Apr 26, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
# 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, ...)";

Copilot uses AI. Check for mistakes.
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