Commit Graph
6021 Commits
Author SHA1 Message Date
Rod BoevandJinwoo-H 13db3b327f fix(browser): fill spinbutton inputs through editable controls (#7285) (#7389)
* fix(browser): fill spinbutton inputs through editable controls (#7285)

* fix(browser): retarget spinbutton fill to editable inputs

---------

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
2026-07-05 21:27:10 -07:00
Jinwoo Hong f0fdd3a716 Hide console windows for children of the node.exe-hosted daemon (#7486)
Since #7473 the terminal daemon runs under a standalone node.exe.
Electron's bundled Node defaults windowsHide to true; plain node.exe
defaults it to false, so every child_process call in the daemon that
does not pass the flag - the periodic PowerShell CIM process probes,
node-pty's kill-path conpty_console_list_agent fork - now allocates a
visible console, which opens and closes a Windows Terminal window on
the user's screen every few seconds.

Fix: daemon-entry installs a child_process shim (first import, before
any module captures bindings like promisify(execFile)) that defaults
windowsHide: true across spawn/exec/execFile/fork and their sync
variants, restoring the Electron default the daemon has always relied
on. Explicit windowsHide from a caller still wins. Also adds
windowsHide to node-pty's console-list agent fork in the existing
patch as defense in depth.

Verified on Windows: reproduced the flash with the rc.5 production
daemon (WindowsTerminal windows, ~3s cadence matching the CIM probe
interval, conhost spawned visible-capable "0x4"); with the shim, a
node.exe-hosted daemon's children (OpenConsole, powershell, node
helpers) all run without a visible-capable console and session kill
still works end to end.
2026-07-05 21:26:30 -07:00
JinjingandOrca 45370a5987 fix(skill): fix 6 dogfood bugs in orca-per-workspace-env templates (#7485)
* fix(skill): fix 6 dogfood bugs in orca-per-workspace-env templates

Fixes found while standing up a local Docker SSH per-workspace env (§7h) end to end:

1. GIT_ASKPASS helper broke under set -u — the printf interpolated $1/$GH_TOKEN
   at write-time, aborting the clone with "$1: unbound variable". Escape both so
   they land literally and resolve at git-runtime (also keeps the token out of the
   file); rm the helper after. (§5, §7f base-snapshot + create, §10)
2. Agent-auth verify missed stderr — 'codex login status' prints "Logged in" to
   stderr, so the stdout-only grep wrongly reported not-logged-in. Fold 2>&1.
   (§4, §7b, §7f Phase 3, §7h, §10)
3. --device-auth is mandatory on headless VMs — plain OAuth login binds an
   unreachable loopback callback port and hangs. (§4, §7b, §7h, §10)
4. Interactive Phase-3 login can't be driven by a non-interactive orchestrator
   (no TTY for docker exec -it / ssh -t) — user runs it themselves, or via the
   harness bang-prefix. (§1, §4)
5. Local Docker host-key churn — ephemeral containers regenerating host keys churn
   known_hosts on localhost as ports rotate; bake host keys into the base image at
   build time. (§7h + validation notes, §10)
6. Orchestrator must ask the user to report back when the interactive login
   finishes before resuming non-interactive phases. (§1, §4, §7b, §7h)

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

* fix(skill): tighten login gate, de-dup gotchas in orca-per-workspace-env

- Verify login via exit code first; when grepping, match the agent's exact
  success line, never `grep -qi 'logged in'` (also matches "not logged in")
- Keep the generic template agent-agnostic; hardcode codex strings only in
  the codex-based Vercel worked example (now case-insensitive)
- Collapse repeated device-auth / stderr-fold / GIT_ASKPASS rationale to
  §4/§5 cross-refs; add a load-bearing-escaping test note
- Add a connection-mode orientation block up front; fix front-matter grammar

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

* docs(skill): replace 'orchestrator' jargon with plain no-TTY wording

The term meant 'the agent running these steps runs commands
non-interactively, so it has no TTY.' Say that directly instead, and
drop the redundant 'orchestrating agent'/'non-interactive orchestrator'
doubling at the Phase-3 checkpoint.

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

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-05 21:23:13 -07:00
Jinjing 7c1d58e288 Fix Peek References scrollbar stability (#7479)
* Fix Peek References scrollbar stability

Keep faded Monaco Peek References vertical scrollbars visible while the widget remains open, and include docs/peek-references-scrollbar-stability.md as the design reference.

Also remove the now-unreachable repo override note switch fallback so lint stays green.

* rm unnecessary file

* rm unnecessary file
2026-07-05 21:04:15 -07:00
Kaynan Sampaio de Camargo 12e60054b0 fix(mobile): dismiss keyboard when opening repo/agent pickers in Create Workspace (#7365) 2026-07-05 21:02:43 -07:00
Brennan BensonandOrca f6ba214457 Fix Claude managed account OAuth login callback (#7446)
Co-authored-by: Orca <help@stably.ai>
2026-07-05 20:59:18 -07:00
Brennan BensonandOrca b2d079c80d Run automations after a repo's project identity changes (#7462)
Co-authored-by: Orca <help@stably.ai>
2026-07-05 20:56:26 -07:00
github-actions[bot] 61bd98db6f release: v1.4.124-rc.5 v1.4.124-rc.5 2026-07-06 02:52:58 +00:00
f4faafa987 fix(daemon): relocate daemon host image out of the install-dir kill zone (#7473)
Co-authored-by: Neil <neil@stably.ai>
Co-authored-by: Jinwoo Hong <73622457+Jinwoo-H@users.noreply.github.com>
2026-07-05 19:52:06 -07:00
Brennan BensonandOrca b58c0a42da Fix stale and race-prone E2E test failures (#7468)
Co-authored-by: Orca <help@stably.ai>
2026-07-05 19:46:49 -07:00
github-actions[bot] 0fa8589abf release: v1.4.124-rc.4 v1.4.124-rc.4 2026-07-06 00:25:02 +00:00
Brennan BensonandNeil 3cd23a13a1 fix(pty): keep runtime dirs a surviving daemon still uses (#7463)
The node-pty native runtime is relocated to a per-app-version dir under
userData so live terminals survive NSIS updates. On every launch,
removeStaleRuntimeVersions() deleted every *other* version's dir, gated
on a "renameSync succeeds => unused => safe to delete" heuristic.

That heuristic is false on Windows: running .exe images and mapped .dll
files are opened with FILE_SHARE_DELETE, so both the directory rename and
the recursive delete succeed while a daemon adopted across the update is
still using them. Existing PTYs keep streaming via deferred-delete
handles, but the next spawn re-loads conpty.dll from the now-unlinked
version dir and fails with ERROR_PATH_NOT_FOUND (code 3) -- the
"Cannot find conpty.dll ... error code: 3" new-tab failure.

Gate cleanup on real daemon liveness instead: collectInUseRuntimeVersions()
reads the daemon-v<N>.pid files under userData/daemon and, for each live
daemon, protects the appVersion (runtime dir) it recorded. Deletion now
skips the current version and any in-use version, dropping the rename
dance. Every failure mode leaks a dir rather than deleting one in use.

Rewrites the misleading cleanup test (which modeled no live daemon) and
adds coverage for surviving/dead daemons, appVersion:null pin files,
multiple protocol versions, and malformed/non-pid files.

Co-authored-by: Neil <neil@stably.ai>
2026-07-05 17:21:42 -07:00
github-actions[bot] f3f67a51f5 release: v1.4.124-rc.3 v1.4.124-rc.3 2026-07-05 23:34:53 +00:00
github-actions[bot] eee2d9807d release: v1.4.124-rc.2 v1.4.124-rc.2 2026-07-05 22:39:26 +00:00
Brennan BensonandOrca 3bcfae1767 Reduce Linux file-watcher load on large codebases by excluding nested build/dependency dirs (#7453)
Co-authored-by: Orca <help@stably.ai>
2026-07-05 15:33:38 -07:00
Jinjing 7953240135 Render launch prompts in native chat and refine initial view (#7444)
* Render launch prompts in native chat and refine initial view mode

- Seed and render the agent launch prompt as a synthetic, pending user
  message in the native chat view until the transcript catches up.
- Refine initial view mode logic so native chat does not auto-open for
  draft prompt delivery, unsupported agents, or when disabled.
- Add delivery failure tracking for the launch prompt, rendering an
  error status in the message list if pasting into the terminal fails.
- Implement corresponding store actions, selectors, cleanup routines,
  and extensive test coverage.

* Support native-prefill prompt delivery and fix chat message sorting

* Treat native draft pre-fills as successful deliveries instead of
  marking the seeded launch prompts as failed.
* Group native chat messages into sorting tiers (real content, streaming
  preview, optimistic echoes) so optimistic bubbles don't sort past
  the streaming preview due to finite timestamps.

* Avoid auto-opening native chat for draft prompt followups

Followup paths paste the prompt as an unsubmitted draft. When prompt
delivery is configured as 'auto-submit', this previously opened the
native chat view with no actual submitted turn to render.

By gating the initial view mode using 'draft' delivery on followup
paths, we ensure the tab starts in terminal mode instead.
2026-07-05 15:30:24 -07:00
Brennan Benson 8aecc0bf93 Fix folder workspace PR status icon from branch cache (#7449) 2026-07-05 15:23:11 -07:00
Jinjing df1df52103 Improve sidebar resize handle drag target and visual indicators (#7454)
- Widen the resize handle hit target to 12px (straddling the edge) to
  make it easier to grab, centering a thin 1px visual guide line.
- Highlight the divider line on hover and active states, and shade
  the handle background during active dragging.
- Adjust the sidebar webkit scrollbar border to prevent a transparent
  gap from appearing next to the drag handle.
- Update unit tests to match the new styling and sizing classes.
2026-07-05 15:22:38 -07:00
Brennan BensonandOrca 72a23809fa Prevent OMP terminals from being mislabeled as Gemini (#7447)
Co-authored-by: Orca <help@stably.ai>
2026-07-05 13:39:38 -07:00
github-actions[bot] dbf1da0f44 release: v1.4.124-rc.1 v1.4.124-rc.1 2026-07-05 19:51:20 +00:00
Jinwoo Hong 509c41e2bf Relocate node-pty ConPTY runtime outside the Windows install dir (fixes update-time terminal loss) (#7421) 2026-07-05 12:50:27 -07:00
github-actions[bot] 4b2e4735d7 release: v1.4.124-rc.0 v1.4.124-rc.0 2026-07-05 19:29:31 +00:00
Jinjing e5008b1f3c Clear PR comment selection on AI launch and defer mismatching clears (#7416)
- Clear sent comments from selection queue when confirming AI resolution.
- Keep selection clear requests pending until the matching review context is
  mounted, preventing them from being ignored on context changes.
- Fix calculation of skipped threads when comment resolution is launched.
2026-07-05 11:07:52 -07:00
Jinjing e7d1fa4a21 Disable auto-merge for unstable GitHub PRs (#7415)
Prevent enabling auto-merge when a PR is in an UNSTABLE merge state.
GitHub auto-merge mutations reject UNSTABLE PRs directly instead of
allowing them to wait, so we should suppress the option.
2026-07-05 11:05:58 -07:00
github-actions[bot] 492bbe31b6 Update README downloads badge 2026-07-05 12:45:05 +00:00
Jinwoo HongandOrca 9981c3b827 Check for Updates: cmd/ctrl-click fetches latest perf-tagged prerelease (#7278)
Co-authored-by: Orca <help@stably.ai>
2026-07-05 02:53:17 -07:00
Jinwoo Hong 812f24bd19 fix(terminal): clear PTY-side buffers on Ctrl+K so the prompt stops repainting at a stale row (#7413) 2026-07-05 04:36:24 -04:00
JinjingandOrca a5cdb7711d Add MiniMax rate-limit tracking and secure cookie storage (#7411)
* Add MiniMax rate-limit tracking and secure cookie storage

* Securely store MiniMax session cookies using an encrypted envelope format and local file hardening.
* Fetch rate limits in an isolated session partition and clear the cookie jar before and after requests to prevent leakage.
* Add a default-on "minimax" status bar item to display subscription usage.
* Expose minimax configuration settings (group ID and models) in settings panes and sync them via the runtime client.
* Isolate MiniMax config resolver and decryption failures from affecting other rate-limit providers.

* Redact MiniMax secrets with whitespace around colons

Update redactMiniMaxSecret to allow and match optional whitespace
surrounding the colon when redacting quoted cookie values. This matches
the spacing tolerance used during parsing.

* Address PR review: harden cookie read, validate IPC, add tests

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

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-05 01:15:16 -07:00
Jinjing 8dbe6bf372 Improve agent history indentation and layout (#7412)
* Hide redundant current worktree info in workspace vault scope

When the AI Vault is scoped to the current workspace, showing the
"Current worktree" status line or badge is redundant since the sessions
are already filtered to this workspace.

- Add helper to hide the worktree line and status badge when the vault
  is in 'workspace' scope and status is 'current'.
- Improve alignment and metadata layout in session rows using CSS grid.
- Update tests to verify worktree line and badge visibility rules.

* Indent AI vault session worktree line

Add left padding to the session worktree line to improve its visual
indentation inside the AI vault session row.
2026-07-05 00:25:10 -07:00
JinjingandOrca 9886eb507a Improve Chinese and Spanish translations (#7408)
* Refine Spanish and Chinese locale translations

- Update Spanish strings for developer tools, notifications, and session history scopes.
- Standardize Chinese terminology by converting "令牌" to "token" and correcting color translations (e.g., "橙子" to "橙色").
- Adjust Chinese UI phrasing, such as mapping issue states from "进行中" to "开放" and "资源管���器" to "文件管理器".

* test: update MR Open state filter expectation to 开放

The zh locale intentionally remapped the GitLab MR 'Open' filter from
进行中 to 开放; align the test expectation with the translation.

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

* Improve Chinese and Spanish translations

- Translate "Current workspace" to Spanish.
- Correct the translation of "Atlassian" and expand "PR" to "拉取请求"
  in Chinese locale.
- Fix spacing around English terms like "token" in Chinese text in Chinese.

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-05 00:15:30 -07:00
85d555f334 fix(terminal): launch prior/default agent when a woken terminal can't resume (#6277)
* fix(terminal): launch prior/default agent when a woken terminal can't resume

Waking a sleeping worktree (or restoring terminals after an app restart)
left an agent terminal as a BLANK shell while still showing the agent's
icon: `buildColdRestoreAgentResumeStartup` returned null whenever the
provider session couldn't be resumed, and the caller then spawned a bare
shell.

Now, when resume isn't possible, an agent terminal comes back as a FRESH
session of the agent it previously ran (live status -> sleeping record ->
persisted tab `launchAgent`); if that agent is unknown but the terminal was
an agent terminal, the configured default agent is used. A genuine plain
shell stays blank, and the existing resume path, SSH/remote, and WSL
behavior are unchanged.

Fixes #4557

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* test(terminal): assert default-agent cold restore is a fresh (non-resume) launch

Addresses CodeRabbit review on #6277.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

* Fix cold restore agent fallback

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

---------

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-07-05 00:04:24 -07:00
ec9efe4638 fix: distinguish duplicate project names in picker (#6272)
* fix: distinguish duplicate project names in picker

* review: disambiguate duplicate project picker details

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

---------

Co-authored-by: Jinwoo-H <jinwoo0825@gmail.com>
Co-authored-by: Orca <help@stably.ai>
2026-07-05 00:01:30 -07:00
Jinjing d6c96e77d2 Surface detailed commit failure summaries in Create PR flow (#7401)
Instead of showing a generic commit failure message during the Create PR
intent flow, leverage `summarizeCommitFailure` to extract the underlying
reason (such as pre-commit hook or lint failures) and present it clearly.

Also introduce `commitErrorsRef` to reliably track and retrieve the most
up-to-date commit errors across renders without stale closure issues.
2026-07-05 00:00:25 -07:00
leter 6677de1807 Improve SSH Node.js prerequisite guidance
Improve SSH remote Node.js prerequisite failures by adding package-manager-specific POSIX install guidance, Windows Node 18+ candidate validation, fnm XDG probing, and regression coverage while preserving SSH abort and session-limit behavior.
2026-07-04 23:54:26 -07:00
WolfieandWolfgang Schoenberger a169b7d03d fix: focus new floating-workspace agent tab on launch (#6250)
* fix: focus new floating-workspace agent tab on launch

The default-agent button in the floating workspace titlebar created its
tab with { activate: false } and only called setActiveTabForWorktree,
which writes activeTabIdByWorktree. The floating panel selects its
visible tab from the unified group's activeTabId, so the new agent tab
was appended but never selected or focused. Add activateTab(tab.id),
matching the empty-state tab creators, so launching a new agent switches
to and focuses its tab.

* test: use top-level react type import in floating controls test

* test: lock queue-before-activate order and state updates for agent launch

Strengthen the FloatingTerminalWindowControls regression test per review:
- make the createTab mock append the new tab to the worktree (realistic store)
- seed an existing tab so append/order behavior is observable
- assert startup command is queued before activateTab (invocationCallOrder)
- assert setActiveTabForWorktree and tab bar order placement

---------

Co-authored-by: Wolfgang Schoenberger <221313372+wolfiesch@users.noreply.github.com>
2026-07-04 23:52:24 -07:00
guihirsch f11a2109c8 feat(rate-limits): add MiniMax token control (#7387) 2026-07-04 23:33:25 -07:00
Jinjing 136cb50bcb Reflow and edit hard-wrapped prose within single paragraph blocks (#7407)
* Reflow and edit hard-wrapped prose within single paragraph blocks

Instead of splitting consecutive markdown source lines into multiple visual paragraph nodes during document initialization, preserve them as a single paragraph containing literal newlines.

- Use `white-space: normal` CSS to reflow soft breaks naturally.
- Introduce `deleteAdjacentEmptyParagraph` to handle Backspace/Delete without converting soft newlines to hard break elements.
- Update the cut handler to delete only a visual line on Cmd+X within hard-wrapped paragraphs.
- Avoid split-pane/sync phantom dirty states caused by structural block splitting.

* Document why normalizeEmptyListItems is used for paragraph reflow

Add comments to clarify that normalizeEmptyListItems preserves
hard-wrapped paragraphs as single paragraphs, allowing them to
reflow via CSS instead of being split on load or external sync.
2026-07-04 23:29:05 -07:00
github-actions[bot] 17d5eff5d6 release: v1.4.123-rc.1 v1.4.123-rc.1 2026-07-05 06:02:14 +00:00
Avichal DwivediandJinjing e94c83d164 fix(ai-vault): make SSH session history host-aware (#7367)
* fix(ai-vault): scan sessions by execution host

* fix(ai-vault): route history resume by host

* test(e2e): cover SSH AI Vault history

* Generalize remote session scanning for all AI Vault agents

Replace the Codex-only remote SSH session history scanner with a
unified scanner supporting all registered agents. This ensures remote
transcripts for Claude, Gemini, Devin, Droid, and others are scanned
and listed alongside local history.

- Propagate host metadata (host ID and platform) to scanned sessions
- Scope remote actions by host, disabling local OS path actions on
  remote session logs
- Resolve ambiguous project/worktree matching for overlapping paths
  by verifying matching host setup IDs
- Update tests and E2E specs to validate multi-agent remote scanning

---------

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
2026-07-04 22:56:55 -07:00
JinjingandOrca 331a30b454 Harden rate-limit PTY working directory and abort background usage probes on stop (#7403)
* Harden rate-limit PTY cwd and abort background usage probes on stop

Resolve a runaway CPU incident where background Claude rate-limit usage
probes could inherit a root working directory (such as `/` or `C:\`) and
index the entire disk.

- Force hidden Claude and Codex usage PTYs to spawn inside a small,
  dedicated directory under user data or temp.
- Thread AbortSignal through rate-limit fetchers to immediately kill
  and reap in-flight PTY processes when RateLimitService stops.
- Harden daemon and local PTY defaults to reject root-like working
  directories for automated agent startups.

* Consolidate PTY path safety checks to prevent runaway CPU

Centralize `isRootLikePath` into a dedicated PTY path safety module
to prevent terminal launches and hidden usage probes from executing
in filesystem or drive roots, avoiding unbounded file discovery.

- Centralize path validation supporting POSIX, Windows, and UNC roots.
- Fail loudly if no safe default working directory is available.
- Enforce bounded directories for hidden usage PTYs and WSL probes.
- Check for aborted signals during rate-limit CLI repairs.

* Gate agent startup on the effective PTY cwd after default fallback

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

* test(repos): verify origin/HEAD target in SSH base-ref tests

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

* Pin HOME to assert exact default PTY cwd in spawn test

Pin `process.env.HOME` in the fallback test for LocalPtyProvider to
assert the exact resolved candidate rather than just checking that it is
non-root-like. This catches potential regressions where an unintended
home directory is picked, and uses a try/finally block to safely restore
the environment afterwards.

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-04 22:50:43 -07:00
Jinjing 863d94167c Use activeWorkspaceKey to reveal active workspace in sidebar (#7406)
Older folder-based workspaces are tracked by `activeWorkspaceKey`
rather than the legacy `activeWorktreeId`. Deriving the active sidebar
workspace ID from the workspace key enables the "Reveal active
workspace" action to work correctly for both types of workspaces.
2026-07-04 22:19:28 -07:00
Rod BoevandJinjing 7e1f9e55f2 fix(worktrees): fall back from stale default base refs (#7398)
* fix(worktrees): fall back from stale default base refs (#7312)

* docs(worktrees): explain base fallback policy

* fix(worktrees): harden stale base fallback edge cases

---------

Co-authored-by: Jinjing <6427696+AmethystLiang@users.noreply.github.com>
2026-07-04 21:31:51 -07:00
Jinjing 16d08b4fac Warn about and manage repository overrides for AI action recipes (#7386)
* Warn about and manage repository overrides for AI action recipes

This improves the user experience around overriding global AI action recipe
defaults with repository-specific settings:
- In global settings, display a note if repositories override a recipe,
  with a shortcut to review those repository settings.
- In the agent launch dialog, show a warning if the repo overrides the
  global default and default the save target to the repo.
- In repository settings, support saving and discarding recipe overrides
  on a per-action basis.

* Memoize repo filtering and override summaries in recipe defaults

Avoid re-filtering all repositories and re-computing override summaries
on every keystroke in sibling textareas.

Also use an exhaustive switch check for override field labels, and add
a test verifying the overflow note indicator when overrides exceed the
visible limit.
2026-07-04 18:31:44 -07:00
NeilandOrca eb2b894fc0 fix(store): purge pane-scoped agent/unread state on external worktree removal (#7383)
buildWorktreePurgeState is the bulk worktree-removal reducer reached by the
authoritative-scan reconcile (CLI `git worktree remove`, another Orca window,
SSH), remove-project, and the hydration stale-purge. Unlike the single in-app
removeWorktree path — which runs shutdownWorktreeTerminals /
dropAgentStatusByWorktree / clearPaneForegroundAgentByWorktree — it never ran
terminal teardown, so it left every pane-scoped map untouched:

  agentStatusByPaneKey, agentLaunchConfigByPaneKey, acknowledgedAgentsByPaneKey,
  paneForegroundAgentByPaneKey, sleepingAgentSessionsByPaneKey,
  unreadTerminalPanes, unreadAgentCompletionPanes, lastTerminalInputAtByPaneKey
  (all keyed by `${tabId}:${leafId}`) and unreadTerminalTabs (keyed by tabId).

Result: one orphaned entry per agent pane of every externally-removed worktree,
retained for the whole renderer session (monotonic growth), plus a phantom +1
on the unread dock badge. This is a direct parallel to leaks the maintainers
already fixed in this same function (browserAnnotationsByPageId, editorCursorLine
— each carrying a 'the bulk reconcile path missed them' comment).

Fix: evict these maps by tab-id / `${tabId}:` prefix in the reducer, matching
the in-app teardown. retainedAgentsByPaneKey and runtimeAgentOrchestrationByPaneKey
are intentionally left out — both self-heal (pruneRetainedAgents on a
worktreesByRepo change; the runtime map is replaced wholesale each sync).

Leak-regression test drives purgeWorktreeTerminalState and asserts every map is
emptied for the removed worktree while a sibling worktree's state is preserved.
Reverting the fix fails both cases.

Co-authored-by: Orca <help@stably.ai>
2026-07-04 18:15:19 -07:00
NeilandOrca 91323cf925 perf(windows): dedupe per-pane process-table scans in agent inspection (#7384)
* perf(windows): dedupe per-pane process-table scans in agent inspection

Windows agent foreground-process inspection forks a whole-process-table
PowerShell/CIM scan per pane on the same 750ms/2000ms cadence the POSIX path
uses. The POSIX side routes through getProcessTableSnapshot (500ms TTL + single
in-flight, #6288/#6667), collapsing N concurrent panes to ~2 scans/sec. The
Windows path (queryWindowsProcessDescendants) had no such dedup: K concurrent
agent panes forked K powershell.exe cold-starts, each enumerating the ENTIRE
process table then filtering per-pid in JS — ~10-40x heavier than `ps` (a
powershell cold start is ~150-400ms CPU + tens of MB RSS). The degraded/local
PTY provider path calls it with no per-pane throttle at all. This is the
Windows analogue of the idle-CPU churn #6288 fixed for POSIX.

Generalize the existing createProcessTableSnapshotReader factory to be generic
over its scan result (default T = string, so the POSIX path and its test are
byte-identical) and add a Windows singleton reader that caches parsed
WindowsProcessRow[]. queryWindowsProcessDescendants now reads the shared
snapshot and runs its own descendant walk; runWindowsProcessRows throws on total
enumeration failure so the miss is not cached and the prior null-fallback
contract (callers fall through to node-pty's name) is preserved.

Windows scan-volume regression test (mirrors the POSIX #6288 guard) drives
PANE_COUNT concurrent panes over the cadence window and asserts powershell.exe
spawns are bounded by ticks, not pane count, while every pane still resolves its
descendant. Reverting the dedup fails both cases. POSIX snapshot + volume tests
unchanged and green; node/web/cli typecheck clean.

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

* test: reset windows process-rows snapshot between agent-foreground cases

The new module-level Windows rows reader caches for 500ms with real
Date.now(), so one case's mocked process table was served to the next
case's assertions (7 CI failures in agent-foreground-process.test.ts).
Mirror the suite's existing POSIX resetProcessTableSnapshotForTests()
with the Windows reset in beforeEach.

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

---------

Co-authored-by: Orca <help@stably.ai>
2026-07-04 18:10:45 -07:00
NeilandOrca 62f5ad60b2 perf(emulator): stop decoding frames for hidden emulator panes (#7382)
Co-authored-by: Orca <help@stably.ai>
2026-07-04 18:01:00 -07:00
github-actions[bot] 85adb2ddad release: v1.4.123-rc.0 v1.4.123-rc.0 2026-07-05 00:22:51 +00:00
Jinjing 014a06a14e Add Portuguese README 2026-07-04 17:14:11 -07:00
Jinjing 4828a09e10 Add star history to README 2026-07-04 17:14:11 -07:00
Jinjing afd9cd5e02 Improve translations for Spanish, Japanese, Korean, and Chinese (#7381)
Translate various remaining English strings in Spanish, Japanese, Korean,
and Chinese locale files to provide better localized terminology for
common UI actions, settings descriptions, and toast messages.
2026-07-04 17:11:21 -07:00