fix(ci): restore #15712's non-iOS test-harness hunks dropped by #16709
Summary
CanonicalRootTests.test_compiled_file_paths_are_independent_of_the_producer_root in tests/test_app_host_test_rerun.py fails on main (b235894). It shows up on #6312, #8311 and #7787.
Cause: #16709 squash-reverted #15712 to fix iOS toolbar regressions. The revert also removed #15712's CI and test-harness hunks. #16352's guard asserts those hunks are present, so the test fails.
This PR re-applies only the non-iOS hunks, exactly as git show 4475d76a465 | git apply -R. None of these files changed after the revert.
cmuxTests/SwiftTestingAssertions.swift:sourceURLalso readsTEST_RUNNER_CMUX_CI_RUNTIME_SOURCE_ROOTand falls back to the first existing root.scripts/ci/run-in-console-session.sh: restores theCMUX_CI_RUNTIME_SOURCE_ROOTallowlist entry.CLI/cmux.swift: restores the opencode-plugin lookup under the runtime source root.Sources/AppDelegate.swift: restores forgetting persisted window geometry in test processes.cmuxCLITests/BundledCLITestSupport.swiftandCLIExplicitSurfaceRoutingTests.swift: restore the isolated fixture home.cmuxTests/WorkspaceCloseTabsContextMenuTests.swift: restores the bounded main-queue drain.
No iOS file changed. The toolbar revert stands.
Verification
- Red on main b235894:
python3 tests/test_app_host_test_rerun.py CanonicalRootTests.test_compiled_file_paths_are_independent_of_the_producer_rootfails with'TEST_RUNNER_CMUX_CI_RUNTIME_SOURCE_ROOT' not found. - Green on this branch: the same command passes, and the full file passes (52 tests).
- No local Swift compile, because Swift builds are banned on this Mac. The Swift hunks are verified through PR CI.
- Resource check: no new loops, caches or logs, so no CPU, memory or disk impact.
Changelog
none
🤖 Generated with Claude Code
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.
Summary by cubic
Fixes CanonicalRootTests.test_compiled_file_paths_are_independent_of_the_producer_root, which failed on main because the squash-revert of #15712 — done to fix iOS toolbar regressions — also dropped its CI and test-harness hunks, which #16352's guard asserts are present.
Bug Fixes
- Restores runtime-source-root handling: test source URLs and the CLI test fixture root now read
TEST_RUNNER_CMUX_CI_RUNTIME_SOURCE_ROOT, fall back to the first existing root, and the console-session allowlist entry is back. - Restores the opencode-plugin lookup under the runtime source root, forgetting persisted window geometry in test processes, the isolated fixture home for CLI tests, and the bounded main-queue drain for close-tab tests.
- Adds
vmTreeUsesCloudLinkErrorMessageInHumanOutputto verify human-readable cloud link error output.
No iOS files changed; the toolbar revert stays. No new loops, caches, or logs, so no CPU, memory, or disk impact.
Summary by CodeRabbit
- Bug Fixes
vm treenow displays a human-readable cloud-link error for a running machine instead of showing its error code. The command continues to complete successfully when this error is present.