Repository navigation
diagnostics(cloud): correlate multi-machine terminal state - #12569
Conversation
|
All contributors have signed the CLA ✍️ ✅ |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (7)
📝 WalkthroughWalkthroughCloud link and terminal attachment diagnostics now carry correlation IDs and explicit outcomes. Manual mirror creation propagates one ID through the resolver and session. Presentation transitions log correlated state. Tests verify shared ID propagation. ChangesCloud attachment diagnostics
Estimated code review effort: 3 (Moderate) | ~20 minutes Change: Feature · Severity of issue fixed: Medium Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4638e5b Merge pull request manaflow-ai#12570 from manaflow-ai/issue-7272-undo-stack-crash 61eedef fix: isolate web undo targets before app menu routing c83dc7f Merge pull request manaflow-ai#12562 from manaflow-ai/issue-12532-agent-notification-flaky bfe1d3f Merge pull request manaflow-ai#12571 from manaflow-ai/issue-12547-nightly-provider-duplicates-guard f0d1635 chore: remove Cloud provider Release compile guard 509e806 Merge pull request manaflow-ai#12569 from manaflow-ai/issue-12567-cloud-machine-connectivity a5410da diagnostics(cloud): correlate machine terminal attachment state 7f6de01 test: reproduce application and markdown undo lifetime crashes 720f24a fix: close contextual signal matcher 50e3416 test: preserve numeric crash signal diagnosis d21502d test: exercise selected semantic suite reporting 3a0aff2 fix: retain contextual signal crash markers 16b9e75 test: preserve contextual signal crash diagnosis 557bb90 fix: trigger semantic workflow for classifier changes 46f0ba7 test: cover non-crash signal text 3824276 fix: avoid matching build signatures as signals 7079066 test: ignore build signatures in app-host causes # Conflicts: # .github/workflows/agent-notification-tests.yml
Problem
Installed Nightly 0.64.22-nightly.3479285704001 (11e2ee0) made multiple healthy Cloud terminals appear stuck. The observed state is a presentation/readiness mismatch, not a transport outage.
Evidence
cloud.link.startandcloud.link.connectedfor all three machines at 2026-09-14T01:16:37–01:16:38Z.vm-87a90f06e0634c1594801a9f63e5f67e: 4/4 running, 5 native-mirror client references, 4/4 compatibility-tree resolutions.vm-f3e995d835424588b1478451937ad729: 5/5 running, 15 native-mirror client references, 5/5 compatibility-tree resolutions.vm-ed09805c787847e397493b6a58966409: 2/2 running, 4 native-mirror client references, 2/2 compatibility-tree resolutions.invalid_terminal_idfor the newerresolve-terminalspelling on all sampled terminals; the authoritative snapshot and compatibility-tree fallback resolve every terminal. This is an expected compatibility path, not a missing terminal.Root cause and version boundary
The installed build contains #12549 but predates merged #12551 and #12559. #12549 removed the duplicate reconnect banner but retained the #12505 first-visible-frame readiness gate and startup loader. #12551 unified terminal connection presentation, and #12559 reverted the first-visible-frame recovery path after Nightly reports of indefinitely stuck Cloud overlays. Both fixes are already on current main (f9d2490) and are awaiting a Nightly containing them.
Open PR #12556 is not a complete explanation or a safe replacement: it is based on the pre-#12551 history, is currently merge-conflicting, and adds attachment-owned fallback state for catalog/projection churn. The actual Nightly evidence has complete links, projections, and resolver fallback; the practical user fix is #12551+#12559 in a newer Nightly. This PR does not duplicate those runtime changes.
Diagnostics
Validation
Passed:
swiftc -parseon all changed Swift filespython3 scripts/swift_file_length_budget.pybash scripts/lint-pbxproj-test-wiring.shpython3 scripts/check-package-resolved-policy.pypython3 scripts/check-workspace-package-groups.py --checkpython3 scripts/localization_catalog.py checkgit diff --checkThe tagged reload was attempted twice and reached the app module, but current main fails on the pre-existing
CmuxTuiSurfaceProviders.swift:715visibility error (pendingRemoteRenameexposes a private type). The warning-budget report contains two unrelated existing warnings; none reference the changed files. No app launch, Nightly restart, VM mutation, deployment, or merge was performed.Closes #12567
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Adds end-to-end correlation IDs to Cloud terminal link and attachment logs so multi-machine stuck states can be traced without exposing terminal contents. This is diagnostics only; runtime behavior is unchanged, and it does not fix the underlying stuck-terminal bug (#12567).
Written for commit a5410da. Summary will update on new commits.
Summary by CodeRabbit