Repository navigation
Conversation
Co-authored-by: Orca <[email protected]>
Co-authored-by: Orca <[email protected]>
|
Phase 2 memory benchmark added: |
…rker/term-speed-2-hidden-view-parking # Conflicts: # src/preload/e2e-config.ts # src/renderer/src/components/Terminal.tsx # src/renderer/src/store/slices/terminals.ts # tests/e2e/helpers/orca-app.ts
…rker/term-speed-2-hidden-view-parking
|
Ready to review this PR? Stage has broken it down into 10 individual chapters for you: Chapters generated by Stage for commit 62bb444 on Jun 17, 2026 9:39am UTC. |
…rker/term-speed-2-hidden-view-parking
…rker/term-speed-2-hidden-view-parking
…rker/term-speed-2-hidden-view-parking
…rker/term-speed-2-hidden-view-parking
…rker/term-speed-2-hidden-view-parking
|
Closing as superseded by merged PR #7214 (merge e84a8dd), which explicitly revived the complete term-speed-2 model/view chain into current main and then added newer scheduler, producer flow-control, snapshot, and reliability work. This old component/rollup branch no longer has an independent delta to rebase. |
Summary
Phase 1 of the terminal model/view architecture (design:
docs/reference/terminal-hidden-view-parking.md).settings.terminalHiddenViewParking(default on)Why
Hidden panes previously kept full xterm instances alive; at many-worktree scale that is the dominant renderer memory cost. The main-process model already ingests every byte and serves restorable snapshots, so a long-hidden pane's renderer view is redundant state. A previous parking attempt was reverted the same day; the post-mortem (recorded in the design doc) found parked agents could never notify because unmounting the pane killed the renderer's byte parsers. The watcher is the structural fix for that failure mode.
Review hardening
A 3-lens adversarial review of the implementation found and fixed, with regression tests:
shutdownWorktreeTerminalsnow synchronously disposes parked watchers so sleep/shutdown teardown flushes cannot fire phantom unread marks or OS notifications (required extractingterminal-parked-watcher-registry.tsto break a store import cycle)orcaAppExtraEnv) replaces module-scopeprocess.envmutation, fixing cross-spec leakage of the fast-park overrideValidation
terminal-hidden-view-parking.spec.ts3/3: park + rich synchronized TUI restore with working input, bell/title side effects live while parked, exclusions respectedCut-off
Independently mergeable. Next phases (side-effect authority to main, gating hidden delivery, model query authority) build on this but are not required by it.
Made with Orca 🐋