Repository navigation
Cloud client: honor typed VM errors and stop endless attach loops #15161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
austinywang
wants to merge
92
commits into
main
Choose a base branch
from
15107-cloud-retry-policy
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,588
−623
Open
Changes from 2 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
d6424ad
test(cloud): capture recreate-required error contract
austinywang b3db5f6
fix(cloud): bound typed VM attach retries
austinywang 4e5ed78
fix(cloud): close retry review gaps
austinywang d1c51c7
test(cloud): tighten privacy and recreate coverage
austinywang 3e5e27f
Merge origin/main into 15107-cloud-retry-policy
austinywang 5c58dfd
chore: wire cloud recreate action source
austinywang f2ffb19
fix(cloud): fence session recovery and route resets
austinywang e6c5b21
fix(cloud): reset attachment retries on route recovery
austinywang 450846a
fix(cloud): reject oversized retry hints safely
austinywang e3154e2
fix(cloud): repair compile errors in attach policy
austinywang a00c6bd
Merge commit '356443354a63b6865c44adfa3aedc3495dbe1a5a' into 15107-cl…
austinywang c7a1a75
Merge main (69c05744af41) into 15107-cloud-retry-policy
austinywang f6efc21
fix(cloud): remove redundant escaping annotation
austinywang 25b845e
Merge main (3da1b53bf558) into 15107-cloud-retry-policy
austinywang aeb9231
Merge main (738e3740777e) into 15107-cloud-retry-policy
austinywang eebf721
Merge main (f206d6e10ce8) into 15107-cloud-retry-policy
austinywang c0d20ad
Merge main (d938f969d244) into 15107-cloud-retry-policy
austinywang c1024d1
fix: advance Bonsplit for auto-layout API
austinywang 18778bd
fix(cloud): keep link reset within provider ownership
austinywang 37c9897
test: pass recreate callback in failure overlay fixture
austinywang febeec3
test(cloud): stop list polling after rejected sessions
austinywang 4fed2cd
Merge main (3a52f0459c58) into 15107-cloud-retry-policy
austinywang 8294f69
test(cloud): match sanitized VM error copy
austinywang 06ae287
Merge main (02f0ea192bd0) into 15107-cloud-retry-policy
austinywang 6f5bbc8
Merge main (63a2f63113df) into 15107-cloud-retry-policy
austinywang af13c63
Merge main (ce40ebdd62f7) into 15107-cloud-retry-policy
austinywang 69b0a09
Merge main (c38d21ff8c19) into 15107-cloud-retry-policy
austinywang 532efc6
Merge main (fde44232c359) into 15107-cloud-retry-policy
austinywang f835aca
Merge main (3ed9b96c7911) into 15107-cloud-retry-policy
austinywang 57273d5
Merge main (b9676f552a17) into 15107-cloud-retry-policy
austinywang c96ce2e
Merge remote-tracking branch 'origin/main' into 15107-cloud-retry-policy
austinywang 037eda2
fix(cloud): reconcile port discovery with terminal failure state
austinywang 71eaacd
Merge main (79f62d7026a2) into 15107-cloud-retry-policy
austinywang 6d08b62
fix(cloud): preserve recreate action through failure card body
austinywang 580fb4d
fix(cloud): align restored attach retry with scheduler
austinywang 019d16a
Merge main (49d7a0df097c) into 15107-cloud-retry-policy
austinywang d60d22f
fix(cloud): match failure card initializer labels
austinywang b7e3adc
Merge main (9b0d37a42c57) into 15107-cloud-retry-policy
austinywang 44819fa
test(cloud): update unreachable link fixture
austinywang 48d6d89
fix(cloud): unify VM retries and preserve recreate actions
austinywang 36bbf41
test(cloud): pass machine menu metadata explicitly
austinywang 37faf69
Merge main (5e568139cf74) into 15107-cloud-retry-policy
austinywang 39003d7
Merge main (47184664d39b) into 15107-cloud-retry-policy
austinywang fba9df3
Merge main (71bb553867c) into 15107-cloud-retry-policy
austinywang 607b5c5
fix(cloud): finish main catch-up integration
austinywang a6a3084
fix(cloud): simplify registry refresh inference
austinywang d91a4fd
fix(cloud): isolate refresh pass from compiler inference
austinywang d6c9038
fix(cloud): split refresh machine selection inference
austinywang 81d29e4
fix(cloud): split foreign refresh inference
austinywang 09a51e4
fix(cloud): use machine keys for foreign refresh
austinywang 2ff932e
Merge branch 'main' of https://github.com/manaflow-ai/cmux into 15107…
austinywang a660c8c
fix(tests): allow configurable main queue drain timeout
austinywang cc1c7a0
fix(tests): restore pane resize controller binding
austinywang 4bb2874
fix(cloud): bound retry loops and stop rejected sessions
austinywang de75c5d
fix(cloud): expose registry session gate state
austinywang d73196b
fix(cloud): share session gate with refresh extension
austinywang 1e955fb
fix(cloud): allow session gate to update provider info
austinywang 16377b2
fix(cloud): expose session gate hooks to registry
austinywang aa302d1
fix(cloud): clean up registry session observers
austinywang 076a941
fix(cloud): evaluate retry episode before expectation
austinywang 3f9c45a
fix(cloud): tighten terminal recovery state
austinywang 30d1b5b
merge origin/main into 15107-cloud-retry-policy
austinywang 25371d0
fix(tests): evaluate workspace reconcile admissions before expect
austinywang c5c4704
fix(ci): link CLI test package dependencies
austinywang 965065b
fix(ci): host CLI tests with cmux-cli
austinywang 0a56c2c
fix(ci): avoid CLI test host launch requirement
austinywang cb38143
merge origin/main into 15107-cloud-retry-policy
austinywang 043923a
fix(ui): restore updater accent color environment
austinywang 4cc5625
fix(ui): restore notifications popover accent environment
austinywang c3a1e7d
chore: keep merged Swift files within budget
austinywang 45a200a
merge origin/main into 15107-cloud-retry-policy
austinywang f2283be
fix(ci): finish main conflict resolution
austinywang 1c67ec5
merge origin/main into 15107-cloud-retry-policy
austinywang 77dac07
fix(ui): deduplicate updater accent environment
austinywang 0154b40
fix(browser): unwrap discarded page document URL
austinywang 307ab12
merge origin/main into 15107-cloud-retry-policy
austinywang f788595
fix(tests): add persisted geometry reset helper
austinywang d97def4
fix(tests): restore visible notification anchor lookup
austinywang 84c179c
Merge branch 'main' of https://github.com/manaflow-ai/cmux into 15107…
austinywang 7a4e339
fix(tests): repair merged macOS test compile
austinywang 8c1dd19
fix(ci): avoid duplicate CLI simulator linkage
austinywang b328b99
fix(tests): keep CLI parser errors target independent
austinywang df59545
fix(ci): wire shared CLI error into CLI tests
austinywang 29da329
fix(cloud): keep session rejection visible while offline
austinywang fab940a
fix(tests): match agent inbox read fixture
austinywang 2286781
fix(ci): stabilize merged cloud test contracts
austinywang 1146e02
merge origin/main into 15107-cloud-retry-policy
austinywang ee719f9
fix(ci): allow settings gallery handoff namespace
austinywang 91bce29
fix(ci): provide notification post object
austinywang 97e7208
fix(ci): remove duplicate notification anchor method
austinywang af19e77
fix(ci): remove duplicate browser URL binding
austinywang ae67977
merge origin/main into 15107-cloud-retry-policy
austinywang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟠 Major | ⚡ Quick win
Any failure without an HTTP error now stops the link permanently.
terminal = typed.map { ... } ?? truemarks every non-HTTP failure as terminal. That includesCloudMachineLink.LinkError.timedOut,ManagerError.retryLater("still preparing remote access"), hub route failures andbackendUnreachable.After such a failure, two things happen:
retryLateron every laterconnectedcall..errorfor as long as the entry exists.Only
resetRetry,disconnect, or a status/image change clears the entry. Before this change, the 15-second backoff let these transient failures recover on their own. Now a brief network drop keeps the machine unusable until the user acts.The reverse case is also a problem. A retryable HTTP error sets
lastFailuretonil, so the link-level backoff no longer applies. OnlyopenCmuxRemotehas the ledger. A machine that already has a stored fingerprint skips that call, so it gets no backoff at all.Limit terminal state to typed refusals. Keep the timed backoff for everything else.
Proposed fix
📝 Committable suggestion
🤖 Prompt for AI Agents