Repository navigation
Keep managed status warnings out of desktop gitignore writes - #26671
Conversation
88db24b to
486786c
Compare
a70ab92 to
9a3416a
Compare
|
Rebased onto main now that #26668 has merged. I narrowed the change to the source-control effect fix and its unit test. The new Docker E2E spec and its CI routing edits are dropped: they added a dedicated lane for a three-line guard, and the unit test already fails on main (a managed owner probes the desktop folder) and passes with the fix. pnpm tc, oxlint, check:code-quality:changed and audit:anti-slop pass locally. |
f0aa44f to
69db57f
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe refresh hook now uses Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to No actionable issue remains in the reviewed change; it is mergeable after normal checks. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)✅ Passed checks (3 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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 |
ELI5
A remote project and a desktop project can have the same address. Orca saw many changed files remotely, then offered to ignore a folder from the desktop project. Clicking the suggestion edited the desktop file. The suggestion now checks which machine owns the project before calling the desktop helper.
What Changed
Source Control’s large-status effect uses the existing local-path guard with its repository-owner-routed settings and legacy SSH connection ID. Managed targets stop before the desktop folder probe. Local projects still receive and apply the same suggestion; direct SSH targets retain their existing exclusion.
Why
Managed conversion clears the old repository SSH connection ID, so that ID alone cannot identify a remote project. Reusing the shared guard preserves the intended local-only behavior without creating a new remote ignore-write API or duplicating host rules.
Linked Issue
Found while exercising SSH-to-managed-server conversion. No existing issue linked.
Visual Proof
managed-huge-ignore-owner-final-runtime-red.log
managed-huge-ignore-owner-runtime-green.log
managed-huge-ignore-owner-full-runtime-green.log
managed-huge-ignore-owner-unit-red.log
Before: the managed server positively reports a capped 1,000-entry status caused by
node_modules. The desktop project at the same absolute path hasdist. The actual remote Source Control toast offersdist; clicking it changes desktop content from# DESKTOP_IGNORE_OWNERto that marker plusdist/. Remote content stays# REMOTE_IGNORE_OWNER.After: the desktop content remains unchanged for the managed case. A separate real desktop large-status control still offers the suggestion and successfully appends
dist/.Testing
Unchanged Phase 3.5 fails after the real wrong-machine write in 10.7 seconds; the repeated screenshot-ready baseline fails in 11.5 seconds. The corrected remote and local cases pass in 12.9 / 5.6 seconds (20.2 seconds total). The managed-owner hook case fails before the guard; two local/direct-SSH controls pass. All three pass after the fix.
77 affected hook/helper/CI-contract tests across eight files, full
pnpm tc,pnpm lint, changed-code/design-system checks, a fresh E2E build and commit hooks pass. The final rebuilt 13-case conversion/stdio/port/update/idle/reboot/menu/ignore suite passes in 3.1 minutes.CI follow-up: the initial Docker lane passed all 12 remote/other controls but its desktop control waited for full toast visibility until the short-lived toast expired. The test now uses CI’s 1280 × 1024 viewport, reduced-motion mode, and a real hover to pause the toast timer before its screenshot and click. The exact rebuilt remote/local pair passes in 14.4 / 5.3 seconds (33.9 seconds including runtime preparation); no ignore-write assertions were weakened. Full typecheck, lint and changed-code checks pass. CI is fully green on f0aa44f: 22 successful checks and 22 conditional skips after this test-only correction.
Actual platforms: hidden macOS Electron and disposable Linux Docker SSH hosts. Local and remote Git repositories/files are owned test fixtures. No OS windows were opened or focused. Native Windows runtime was not exercised.
The changed effect, local guard, desktop write helpers and shared host harness route to the dedicated Docker/template lane. The general lane excludes the dedicated regression.
Review
P1 / Low merge risk for this change. Adds an owner check to the existing effect; no IPC, wire, Git command or backend mutation changes. Stacked on #26668 (Medium merge risk), which must merge first. The old effect’s bytes are identical on Phase 3.5 and #26668.
Agent skill upstream boundary
Notes
Existing local-only helper behavior and local suggestion copy remain intact. The effect depends on a boolean capability result rather than settings-object identity. Remote clients with older peers exchange the same messages. Folder workspaces and Git providers receive no new assumptions or commands.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)