Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to
|
|
Thank you @Pr1p for digging into this and for the clear write-up! Your diagnosis was exactly right: on a web client the "local" host and the paired server are the same runtime, so the Desktop entry shouldn't be listed separately. We shipped the fix in #33019, built on that same idea and with you as co-author on every commit. We moved the check onto the existing paired-web-client helper and covered a few spots that still pointed at Desktop: a saved "Local" host filter, workspace run links, and the default create host. Closing this in favour of #33019. Really appreciate the contribution! |
ELI5
The web page was asking the same Orca server for automations twice: once through a pretend local connection and once through its paired server connection. It now asks once, so each automation appears once.
What Changed
Before, the web client projected both a Desktop authority and its paired runtime authority. In a browser, both paths use the same paired runtime transport, so the Automations page listed the same scheduler-owned records twice.
Now the web client projects only its paired runtime authority. Desktop Electron clients still project the Desktop authority plus every saved runtime, so records with equal IDs on genuinely different authorities remain distinct. Regression coverage verifies the web client does not issue the redundant local authority list request.
Why
Removing duplicates after listing would hide legitimate records from different hosts and would still make two requests. Selecting the correct authority before the catalog is scheduled fixes both the rendered duplicate and the redundant request while preserving normal multi-host behavior.
Linked Issue
Fixes #32415
Visual Proof
N/A — this is authority catalog and request-routing behavior without a stable visual change to capture; automated regression tests verify the single runtime projection and the absence of the redundant local request.
Testing
vitest run src/renderer/src/components/automations/automation-host-catalog.test.ts src/renderer/src/components/automations/use-automation-host-catalog.test.tsx src/renderer/src/components/automations/automation-create-destination.test.ts --config config/vitest.config.ts --reporter=dotpnpm tc:webpnpm run check:code-quality:changedVerified on Windows. The change is transport-agnostic and does not alter SSH or platform path handling.
I manually tested these changes locally
Automated tests added/updated
AI Disclosure
GPT-5 Codex assisted with investigation, implementation, and verification; the change was reviewed before submission.
Review
Agent skill upstream boundary
Notes
Security: no new permissions, inputs, or network endpoints. Cross-platform: the behavior is selected by the existing web-client marker and does not use platform-specific paths or shortcuts. SSH/remote: remote runtime records remain authority-scoped. Mobile: no mobile code changes. Backwards compatibility: the Desktop catalog is unchanged; web clients retain their paired runtime entry. Performance: removes one redundant authority query and row group.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)