Commit Graph
7468 Commits
Author SHA1 Message Date
Brennan Benson bfe2a0dabb fix(mobile-sync): stop publishing a group that names a terminal with no rows
A terminal publishes one row per pane, and `getRuntimeLeafIdsForTerminal` returns
none when there is no live pane and no persisted layout — which is exactly what
`createTerminalTab` seeds (`emptyLayoutSnapshot()`) until TerminalPane mounts. The
group still named it, so the snapshot published `tabGroups`, a `tabGroupLayout`
leaf and an `activeGroupId` for a tab the client is sent no row for. Off the
active worktree, where nothing mounts, that state lasts until the user goes there.

Hold such a terminal out of the group projection. The existing machinery does the
rest: an emptied group leaves `tabGroups`, its layout leaf is pruned with it, and
`resolvePublishedActiveGroupId` moves the pointer.

Old clients are unaffected in outcome: `buildHostToLocalTabIdMap` never had a key
for the tab, so `buildMirroredHostGroups` already dropped it from the group's
order and skipped a group left empty. The host now sends what the client was
already computing.
2026-08-29 20:12:23 -07:00
Brennan Benson d132cc20b5 test(mobile-sync): state the group->tab rule terminals actually satisfy
The published group->tab invariant read "no group may name a tab absent from
`tabs`". That is not the contract. A terminal occupies its group under the parent
tab id but publishes one row per pane, so `tabOrder` names `term-a` while `tabs`
carries `term-a::<leafId>`. The rule passed only because both fixtures were
browser/editor-only; adding an ordinary mounted terminal to one fails it.

The real rule is resolvability, not equality: a group may only name a tab the
client can resolve, and the client's `buildHostToLocalTabIdMap` keys terminals by
surface id *and* `parentTabId`. Move the invariants into a named module that says
so, and put a terminal in the fixture so the terminal case is covered rather than
avoided.

Also pins a guard that was silently unpinned: the mirrored-tab check runs twice —
once choosing which terminals the group projection may name, once emitting rows —
and deleting the projection copy left the whole runtime suite green, because no
fixture had a web-only mirrored terminal inside a group.
2026-08-29 20:12:23 -07:00
Brennan Benson 1fa70bf34d refactor(mobile-sync): share the published-active-group rule with the structured projection
Review follow-up. `resolvePublishedActiveGroupId` was a second copy of the rule
already in `projectLocalStructuredSessionTabs`; extract it once and call it from
both, so the structured projection cannot drift from the publisher.

Ablating the shared rule left the structured projection's own tests green, so
pin it there too: a snapshot whose active group holds no visible structured tab
must not keep pointing at it, and must fall to null when nothing survives.

Also repairs a cross-file comment reference that dangled after the relocation.
2026-08-29 20:12:22 -07:00
Brennan Benson bc195b63ec fix(mobile-sync): stop publishing an active group the phone was never sent
When every tab in the active group is unpublishable — a combined-diff tab,
a workspace-document browser tab — the group is held back from `tabGroups`,
but the snapshot still published `activeGroupId` naming it. The client was
told the active group is one it never received.

Resolve the published pointer against the published group set: keep it when
the group survived, else the first published group, else null. Both fallbacks
are values three of the three read sites already handle today.

The published invariants covered group->tab dangling references and the
snapshot's own `activeTabId`, but nothing checked `activeGroupId` against the
published groups. The extended invariant now checks every published group
reference — `activeGroupId` and the `tabGroupLayout` leaves — and moves to its
own file so the claim has a name.

STA-5724
2026-08-29 20:12:22 -07:00
Neil 8ff8e8a5f3 Split hosted review creation checks (#17152)
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Extract mobile troubleshoot screen styles

* Split external automation manager

* Split main window service attachments

* Split hosted review creation checks

* Fix F3-speech for #17123

* Fix F1-cycle for #17131
2026-08-29 20:08:36 -07:00
Neil ecee14bdbc Split main window service attachments (#17151)
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Extract mobile troubleshoot screen styles

* Split external automation manager

* Split main window service attachments

* Fix F3-speech for #17123

* Fix F1-cycle for #17131
2026-08-29 20:08:08 -07:00
Neil 7b5bed9550 Split external automation manager (#17149)
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Extract mobile troubleshoot screen styles

* Split external automation manager

* Fix F3-speech for #17123

* Fix F1-cycle for #17131
2026-08-29 20:07:46 -07:00
Neil 11a0deb8ee Split pane tree equalization logic (#17145)
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Split pane tree equalization logic

* Fix F3-speech for #17123

* Fix F1-cycle for #17131
2026-08-29 20:07:03 -07:00
Neil 871601b6fe Prune resolved max-lines suppressions (#17142)
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Split mobile browser pane modules

* Prune resolved max-lines suppressions

* Fix F3-speech for #17123

* Fix F1-cycle for #17131
2026-08-29 20:06:41 -07:00
Neil e39c22c1ce Split terminal output scheduler pipeline (#17131)
* Split speech session lifecycle

* Split terminal output scheduler pipeline

* Fix F3-speech for #17123

* Fix F1-cycle for #17131
2026-08-29 20:04:35 -07:00
Neil 53eb21b448 Split speech session lifecycle (#17123)
* Split speech session lifecycle

* Fix F3-speech for #17123
2026-08-29 20:04:04 -07:00
Neil 162df6e5e9 fix(crash): suppress Linux namespace SIGTERM reports (#17315) 2026-08-29 19:43:23 -07:00
NeilandOrcaWin 3457acb647 fix(memory): hydrate retained PTYs before diagnostics (#17308)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-08-29 19:42:56 -07:00
Neil 4e9ef12861 test(persistence): give the 130k-leaf pane alias scale test headroom (#17323)
The test runs ~9-15s locally but times out against the 30s default on a
loaded CI shard, flaking the node 24 test shard and the verify gate.
2026-08-29 19:41:01 -07:00
Jinjing 0a995cc30d Fix md file rendering 2 (#17295)
* Improve markdown rich mode: distinguish HTML tags from placeholders

- Consolidate size limit and unsupported content checks into single function
- Refine HTML/JSX detection to validate against rehype-sanitize's known tag names
- Allow bare placeholders like `<id>` and `<project-id>` in rich mode rendering

* Add decision explainer for markdown rich-mode rendering fix

* rm html explainer
2026-08-29 18:14:03 -07:00
Neil de851d5ca7 perf(terminals): drop disposed queued inspections (#17187) 2026-08-29 16:25:30 -07:00
Neil 7ae916cebd perf(worktrees): batch-prune stale local metadata (#17278) 2026-08-29 16:06:15 -07:00
Neil 9c777ca89e perf(renderer): gate pending agent-status retries (#17254) 2026-08-29 16:03:35 -07:00
Neil 1fe558dd28 perf(automations): narrow status observer updates (#17249) 2026-08-29 16:02:29 -07:00
Neil e258785884 perf(terminal): index accepted input pane ownership (#17287) 2026-08-29 16:02:10 -07:00
Neil 79aea81173 perf(renderer): index unread completion tabs (#17246) 2026-08-29 16:01:42 -07:00
Neil be68aa2718 perf(browser): release popup origin bar contents (#17234) 2026-08-29 16:01:39 -07:00
Neil 5e3c4f391c perf(terminal): bound stalled setup-split polling (#17228) 2026-08-29 16:01:36 -07:00
Neil ad499df893 perf(markdown): reuse rich eligibility state (#17219) 2026-08-29 16:01:33 -07:00
Neil 7879dead69 perf(ssh): cache legacy worktree clean fallback (#17213) 2026-08-29 16:01:29 -07:00
Neil eb6cd67219 perf(editor): skip unchanged review-note reflows (#17212) 2026-08-29 16:01:27 -07:00
Neil 80a0595449 perf(startup): stop rescanning persisted pane tabs (#17179)
* perf(startup): index persisted pane tabs once

* perf(startup): lazily resolve persisted pane tabs
2026-08-29 16:01:23 -07:00
Neil bf884ea866 perf(startup): skip disabled diagnostic serialization (#17176) 2026-08-29 16:01:20 -07:00
Neil 0645729f68 perf(worktrees): resolve watcher targets concurrently (#17166) 2026-08-29 16:01:16 -07:00
Jinjing 2214d29f15 fix(browser): close guest-owned split tab (#17281)
* fix(browser): close guest-owned split tab

* fix: check sourceId before toggling floating panel on close

The empty-panel toggle is the ambient fallback only. Guest-initiated
closes (with sourceId) target the main workspace and should not toggle
the panel.

* test(browser-split-shortcuts): remove terminal-mirrors close test and un

Removes test case that verified Cmd+W closes guest-owned browser splits when
active-tab mirrors point to a terminal, along with the helper function and
unused fixture properties that only that test required.
2026-08-29 15:43:36 -07:00
Jinjing 8b01cf1a48 Clarify automation history unavailability and improve recovery UX (#17284)
* Clarify automation history unavailability and improve recovery UX

- Improve error message to explain run history is unavailable due to host
  version requirements, not automation failure
- Hide misleading "0 runs" count badge when history is unavailable
- Deep-link "update server" recovery actions to specific runtime environment
  in settings instead of pane root
- Add test coverage for run count hiding and recovery targeting

* Watch for deep-linked settings targets that render asynchronously

Some settings panes (such as Remote Orca Servers) fetch and render their
rows asynchronously. Deep links can name targets that don't exist yet,
but the scroll effect has no way to know when they finally mount. Add a
MutationObserver-based watcher to detect when async rows appear and
trigger scrolling.
2026-08-29 15:07:38 -07:00
Neil b826b3fa5b feat(editor): raise rich Markdown size limit to 600 KB (#17288) 2026-08-29 15:03:36 -07:00
JahyunBaek e3757a1d30 fix(worktree): ignore orphan remote-tracking refs in branch conflicts (#16699)
Refs #16646

Unify native, WSL, and direct SSH conflict checks behind the execution host, remove the duplicated SSH classifier, and cover orphan/configured remote behavior across both paths.
2026-08-29 14:36:24 -07:00
Neil 7655d20f04 fix(terminal): complete OMP stale cwd recovery (#17154) 2026-08-29 14:34:50 -07:00
JahyunBaekandClaude Opus 5 aa95bdb11a test(shared): stop two suites asserting POSIX separators on Windows (#16511)
Both files describe paths with POSIX literals while their subjects compose
paths through `node:path`, so the assertions only hold where the separator
happens to be `/`.

`node-markdown-document-discovery` keys its fake tree at `/repo/docs` and
`/repo/one`, but `discoverMarkdownRelativePaths` descends with
`join(absoluteDirectoryPath, entry.name)` — `\repo\docs` on win32. The child
lookup misses, `readDirectory` yields nothing, and the walk stops at the root:
`docs/guide.mdx` disappears and the depth-limit case never reaches its limit,
so it resolves `[]` instead of rejecting. Keying the children with `join` walks
the tree the subject actually walks.

`git-fetch-head-lock` expects `cwd: '/tmp/repo'` from a subject that returns
`path.resolve(cwd, 'repo')`, which is `C:\tmp\repo` on win32. Asserting through
`path.resolve` pins the behaviour — that `-C` and `--git-dir` are resolved
against the cwd — rather than the separator of whichever machine runs the suite.

Verified on Windows 11: the two files go from 3 failed / 12 passed to
14 passed / 1 skipped, and the wider `src/shared` run shows no regression.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-29 14:23:22 -07:00
Jinjing 67fa855b6c Make worktree palette hint rows keyboard-clickable (#17272)
* Make worktree palette hint rows keyboard-clickable

Hint entries like "See more" are now CommandItems that can be navigated with arrow keys and activated with Enter, instead of being non-interactive divs. This allows keyboard-only users to access the expand actions without mouse interaction.

* Make worktree palette "See more" keyboard-navigable

Preserve cursor position when expanding via keyboard: auto-select the first
newly revealed item at the previous index and restore input focus.
2026-08-29 14:15:45 -07:00
Neil 2dfaa676d8 chore: update oxlint and oxfmt (#17150) 2026-08-29 14:13:35 -07:00
Neil 78bba0772a perf(markdown): cache repeated syntax highlighting (#17158) 2026-08-29 13:59:45 -07:00
Neil 0bf5361c92 perf(markdown): update code highlighting incrementally (#17147) 2026-08-29 13:52:16 -07:00
Neil eb00123a81 perf(markdown): skip unmatched list tokenizer scans (#17134) 2026-08-29 13:43:27 -07:00
Neil 7c0c9cee57 perf(markdown): skip closed-search update renders (#17162)
* perf(markdown): skip closed-search update renders

* test(markdown): stress closed-search updates
2026-08-29 13:41:33 -07:00
Jinjing 9940355f6e Improve worktree palette layout with flex-1 titles (#17273)
Adds flex-1 to palette open tab titles so they expand to fill
available space, making better use of the palette's horizontal layout.
2026-08-29 13:33:35 -07:00
Neil fb6c2800ee fix(gpu): capture hardware identity in crash reports (#16973)
* fix(gpu): capture hardware identity in crash reports

* fix(gpu): order bounded crash diagnostics before fallback

* fix(gpu): keep fallback persistence ahead of diagnostics
2026-08-29 02:41:53 -07:00
Junhyeok Chae 314dcba98b feat(i18n): localize Agent Dashboard to Korean (#17121)
- Translate Agent Dashboard column headers (Needs You / Working / Idle), board title, and total count.
- Translate empty-column placeholder, "You" message badge, terminal preview actions, and error-boundary copy.
- Resolves English fallback in the Agent Dashboard (dashboardPopout) under the Korean locale; only "Done" was previously translated.
2026-08-29 02:38:32 -07:00
Neil c5591d0893 fix(gpu): persist the safe-graphics marker before the restart prompt (#16945)
* wip: gpu-startup-recovery

* fix(gpu): offer hardware retry after safe recovery
2026-08-29 02:29:15 -07:00
Neil 9db319dc06 fix(terminal): recover OMP from stale working directories (#17128)
* fix(terminal): recover OMP from stale cwd

* fix(terminal): harden OMP cwd recovery
2026-08-29 02:27:44 -07:00
Neil 8d3e32a2ff Fix setup-provisioned skills missing at agent startup (#17124)
* fix(setup): let repos gate agent startup

* test(setup): update runner call expectations
2026-08-29 01:53:31 -07:00
Neil fec82b9bc8 test: widen updater schedule boundary margin (#17130) 2026-08-29 01:49:02 -07:00
Neil d73d36bc99 test: stabilize process and transcript liveness checks (#17126) 2026-08-29 01:45:20 -07:00
Brennan Benson 6bef6d2727 fix(ci): stop the Linux Electron probe step from starving its own probes (#17071)
* fix(ci): stop the Linux Electron probe step from starving its own probes

The package job's "Test Linux Electron lifecycle boundary" step ran five
Electron probe files under Vitest's default file parallelism, so four full
Electron stacks competed for a 4-vCPU runner. Each probe carries its own
in-process deadline (20s for WebRTC, 25s for H3), and every observed failure
was one of those deadlines expiring: exit code 2, "no result", with every
sibling file in the same run slower than its own green maximum.

Run the step with --no-file-parallelism so each probe owns the runner, and
stop each probe nesting a private `xvfb-run --auto-servernum` X server inside
the step's own xvfb-run: reuse an inherited DISPLAY, and only own one when
there is none (shards, local dev), which leaves those lanes unchanged.

Also set each Docker-SSH E2E step's Playwright output aside before the next
step starts, because Playwright empties test-results/ on every run and only
the last lane's traces survived to the artifact.

* fix(ci): route the persisted-worker probe through the same display resolver
2026-08-29 01:38:17 -07:00