Skip to content

Remote chats: model, mode and option picks reach the daemon in order - #30991

Merged
cmux-bot[bot] merged 4 commits into
feat-cmux-nextfrom
lane/remote-pick-order
Nov 1, 2026
Merged

cmux-bot[bot] merged 4 commits into
feat-cmux-nextfrom
lane/remote-pick-order

Conversation

@teamleaderleo

@teamleaderleo teamleaderleo commented Nov 1, 2026 •

Copy link
Copy Markdown
Collaborator

What failed

RemoteAcpmuxSettingsTests.modelModeAndOptionPicksGoToThisChat failed 2 of 6 tip Swift suite runs (41282022128, 41303556638):

RemoteAcpmuxSettingsTests.swift:87: (client.calls → ["attach", "model claude-opus-5-5", "config effort=high", "mode acceptEdits"]) == ["attach", "model claude-opus-5-5", "mode acceptEdits", "config effort=high"]

Cause

RemoteAcpmuxWire.run starts a Task for each page request, so three picks sent together reach the owning machine's daemon in any order. This has been there since the picks were added (#30001). The order matters to a person, not only to the test: a model switch can reset the options picked after it.

Fix

Model, mode and option picks run one after another: each pick's call waits for the one sent before it (State.lastPick). Every other page request still runs at once, as before.

Risk

Small, one component. A pick now waits for the pick before it to answer. A daemon that never answered the earlier pick would also leave the later one unanswered, but the later one would have gone to that same stuck daemon anyway.

Observed / Not run

Read the code and the run logs. I did not run the suite; this PR's own cmux-next swift test runs RemoteAcpmuxSettingsTests. A fleet compile-check is queued.

Changelog

Fixed: a remote chat's model, mode and option picks reach that machine in the order you made them.

Agent session: agent session

🤖 Generated with Claude Code


Summary by cubic

Fixes remote chat model, mode, and option picks arriving at the owning machine's daemon out of order, which failed modelModeAndOptionPicksGoToThisChat and could reset options picked after a model switch. Each pick now waits for the pick sent before it; other page requests still run concurrently.

Written for commit 1e49b0c. Summary will update on new commits.

View guided diff Turn on auto-fix

…der they were made

RemoteAcpmuxWire ran each pick in its own Task, so three picks sent together reached the owning
machine's daemon in any order: RemoteAcpmuxSettingsTests.modelModeAndOptionPicksGoToThisChat
failed 2 of 6 tip runs with "config effort=high" before "mode acceptEdits". Order matters to a
person too: a model switch can reset the options picked after it. Each pick now waits for the one
sent before it; other page requests still run at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent-Session: https://cmux.com/deeplink/agent?id=aid-9124da39adbff74677d9
@github-actions

github-actions Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

cmux status (one comment, edited in place; each line is updated by the job that owns it)

Review f3fafac: HQ feed card · gallery before/after runs · checks

App of this head (app.zip, kept 1 day)

gh workflow run reload-build.yml -R manaflow-ai/cmux --ref feat-cmux-next -f tag=pr30991 -f ref=lane/remote-pick-order -f platform=macos -f backend_mode=local

web and size checks: green

Shipped in:

@github-actions github-actions Bot added the risk:normal Risk tier (docs/ci/risk-tiers.md) label Nov 1, 2026

@cubic-dev-ai cubic-dev-ai Bot 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.

No issues found across 1 file

You’re at about 98% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.

View guided diff | Turn on auto-fix | Re-trigger cubic

@blacksmith-sh

blacksmith-sh Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
test_the_repository_highlights_validate (main.DigestTests.test_the_repository_highl
ights_validate)/
test_the_repository_highlights_validate (main.DigestTests.test_the_repository_highl
ights_validate)
View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (independent Codex gpt-6.1-sol, high, via the review router; full diff from merge base fa65549 to this head): SHIP at f3fafac.

No P1/P2 findings.

@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 14:53 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 14:53 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 14:54 Inactive
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (next-review patch-id; carried): SHIP at 01a6c29

The independent SHIP at f3fafac carries to this head: the PR's own change (git diff $(git merge-base feat-cmux-next HEAD) HEAD) has the same git patch-id --verbatim (239db25c5564c343) at both heads, and no merge between them was resolved by hand. Nothing new to review. A newer BLOCK, or any change to the PR's own diff, ends the carry.

@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (codex, router-review): SHIP at 01a6c29

Reviewer: codex gpt-6-astra high, fast tier.

SHIP at 01a6c29

Visual verdict: no images; Leo tries the build

Follow-ups: none

cmux-bot[bot]
cmux-bot Bot previously approved these changes Nov 1, 2026

@cmux-bot cmux-bot Bot 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.

cmux-bot approves 01a6c29: an independent review passed this exact head (router-review receipt by teamleaderleo). A push needs a new review; a later BLOCK at this head dismisses this approval.

@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:57 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:57 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:58 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:58 Inactive
@cmux-bot
cmux-bot Bot dismissed their stale review November 1, 2026 16:58

A newer verdict blocks 369a5ac (no independent SHIP at the head).

@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:58 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:59 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 16:59 Inactive
@teamleaderleo

Copy link
Copy Markdown
Collaborator Author

Review (independent Codex gpt-6.1-sol, high, via the review router; full diff from merge base 377187a to this head): SHIP at 369a5ac.

No P1/P2 findings.

@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 19:01 Inactive
@cmux-bot
cmux-bot Bot temporarily deployed to ci-routing-agent November 1, 2026 19:01 Inactive
@cmux-bot
cmux-bot Bot merged commit a3eb05c into feat-cmux-next Nov 1, 2026
161 of 166 checks passed
@cmux-bot
cmux-bot Bot deleted the lane/remote-pick-order branch November 1, 2026 19:16

This branch was previously deployed

1 inactive deployment
ci-routing-agent — 1e49b0cb Deployed Nov 1, 2026 by cmux-bot[bot] via cmux-tui tree preflight #97231
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:normal Risk tier (docs/ci/risk-tiers.md)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant