orca/src
Jinjing d09863e068 Add open-tab search to the new-tab omnibox (#13100)
* Add open-tab search to the new-tab omnibox

The omnibox now searches workspace, browser, and simulator tabs alongside file creation. Tab results rank first, so users jump to existing tabs before creating new ones. File entries for open editor tabs are suppressed to avoid duplication.

* feat(tab-bar): include focused tab in open-tab search

The omnibox no longer hides the tab a column is already showing when
searching. The + menu can be opened from any column, so filtering by the
focused column's visible tab broke search when you tried to find the tab
on screen. Now every tab in the worktree is offered, matching how Cmd+J
lists the tab you're on.

Removes the groupId parameter from useOpenTabSearch since all tabs are
now included regardless of which column opened the menu.

* refactor(tab-bar): snapshot open-tab search entries and consolidate rank

Extract entry building to a pure function in open-tab-search-entries.ts; simplify the hook to snapshot once at menu open rather than subscribing to store changes. Consolidate three ranking functions into a generic rank helper and merge activation routing into a single function with a shared failure handler. Improves code clarity and hook efficiency.

* refactor(tab-bar): make open-tab search reactive instead of snapshotted

- Tab search results now reflect changes while the menu is open, using a
  shallow store selector instead of a static snapshot
- Separate state selection from entry building for cleaner composition
- Use the public API method getKnownWorktreeById instead of internal helpers
- Remove tests for snapshot behavior that no longer applies

* refactor: extract test fixture and thread execution host for remote work

- Extract duplicated lucide-icon stub into shared test fixture
- Fix open-tab-search path matching to be editor-only (diff/review tabs have
  different destinations)
- Thread execution host ID through simulator tab palette activation for
  remote-hosted worktrees

* Gate cmdk selection until deferred query updates

cmdk reports selections before useDeferredValue commits the new query, leaving the old first result selected. Ignore selection changes until the deferred query catches up.
2026-08-07 23:37:14 -04:00
..
cli fix(serve): recognize CLI-form serve args on the Electron process (#12818) 2026-08-06 23:56:34 -07:00
main Add Recent Chats & Terminals to Cmd+J palette with digit shortcuts (#13076) 2026-08-07 23:37:14 -04:00
preload feat(ai-vault): delete a provider session from the AI Vault list (#10249) 2026-08-07 11:47:26 -07:00
relay Break out test and generated lines in branch line total (#13057) 2026-08-07 09:55:54 -07:00
renderer Add open-tab search to the new-tab omnibox (#13100) 2026-08-07 23:37:14 -04:00
shared fix(agent-history): fold trailing-slash, NFD/NFC, and project-fallback folder group keys (#12458) 2026-08-07 15:06:37 -07:00
types