Commit Graph
857 Commits
Author SHA1 Message Date
Jinwoo-HandOrca 28016b837d Fix two serialize round-trip bugs garbling hidden-terminal snapshot restore
BUG B (addon patch): @xterm/addon-serialize's SGR diff emitted bold/dim set
params before the shared intensity reset 22, so "1;22" wiped a freshly set
bold and a bare "22" dropped a still-set bold/dim. Patched via pnpm
patchedDependencies (config/patches) to diff bold+dim as one intensity
group with the clearing 22 emitted first. Other flag pairs (4/24, 3/23,
7/27, ...) have dedicated resets and were verified unaffected.

BUG C (Orca-side hardening): the addon restores the cursor with relative
moves computed from where it assumes replay leaves the cursor; a final row
filled exactly to the right margin leaves replay wrap-pending and the
restore lands one column short. New shared
serializeWithAbsoluteCursor appends an absolute CUP from the source
terminal's authoritative cursor at every restore/replay serialize site
(daemon/runtime HeadlessEmulator.getSnapshot, renderer mobile snapshot
serializer, shutdown layout capture). It skips empty snapshots and
wrap-pending sources so it never changes already-correct behavior.

Round-trip repros + non-regression coverage in
src/main/daemon/terminal-snapshot-serialize-roundtrip.test.ts (verified
failing with the fixes stashed). buildRehydrateSequences extracted to its
own module to keep headless-emulator.ts under the max-lines budget.

Co-authored-by: Orca <help@stably.ai>
2026-07-03 20:42:00 -04:00
Jinwoo-HandOrca fd767fa72e Merge origin/main (browser copy, TOC, mobile IME, i18n, Windows startup) + add version_suffix input to release-cut
rc kind can now append an extra prerelease identifier (rc.N.perf):
sorts above its base rc.N but below rc.N+1, so perf-branch RCs are
identifiable by clients without outranking the main RC series.

Co-authored-by: Orca <help@stably.ai>
2026-07-03 20:05:49 -04:00
github-actions[bot] 0bc417e04d release: v1.4.121-rc.5 2026-07-03 23:41:58 +00:00
github-actions[bot] f3e103ebe7 release: v1.4.121-rc.3 2026-07-03 21:28:43 +00:00
github-actions[bot] a4f9dda71a release: v1.4.121-rc.1 [rc-slot:2026-07-03-03] 2026-07-03 10:57:58 +00:00
Jinwoo-HandOrca d55df1e3ad Merge origin/main (v1.4.120 + #7205) into orca-performance
Conflict resolutions:
- terminal-stream-protocol: Metadata keeps opcode 12 (shipped to mobile
  in v1.4.120); branch-only Ack renumbers to 13.
- scheduler: keep HIGH_PRIORITY_MAX_WRITES_PER_DRAIN=8 (perf fix) over
  main's 2 (#7139 landed there with the old constant).
- headless-emulator: keep chain structure (scanner classes, query-reply
  forwarding); graft main's pathFlavor/remotePosixFileUriAuthority OSC7
  options through TerminalOscCwdTitleScanner. Main's
  TerminalPrivateModeTracker is logic-identical to the chain's
  TerminalMouseModeMirror (kept, with pre-filter).
- orca-runtime: keep chain factory; graft main's pathFlavor wiring and
  snapshot cwd fallback; keep both teardown lines.
- pty-connection: keep both chain reconcile and main's ordered-seq
  tracking; clear the chain's restored-snapshot baseline on pty exit
  (same seq-domain boundary main's reset enforces) — fixes revive with
  restarted seq counter dropping chunks as duplicates.
- subscribe-buffer tests: updated to merged semantics — main's inline
  overflow recovery ships current data as the FIRST snapshot; the
  chain's resized/pending-output-overflow follow-up remains as backstop.

Validation: typecheck clean; 7,548 tests green across daemon/ipc/
runtime/pane-manager/terminal-pane/shared/mobile-transport (1 documented
pre-existing WSL failure).

Co-authored-by: Orca <help@stably.ai>
2026-07-03 03:34:59 -04:00
github-actions[bot] 0ab4d8925c release: v1.4.120 2026-07-03 07:06:43 +00:00
github-actions[bot] 8e1ce20289 release: v1.4.120-rc.6 2026-07-03 06:44:20 +00:00
github-actions[bot] bf6a39987c release: v1.4.120-rc.5 2026-07-03 05:50:01 +00:00
Jinwoo-HandOrca a5052c35f3 Merge nwparker/term-speed-2-architecture-docs into orca-performance base
Revives the terminal model/view architecture chain (hidden view parking,
hidden delivery gate, side-effect authority in main, model query authority
— all kill-switched, defaults on) on top of orca-performance's terminal
performance fixes. 34 conflicted files resolved with these decisions:

- Both sides' features kept and kill-switchable. orca-performance's fixes
  preserved exactly: parse-clocked scheduler drains (9e8bb2243), windowed
  retained-tail redraw (4e08a28cd), throttled wait-blocked check
  (66f20258e), #7139/#7150 cooperative drain, backlog caps, wedge guards,
  and probe-certified replay release.
- orca-runtime.ts onPtyData: chain's per-PTY title tracker + side-effect
  facts replace the inline OSC title blocks; our scheduleWaitBlockedCheck
  and redraw-cursor plumbing retained; refreshPtyForegroundAgent re-grafted
  into applyTrackedPtyTitle on status transitions.
- pty.ts: chain's hidden-gate drop sites, restore markers, initiallyHidden
  spawn marking, ConPTY DA1 record, and view-attribute/delivery-interest IPC
  wired through our newer spawn/delivery structure. The chain's flat 2 MB
  pending cap was NOT taken: our scrollback-scaled cap (#7150, empty-drop +
  droppedOutput sentinel) wins and now also emits the chain's one-per-episode
  pty:modelRestoreNeeded 'pending-cap' marker when the gate is enabled. Our
  8 MB renderer in-flight high water kept over the chain's 2 MB.
- pty-connection.ts: chain's gate sync, model-restore channel, side-effect
  fact consumer, and post-restore seq reconciliation composed with our
  hidden-startup query grammar, synchronized-frame latency machinery, and
  probe-certified restore. Phase 6 (skip-grammar deletion) intentionally NOT
  taken: our side evolved that grammar past the chain's base and #7150
  machinery builds on it; with the gate on it is dormant (main drops hidden
  bytes), with switches off it remains the byte-identical fallback.
- Shared module moves adopted (agent-title-*, github-links, bell detector,
  command-code, PR-link detector) with our newer bounded regex-free OSC
  parsers wired through the chain's scanner classes; our pi-synthetic/Devin/
  MiMo agent additions ported into the split modules.
- daemon-pty-adapter: chain's sleep-restore cache + our checkpoint cooldown,
  teardown flag, and oscLinks-carrying cold-restore payload combined.
- rpc/methods/terminal.ts: chain's ACK-gated multiplex output + recovery
  snapshots composed with our budgeted mobile snapshots and resize re-stream.
- Tests adapted only where they encoded superseded cadence: watermark counts
  (2 MB->8 MB), pending-cap trim -> empty-drop sentinel, initial snapshot
  frame seq (layout seq -> snapshot output seq), mock module paths.

Contract tests: 881 passed. Renderer terminal suites: 1895 passed.
Full main runtime+ipc: 2974 passed. Typecheck (3 configs) clean.
Pre-existing baseline failures (pty-subprocess WSL, PR sidebar, Linear
prompt, SidebarToolbar) are unrelated and fail identically on 7839fb9db.

Co-authored-by: Orca <help@stably.ai>
2026-07-03 01:44:20 -04:00
github-actions[bot] f7ec1c727e release: v1.4.120-rc.4 2026-07-03 04:28:04 +00:00
github-actions[bot] 777b757cdb release: v1.4.120-rc.3 2026-07-03 01:25:04 +00:00
github-actions[bot] 025448f06b release: v1.4.120-rc.2 2026-07-02 23:43:43 +00:00
github-actions[bot] ce997b001d release: v1.4.120-rc.0 [rc-slot:2026-07-02-15] 2026-07-02 22:35:04 +00:00
github-actions[bot] 4782b8d3bf release: v1.4.119 2026-07-02 22:21:07 +00:00
github-actions[bot] 2d4b46b44f release: v1.4.119-rc.0 2026-07-02 21:51:38 +00:00
github-actions[bot] 98a78f1e0c release: v1.4.118 2026-07-02 20:12:17 +00:00
github-actions[bot] a81629e862 release: v1.4.118-rc.5 2026-07-02 19:35:52 +00:00
github-actions[bot] 6bca68ae09 release: v1.4.118-rc.3 2026-07-02 19:13:04 +00:00
github-actions[bot] 33fda893e9 release: v1.4.118-rc.2 2026-07-02 18:43:30 +00:00
github-actions[bot] 1ac6de1ccb release: v1.4.118-rc.1 2026-07-02 18:01:05 +00:00
github-actions[bot] dbf80864fe release: v1.4.118-rc.0 [rc-slot:2026-07-02-03] 2026-07-02 10:58:11 +00:00
github-actions[bot] ab3878ffa0 release: v1.4.117-rc.3 2026-07-02 07:17:22 +00:00
github-actions[bot] b157c0d5b3 release: v1.4.117-rc.2 2026-07-02 06:36:13 +00:00
github-actions[bot] d6578af833 release: v1.4.117-rc.1 2026-07-02 05:14:59 +00:00
github-actions[bot] de807c5a8c release: v1.4.117-rc.0 2026-07-02 03:58:34 +00:00
github-actions[bot] d7322ec1f2 release: v1.4.116 2026-07-01 23:11:35 +00:00
github-actions[bot] 126aae7734 release: v1.4.116-rc.0 2026-07-01 22:12:14 +00:00
github-actions[bot] c1fae31a3f release: v1.4.115-rc.4 2026-07-01 10:04:28 +00:00
github-actions[bot] e083932018 release: v1.4.115-rc.3 2026-07-01 10:00:57 +00:00
github-actions[bot] d52e5814d5 release: v1.4.115-rc.0 2026-07-01 05:28:16 +00:00
github-actions[bot] c53a730886 release: v1.4.114 2026-07-01 04:07:33 +00:00
github-actions[bot] c26a23d173 release: v1.4.114-rc.0 2026-07-01 02:15:51 +00:00
github-actions[bot] b9d961e11c release: v1.4.113 2026-07-01 01:33:42 +00:00
github-actions[bot] 2b04c81c87 release: v1.4.112-rc.2 2026-07-01 01:12:01 +00:00
github-actions[bot] 355d943451 release: v1.4.112-rc.1 2026-06-30 23:41:46 +00:00
github-actions[bot] 043731e934 release: v1.4.112-rc.0 2026-06-30 22:52:44 +00:00
github-actions[bot] 4e6a8b914e release: v1.4.111-rc.3 2026-06-30 21:59:25 +00:00
github-actions[bot] 2c0ac2a75f release: v1.4.111-rc.2 2026-06-30 20:56:32 +00:00
github-actions[bot] e8f29945b7 release: v1.4.111-rc.1 2026-06-30 20:22:29 +00:00
github-actions[bot] 01070198fa release: v1.4.111-rc.0 2026-06-30 19:30:41 +00:00
JinjingandOrca d4084ba982 fix(terminal): force model clear when webgl texture atlas is reset (#6868)
Patch @xterm/addon-webgl so clearTexture() and page merge/delete operations
request a model clear and bump a generation counter. Without this, the renderer
keeps drawing glyphs against a stale atlas after the texture is reset, leaving
garbled or blank cells until the next full repaint.

Co-authored-by: Orca <help@stably.ai>
2026-06-30 01:06:45 -07:00
NeilandOrca 46646d7ff1 chore(lint): upgrade oxlint to 1.71 + enable 7 new rules (autofixed backlog) (#6841)
* chore(lint): upgrade oxlint to 1.71 and enable 7 new rules

Upgrade oxlint 1.67.0 -> 1.71.0 (1.72 was blocked by the repo's 3-day
minimum-release-age supply-chain guard; nothing here needs it). The
bump is a no-op on the existing config.

Enable 3 error rules (backlog autofixed to zero in this commit) and
4 warn rules (surface signal without gating CI):

error (autofixed, behavior-preserving):
- unicorn/prefer-node-protocol        (~1531 sites: bare builtin -> node:)
- typescript/no-import-type-side-effects (~36: all-inline-type -> import type)
- unicorn/no-array-reverse            (19: copy-then-reverse -> toReversed)

warn (real signal, current fires are test-only/correct):
- unicorn/no-array-fill-with-reference-type  (aliasing footgun guard)
- typescript/no-unsafe-function-type         (bans bare Function type)
- unicorn/prefer-array-flat-map              (map().flat() -> flatMap())
- unicorn/prefer-regexp-test                 (.match() in bool ctx -> .test())

mobile/.oxlintrc.json extends root, so it inherits all 7; the autofix
ran from root and covered mobile/ too.

Verification (all green): oxlint 0 errors (root+mobile+aux configs),
oxfmt clean, typecheck (node+cli+web), vitest 22795 passed / 0 failed,
builds (electron-vite + web + cli) succeed. node: rewrites confirmed to
skip embedded SSH/CLI string payloads (AST-only); all toReversed sites
verified to operate on fresh copies or write-once locals.

* chore(lint): bump mobile oxlint to 1.71 so inherited rules parse

mobile/ is a standalone pnpm project pinning its own oxlint@1.67, which
lacks unicorn/no-array-fill-with-reference-type (needs >=1.70). Since
mobile/.oxlintrc.json extends the root config, mobile CI's 'cd mobile &&
oxlint' failed to parse the new rule. Bump mobile to match root (1.71).

Verified in mobile/: oxlint 0 errors, oxfmt --check clean, tsc --noEmit
pass, vitest 978 passed / 0 failed.

Co-authored-by: Orca <help@stably.ai>

---------

Co-authored-by: Orca <help@stably.ai>
2026-06-29 22:38:29 -07:00
github-actions[bot] 8c49426224 release: v1.4.109-rc.0 2026-06-30 00:18:10 +00:00
github-actions[bot] ab1aac2bda release: v1.4.108-rc.1 [rc-slot:2026-06-29-15] 2026-06-29 22:27:49 +00:00
github-actions[bot] 004b4d2991 release: v1.4.108-rc.0 2026-06-29 20:39:08 +00:00
github-actions[bot] 13ea799c91 release: v1.4.107 2026-06-29 19:19:08 +00:00
github-actions[bot] 1d7198fc31 release: v1.4.107-rc.0 2026-06-29 19:14:15 +00:00
github-actions[bot] d877d9483b release: v1.4.105-rc.4 2026-06-29 08:50:22 +00:00
github-actions[bot] ffe50add49 release: v1.4.105-rc.3 2026-06-29 08:15:01 +00:00