Skip to content

Add Linear project and custom view browsing - #3966

Merged
AmethystLiang merged 2 commits into
mainfrom
support-linear-view-inside-of-orca
May 31, 2026
Merged

AmethystLiang merged 2 commits into
mainfrom
support-linear-view-inside-of-orca

Conversation

@AmethystLiang

Copy link
Copy Markdown
Contributor

Summary

  • Add Linear project and custom view browsing across local and remote runtimes
  • Add project/custom-view caches, IPC/RPC/preload APIs, and UI surfaces in Tasks
  • Fix review findings for all-workspace status refresh and project-view issue navigation

Verification

  • pnpm typecheck
  • pnpm test src/renderer/src/store/slices/linear.test.ts src/renderer/src/runtime/runtime-linear-client.test.ts src/main/runtime/rpc/methods/linear.test.ts

@AmethystLiang
AmethystLiang merged commit ab3e1b8 into main May 31, 2026
2 checks passed
@AmethystLiang
AmethystLiang deleted the support-linear-view-inside-of-orca branch May 31, 2026 01:10
@nwparker nwparker added the risk:medium Medium risk change label May 31, 2026
OrcaWin added a commit to giraphant/orca that referenced this pull request Jul 27, 2026
The PR correctly identified that TaskResumeState's strict Zod guard was
missing linearMode/linearContext/jiraPreset/jiraQuery, so any paired
web/mobile/relay client that opened Linear or Jira had its ENTIRE ui.set
payload rejected with invalid_argument. That part is verified and kept.

The same drift existed at the UiUpdate level and the PR did not cover it.
Eight more keys the renderer writes through ui.set were unlisted:

- activeView, written by App.tsx on every top-level view switch (stablyai#9002)
- showDotfilesByWorktree, which rides App.tsx's 150ms debounced writer, so
  a single dotfile toggle dropped sidebar widths, sort/group prefs, repo
  filters and agent acknowledgements for that client
- setupGuideSidebarDismissed, setupGuideBrowserMilestoneMigrated,
  setupGuideBrowserMilestoneLegacyComplete, browserImportHintHidden,
  mobileEmulatorTabIntroDismissed, mobileEmulatorAgentSetupDismissed

Root cause is that schema/type parity was maintained by hand with nothing
enforcing it, so this recurred across stablyai#3966, stablyai#2238, stablyai#9002 and others.
AssertNoMissingKeys now turns a field added to PersistedUIState or
TaskResumeState without a schema entry into a typecheck error naming the
missing key. Main-owned state (star-nag, tray notice, popout bounds) is an
explicit allow-list, so remote clients still cannot write it — the existing
"rejects star-nag persisted state mutations" tests still pass.

Split TaskResumeState into its own module and the assertion helper into
ui-state-schema-parity.ts to stay under max-lines without a disable.

Tests: one case per drifted field plus the full App writer payload; 14 fail
when the schema is reverted, all pass with it.
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Add Linear project and custom view browsing

* fix: address review findings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk:medium Medium risk change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants