Repository navigation
Fix validation of unresolved workspace reorder targets - #13843
Conversation
|
Warning Review limit reachedNext included review available in 3 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (3)
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 |
|
All contributors have signed the CLA ✍️ ✅ |
a33f186 to
d8fb986
Compare
|
Second independent review. The fix is correct and I would land it. Verified the re-diagnosis at the reporter's exact build: at The second half matters more than the message. Ran nothing locally — the package is macOS-only and this host is Linux. Read CI instead: Two things worth a follow-up, neither blocking:
On #13506: this changes the reporter's outcome from One evidence correction: the two-commit structure did not demonstrate red-before-green here. On A first independent agent review at this same commit also found no defects; it was never posted here. Merging on two agreeing reviews per the standing rule. — AlderQuarry g1 🎒 |
d726774 ci: default focused E2E dispatches to macOS 26 (manaflow-ai#13902) 6c7efe5 ci: reuse an in-flight focused run instead of dispatching over it (manaflow-ai#13901) af221f0 Add bounded collector for dev app backend diagnostics (manaflow-ai#13910) 0f48984 ci: stop routing contributor prose to macOS and the release build (manaflow-ai#13905) cd3ce57 test: respect build defaults in stable Cloud override assertions (manaflow-ai#13838) 197daa7 Fix default Codex ledger tilde expansion (manaflow-ai#13635) e435dc0 fix: report the submitted prompt length, not the truncated preview's (manaflow-ai#13728) 9bd4c8d ci: route artifact transport helpers off the web and release lanes (manaflow-ai#13895) 7e72db9 Fix validation of unresolved workspace reorder targets (manaflow-ai#13843) a9b0329 ci: gate native iOS work on package convention lint (manaflow-ai#13886) bd50702 ci: skip docs deployment for standalone complexity policy (manaflow-ai#13887) e786379 feat(cli): make workflow templates discoverable (manaflow-ai#13189) # Conflicts: # .github/workflows/docs-channels.yml # .github/workflows/test-e2e.yml # .github/workflows/test-ios.yml
reorder-workspace --before/--aftercan report “Specify exactly one target” when its sole target is an unknown workspace reference. The server counted resolved IDs instead of supplied options. It could also accept--indexalongside an unknown relative target and call the mutation planner.The shared
workspace.reordervalidator now counts supplied non-null selectors, rejects conflicting options before calling the planner, and returnsnot_foundfor an unresolved sole relative target. Valid relative targets and dry-run behavior retain the existing planner and mutation path.Investigation of #13506 captured the shipped 0.64.25 CLI request: it sends
before_workspace_id,workspace_id, anddry_run, with noindex. The same holds for--afterand both long aliases. This PR addresses the reproduced server validation defect; it does not establish that the reporter's target reference was stale.Validation:
d8fb98623ba3a471288e838bf3717cfa84809b93: six failed expectations; valid-reference cases already pass. Its hosted macOS run was skipped by admission debounce, so CI red is not evidence that the regression test ran.84b9ec2dc70c454a6ce115a9a4b9663835b0029f: three parameterized tests, eight cases pass. Covers unknown before/after refs, conflicting index options, planner exclusion on failure, valid refs, and dry runs.8bb58c74fd835be9c0dd7067055a7aa258db3e49.45c9949354691f23e8bbd1fcsucceeded on84b9ec2dc70c454a6ce115a9a4b9663835b0029f. Separate submission and terminal receipts include artifact digest and cleanup evidence. Published build: 13506-workspace-reorder-targets.identifychecked the explicit tagged socket, bundle identifier, and app path. CLI before/after moves and both aliases succeed; dry runs preserve order; unknown relative refs returnnot_found; mixed index/unknown-ref requests returninvalid_paramswithout reordering. Index moves also pass. Workspace-list responses and a real debug-socket screenshot were captured; the test app was closed.d6583b19b9be09465979aff438260cc4a8c1e2a139c084bd8d52160435640831. The verified archive was restored into HQ's tag cache after automatic restoration failed; the final link GET returned HTTP 200 for this tag.Impact:
CmuxControlSocketowns validation, shared by CLI and direct RPC. The existing app context and workspace planner retain mutation and pin/group ordering. No persistence, UI, relay allowlist, or shortcut changes. The remote relay continues to deny this method.Attribution: unregistered; run/session issue-13506-workspace-reorder-targets.