Repository navigation
acpmux: wait for live daemon peers - #35174
Conversation
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
web and size checks: green Shipped in:
|
|
Found 6 test failures on Blacksmith runners: Failures
|
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
|
Review (codex gpt-6-astra high, router-review): BLOCK at 7a7c65d BLOCK at 7a7c65d Visual verdict: no images; Leo tries the build
Follow-ups:
|
|
Review (codex gpt-6-astra high, router-review): BLOCK at bcfbb2d BLOCK at bcfbb2d Visual verdict: no images; Leo tries the build
Follow-ups: none |
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
|
Review (codex gpt-6-astra high, router-review): BLOCK at 116c0e7 BLOCK at 116c0e7 Visual verdict: unchanged by this diff.
Follow-ups: none |
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
|
Review (codex gpt-6.1-sol xhigh, router-review): BLOCK at d7e6af0 BLOCK at d7e6af0 Visual verdict: no images; Leo tries the build.
Follow-ups: none |
|
Review (codex gpt-6-astra high, router-review): BLOCK at 6c62632 BLOCK at 6c62632 Visual verdict: no images; Leo tries the build
|
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
|
Review (codex, router-review): SHIP at 13a93b9 Reviewer: codex gpt-6-astra high, fast tier. Follow-ups: 1. They land as checklist items in this PR's one follow-up tracking issue in this repo ( SHIP at 13a93b9 Visual verdict: no images; Leo tries the build
Follow-ups: [F1] Poll lock liveness while waiting for initialization so stale accepted sockets fail promptly. |
Bugbot needs on-demand usage enabledBugbot uses usage-based billing for this team and requires on-demand usage to be enabled. A team admin can enable on-demand usage in the Cursor dashboard. |
A newer verdict blocks 8580711 (no independent SHIP at the head).
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
Co-authored-by: Codex <199175422+chatgpt-codex-connector[bot]@users.noreply.github.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-58861fa38207c3a8ed1a
|
Review (codex, router-review): SHIP at 96d1a32 Reviewer: codex gpt-6-astra high, fast tier. Follow-ups: 2. They land as checklist items in this PR's one follow-up tracking issue in this repo ( SHIP at 96d1a32 Visual verdict: no images; Leo tries the build
Follow-ups:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-fb75b7af9902231028aa
…wlist (#35601) * ci: run the short-timeout ratchet on the tree, shrink its list, drop a new 2 s app gate The ci-guards step ran only the checker's unit tests, never the checker, so two new short hard timeouts landed after #35209 and nine fixed hits stayed listed. - ci-guards runs scripts/ci/check_short_timeouts.py after its tests. - AcpmuxSessionPage.summary waits AcpmuxEnvironment.answerDeadline, not 2 s, like its neighbours since #35075. - agent.rs HOST_KIND_BUDGET carries its `// timeout:` reason: a late host falls back to its profile and is asked again, nothing fails. - The allowlist drops the eight entries whose hits are gone and lowers host_load.rs to 1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-fb75b7af9902231028aa * ci: lower daemon.rs in the short-timeout allowlist to 6 after #35174 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-fb75b7af9902231028aa * ci: select the short-timeout ratchet test for every path it scans The ci-guards step sits in the `ci` matrix group, which workflow-guard-tests excludes, so a step there never runs on these PRs. The linux-guard lane runs tests/test_short_timeout_guard.py (whose first case scans the whole tree) only when the focused map selects it, and nothing mapped the scanned source paths to it. focused-tests-extra.json now maps the six scanned prefixes to the test; the dead ci-guards edit is reverted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Agent-Session: https://cmux.com/deeplink/agent?id=aid-fb75b7af9902231028aa
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Summary
Local acpmux CLI calls now wait while the daemon peer is alive and fail promptly when the peer is gone. Default
acpmux send/newprompt collection waits for the live peer; explicit--stalland--timeoutremain caller choices. Daemon handover, lock, socket and startup paths use peer liveness, with only cleanup and a documented hung-child readiness fallback bounded.Leo's words (2026-11-04): “shouldn't be this short. no reason for this. i imagine there's other nonsensical gates like this to remove in the broader app/acpmux”.
Gates audited
cmux-tui/crates/acpmux/src/cli/command.rs:249--stalldefault 30scmux-tui/crates/acpmux/src/cli/command_new.rs:71--stalldefault 30scmux-tui/crates/acpmux/src/daemon.rs:1255cmux-tui/crates/acpmux/src/daemon.rs:1270,1275,1294cmux-tui/crates/acpmux/src/daemon.rs:1393,1621cmux-tui/crates/acpmux/src/daemon/running.rs:42HANDOVER_BUDGETacpmux lscmux-tui/crates/acpmux/src/daemon/handover.rs:19HANDOVER_BUDGETcmux-tui/crates/acpmux/src/daemon.rs:1432,1452cmux-tui/crates/acpmux/src/daemon.rs:1321cmux-tui/crates/acpmux/src/daemon.rs:1797,daemon/windows.rs:276START_BUDGET; process/lock liveness still controls ordinary handovercmux-tui/crates/acpmux/src/daemon/snapshot_clear.rs:12cmux-tui/crates/acpmux/src/daemon.rs:1325Regression coverage
daemon::running::tests::a_slow_but_alive_daemon_is_not_cut_off_by_the_old_budgetwaits through 120 failed probes before success.daemon::running::tests::a_closed_socket_fails_fast_even_when_the_connect_future_is_slowcovers closed/refused peer failure.daemon::running::tests::no_daemon_is_an_error_at_once_and_nothing_is_startedcovers no live peer.6c626322732c64e03f9e5502b4ef577efaec387d; 5 passed.Changelog
Fixed: local acpmux CLI and daemon handover calls wait for live peers instead of failing on arbitrary default wall-clock limits.
🤖 Generated with Codex
Agent session: agent session