orca/mobile/src
Neil e59a319ffe
fix(sidebar): keep each project's entry-point workspace visible under "Hide sleeping" (#12257)
"Hide sleeping" swept each project's main workspace out of the sidebar as soon as
it had no live PTY, browser tab or agent — even with "Hide default branch" off.
For a project whose only row is that workspace (a folder workspace, a fresh
clone, a detached-HEAD main), the entire project vanished with no in-place way
back.

Adds a shared `isSleepingSweepExemptWorkspace` predicate keyed on
`isMainWorktree` rather than the branch name, so folder workspaces (no branch),
detached-HEAD mains, and SSH rows whose head/branch are blanked while a provider
is disconnected all stay put. Wired into `computeVisibleWorktreeIds` (sidebar,
Cmd+1-9, workspace board), the jump palette's duplicate inline pass, and mobile's
`filterWorktrees`.

Ships default-on with an escape hatch: a persisted
`alwaysShowDefaultBranchWorkspace` setting surfaced as "Except default branch"
under "Hide sleeping". Explicit "Hide default branch" still wins, since it
filters before the sleeping sweep.

Mobile reads the setting but never writes it back, so a desktop opt-out can't be
clobbered by a filter tap before the ui.get roundtrip lands.

Combines the two PRs open against #8873. #8966's exempt set is a strict subset of
this one, so its production diff was subsumed rather than ported; its jump-palette
render harness and e2e spec were carried over, and are the only such coverage here.

Fixes #8873
Closes #8966

Co-authored-by: Rod Boev <rod.boev@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-08-03 22:55:17 -07:00
..
accounts fix(mobile): stop support modules from registering as routes (#11652) 2026-08-02 15:53:06 -07:00
agent-history fix(ai-vault): resume a bridged Codex session under the selected account's home (#11224) 2026-07-28 15:18:07 -07:00
browser Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255) 2026-07-23 18:35:31 -07:00
cache Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255) 2026-07-23 18:35:31 -07:00
components fix(mobile): render Mermaid diagrams in MobileMarkdown (#11185) 2026-08-03 20:05:16 -07:00
diagnostics Rename 'local network' to 'LAN' across the UI (#10216) 2026-07-23 12:48:26 -07:00
dictation Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255) 2026-07-23 18:35:31 -07:00
files fix(mobile): recover unreliable relay connections (#10709) 2026-07-26 00:48:06 -07:00
hooks Revert "fix(memory): bound OOM-prone accumulators (#10179)" (#10255) 2026-07-23 18:35:31 -07:00
layout
mobile-release fix(mobile): keep Android release versionCode committed (#7271) 2026-07-03 15:26:11 -07:00
notifications fix: stop notification loss, credentialed cache reuse, and clipboard clobber (#11230) 2026-07-28 17:38:31 -07:00
onboarding rename: rebrand user-facing Native chat to Chat UI (#10036) 2026-07-22 19:14:44 -07:00
platform
session fix(runtime): open files from sibling workspaces (#11369) 2026-08-03 21:41:58 -07:00
source-control fix(mobile): keep source-control layout steady while Create PR eligibility loads (#11467) 2026-07-31 15:35:56 -07:00
storage feat(mobile): add safe Codex rate-limit resets (#9394) 2026-07-24 14:42:04 -07:00
tasks fix(mobile): mount host before opening tasks (#11853) 2026-07-31 20:46:51 -07:00
terminal fix(mobile): keep main-buffer TUI footer above the iOS keyboard (#9178) 2026-08-03 20:25:46 -07:00
theme fix(mobile): improve secondary text contrast (#11651) 2026-08-02 15:50:40 -07:00
transport fix(mobile): keep relay runtime recovery alive without direct connectivity (#12374) 2026-08-03 21:37:29 -07:00
worktree fix(sidebar): keep each project's entry-point workspace visible under "Hide sleeping" (#12257) 2026-08-03 22:55:17 -07:00
accounts-route-reset-credit.test.ts feat(mobile): add safe Codex rate-limit resets (#9394) 2026-07-24 14:42:04 -07:00
expo-route-module-boundary.test.ts fix(mobile): stop support modules from registering as routes (#11652) 2026-08-02 15:53:06 -07:00
home-host-edit-navigation-source.test.ts fix(mobile): stop serving a pre-write host-list snapshot to loads issued after the write (#11458) 2026-07-31 17:26:42 -07:00
host-edit-route-accessibility.test.ts feat(mobile): edit saved host endpoints (#8294) 2026-07-15 16:49:21 -07:00
host-edit-save-flow.test.ts fix(mobile): keep a proxied wss host on :443 when editing (#11383) 2026-07-29 19:28:01 -07:00
host-list-action-sheet-actions.test.ts fix(mobile): stop serving a pre-write host-list snapshot to loads issued after the write (#11458) 2026-07-31 17:26:42 -07:00
host-list-action-sheet-actions.ts fix(mobile): stop serving a pre-write host-list snapshot to loads issued after the write (#11458) 2026-07-31 17:26:42 -07:00
host-route-action-state.test.ts
host-route-action-state.ts
host-route-exit.test.ts fix(mobile): pop to home when leaving a host so the back chevron animates backward (#9723) 2026-07-26 01:57:25 -07:00
host-route-exit.ts fix(mobile): pop to home when leaving a host so the back chevron animates backward (#9723) 2026-07-26 01:57:25 -07:00
mock-server-account-state.test.ts feat(mobile): add safe Codex rate-limit resets (#9394) 2026-07-24 14:42:04 -07:00
mock-server-key-pair.test.ts fix(mobile): harden native chat send budgets, streams, and stop (#10814) 2026-07-26 22:08:38 -07:00
mock-server-session-tabs-fixture.test.ts feat(mobile): add session.tabs.list handler to mock server (#9293) 2026-07-29 18:01:38 -07:00
mock-server-terminal-fixture-routing.test.ts feat(mobile): add safe Codex rate-limit resets (#9394) 2026-07-24 14:42:04 -07:00