Commit Graph
20612 Commits
Author SHA1 Message Date
Brennan Benson a62f1e4955 Keep declared default effort visible for every chat agent (#36455)
* Show declared default effort consistently across chat agents

* Leave unmappable reported effort defaults unknown

* Separate default effort context from launch policy

* Cover configured effort declarations without changing current input

* Fix declared effort context through live options readers

* Load declared effort fixtures outside test callbacks

* Combine host catalog test imports
2026-10-30 18:28:43 -07:00
Kelvin Amoaba c282cb92dd fix(codex): keep a hook-blocked prompt's Worked for line after reopen (#36515)
Codex never echoes a prompt its UserPromptSubmit hook refused, so the
turn record kept Codex's own echo key as its opener. Live, the pending
send anchored the turn; once the chat closed or the host restarted, the
send settled to unknown and the reopened chat lost the turn's Worked for
line.

Record the turn a turn/start reply names when the reply is received, and
have the journal translator name that send as the turn's opener at
turn/started, or at turn end when the reply was read after turn/started.
2026-10-31 01:18:52 +00:00
Kelvin Amoaba 36a9024a0b fix(mobile): draw Claude Code's ⏵⏵ mode marker in the Android terminal (#36516)
* fix(mobile): draw Claude Code's ⏵⏵ mode marker on Android terminals

Android ships no font with U+23F4-23F7, so the terminal drew boxes.
Bundle a 664-byte Noto Sans Symbols 2 subset, inline it in both
terminal hosts, append it to the Android font stack only, and load it
with the Nerd font before the WebGL atlas first paints.

* fix(mobile): spell the terminal font probe glyphs as escapes

* refactor(mobile): tidy terminal symbols font wiring
2026-10-31 01:16:24 +00:00
OrcaWinandOrcaWin 9cdb7ae295 test: remove 31 low-value suites from audit batch 850 (#36512)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-30 18:13:32 -07:00
Neil f0a6da5739 fix(wsl): re-check WSL hosts before the delayed Node prefetch runs (#36514)
Turning WSL hosts off within the 60 s delay still downloaded the archive.
Re-check the gate and the setting when the timer fires; a later turn-on
schedules again. Also correct the build-architecture comment: an x64
build emulated on Arm fetches the x64 archive, which goes unused.
2026-10-30 18:12:06 -07:00
Brennan Benson 852391da0f Show a details card when tapping phone session tabs (#36395)
* feat(mobile): tap the session title to see its full name, path and host

A sideways phone caps the title at 160pt beside the tabs, so long worktree names were cut off with no way to read them. Tapping the title now opens a card under the top bar, built like desktop's tab hover card, with the full name, the worktree's path and the host. It fades and slides in over 150ms (fade only with Reduce Motion), and any tap outside closes it.

* fix(mobile): keep the worktree-name reset effect unchanged; type-only View import; lazy card animation value

* fix(mobile): preserve title card bounds and execution host identity

* test(mobile): complete title card platform mocks

* fix(mobile): separate detail card from title trigger

* style(mobile): apply pinned formatter wrapping

* fix(mobile): reopen session details during the closing animation

* style(mobile): wrap the session title imports

* Keep session title activation on one target through card exit

* Host session details above page navigation and retain input scope

* Keep the title target clear as its layout changes

* Clarify title-card types and observer cleanup for checks

* Keep mobile title-card requests and visual exits under one owner

* Make the existing mobile title an explicit web click target

* Keep mobile title details nonmodal through their visual exit

* Follow the active mobile palette in session title details

* Use array syntax for title card motion fixture

* Localize the mobile workspace details hint

* test(mobile): cover title card release to a higher sheet

* Refresh measured mobile web chunk envelope

* Show session tab details on phone taps

* Keep phone tab details current through layout and handoff

* Refresh cached phone tab footer colors with appearance

* Use checked fixture state and top-level test owner types

* Supply app visibility in the title card Surface fixture

* fix(mobile): keep empty terminal detail titles readable
2026-10-30 17:57:28 -07:00
Brennan Benson 5cf236730f Add Chat UI upgrade tip and Chat/Terminal default tiles (#36171)
* Chat UI leaves Experimental: each agent's Chat | CLI choice decides launches

Remove the experimentalNativeChat switch and every gate on it. The Chat
settings page, Default Agent Chat | CLI choice, + menu Chat/CLI rows,
source-control surface choice, Antigravity chat section and orchestration
chat-error switch are always present. What a new launch opens comes only
from the per-agent choice (no saved choice opens a chat) plus the existing
support checks.

- One lookup, nativeChatPreferenceFor, keyed by agent id so host-registered
  agents read the same way; unreadable settings still open a terminal.
- A relayed desktop stamp (nativeChatDefault) maps onto the launched agent;
  an explicit surface still wins. Old phones' createSupport keeps admitting
  by the host's per-agent choice.
- settings.get stops publishing the retired switch keys; nothing in the
  repo reads them from a host.
- Startup chat sync and hydration run when some agent can open as a chat
  or the machine already holds chats.
- The retired key is stripped on load. The one-time upgrade tip from the
  chat upgrade is retired with its audience record; a new record, captured
  once from the raw profile, marks which existing profiles had Chat UI off.
- The window-side AI-button tab path, which only ran with the switch off,
  is deleted.

* Keep profiles that had Chat UI off on the terminal

Existing users who never turned Chat UI on would otherwise see new agent
launches open as chats, since an agent without a saved choice now opens as
a chat. The one-time load step that records the new audience also sets
every known agent to CLI for those profiles, in the same save and only
when the record was absent, overwriting saved chat choices the old switch
masked. Profiles that had Chat UI on and new profiles are untouched.

Browser profiles keep their own settings, so the web client does the same
once: a stored switch that is not on seeds CLI choices, and dropping the
key marks the step done.

Agents first seen after this step open as chats.

* Agents without a saved Chat | CLI choice open as their CLI

An agent with no saved choice now opens in the terminal for everyone,
including fresh installs and agents first seen later. The one-time load
step carries what launches opened while Chat UI was experimental: with
the switch on, every known agent without a saved choice is saved as
chat; with it off, chat choices the switch masked are saved as CLI.
Existing profiles join the launch tip audience whether the switch was on
or off. Browser profiles get the same carry from their saved key.

The startup chat restore and host agent list now run only when some
agent is saved as chat or the runtime holds chats.

* Chat UI is here: a one-time tip for profiles that upgraded

Profiles saved before Chat UI left Experimental see a "Chat UI is here"
tip once, on the first launch after updating. Fresh installs, unreadable
audience records and the web client never see it.

- Had Chat UI off: says agents can now open as a chat and that the
  terminal stays fully supported. "Use Chat UI" saves Chat for every
  agent Orca knows (the roster the load step carries), then closes;
  "Stay in terminal", close and Escape change nothing.
- Had Chat UI on: says Chat UI is now part of Orca and the terminal
  stays supported; one "Got it" closes without changes.
- Both link to Settings -> Agents. The visual is an animated miniature
  chat that sends a question, reads a file and draws a flow diagram,
  then fades as one and repeats; reduced motion shows the finished
  frame.
- The variant comes from main's once-decided audience record over a
  new onboarding IPC read; the startup gate waits for it.
- FeatureTipActions takes a secondary label; the frame takes a copy
  column class, used here so the buttons line up with the card's
  composer. Other tips are unchanged.
- Telemetry: chat_ui_feature_tip_shown and chat_ui_feature_tip_action.

* Preserve owned terminal launches and local chat choices

* Chat UI tip: translate the miniature, honor reduced motion mid-loop

- The miniature's conversation (tab title, prompt, reply, diagram and
  arrow labels) is translated in every locale; the composer, permission
  chip, working row and Read verb reuse the chat's own strings. File
  names, the /login route and the model name stay as written.
- The reply is one paragraph that wraps naturally; words (segmented per
  locale, so scripts without spaces still stream) reveal in turn.
  Diagram boxes size to their labels and arrow labels never widen the
  row.
- Turning reduced motion on mid-loop jumps to the finished still with
  no transitions.
- Telemetry records use_chat_ui only after the save succeeds and has a
  distinct stay_in_terminal action.
- The dialog renders its own title, so the duplicate catalog copy is
  gone; Use Chat UI writes the full roster without re-spreading saved
  choices.
- Buttons: the primary's focus ring meets the card's bottom edge.

* Clarify chat and terminal support

* Explain worker CLI integration timeout budget

* Use checked annotations for chat graduation test fixtures

* Store agent surface default separately from per-agent overrides

* Preserve explicit Chat intent across default changes

* Preserve current browser settings during host replies

* Correct browser settings factory and regression types

* Name exported launch fixture mock types and clarify agent defaults

* Preserve settings fallbacks and complete launch test lifecycles

* Check allocated tab identity before launch fixture interpolation

* Drop file links from the Chat UI tip copy

* Register combined integration project for compiler parity probes

* Use checked settings in the launch test fixture

* Settings → Agents: "Open agents as" Chat or Terminal tiles

A new top section in Settings → Agents sets this computer's default for
how agents open: two tiles, Chat ("Rich messages, visuals and images.")
and Terminal ("Each agent's own CLI."), each with a still preview. The
chat preview reuses the tip's copy and flow diagram; the terminal preview
draws Claude Code's interface in the user's terminal theme and font.

- Picking a tile writes only agentDefaultSurface, through the same queue
  as the per-agent Chat | CLI rows. The tiles show the saved default; an
  agent set on its own row keeps its choice and is not reflected up top.
- If any agent's own choice differs from the new default, one toast names
  them ("Claude and Codex stay in the terminal, as you set.") with "Set
  all to Chat" / "Set all to Terminal", which drops those choices so they
  follow the default. Only agents whose row offers Chat | CLI count. No
  toast when nothing differs, and never from the tip.
- "Choose per agent" scrolls to and focuses the Installed list.
- Shown for this computer only (not on a paired host's page); the web
  client gets it too. Searchable as "Open agents as".
- Copy in all locales; the tip's intro copy in other locales also drops
  "file links", matching English.

* Fix Chat UI settings navigation and acknowledged preference actions

* Keep the agent default surface controls in full Settings

* Keep the per-agent navigation button free of link underlining

* Use checked types and existing presentation primitives for Chat UI tips

* Preserve retired Chat preference data privately

* Align chat E2E fixtures and capture pane lifecycle evidence

* Use typed raw settings in retention contracts

* Fix Chat UI settings search types and localization catalogs

* Consolidate transcript diagnostic imports

* Keep setup-only dependency changes out of the branch

* Update dev education history expectation for Chat UI tip

* test: align chat fixtures with live pane and native menu contracts

* test: capture relay tab selection loss diagnostics

* test: wait for owned shells before synthetic chat fixtures

* test: preserve all-host visibility in SSH observer

* test: bind synthetic transcript fixtures before provider seeding

* test: assert selected chat owner after narrow image preview

* ci: allow fifth compiler project to complete comparison

* Drop 'keeps getting better' from the Chat UI tip's terminal line

* Trim the empty space above the Chat UI tip's visual

* Tighten the space above the Chat UI tip's flow diagram; undo the card resize

* Tighten the Chat UI tip's reply and diagram spacing

* Give the tip's flow diagram a little more room and shorten its tab bar

* Type the web-terminal fixture's chat map without an assertion

* Right-click the selection itself in the chat copy spec
2026-10-30 17:46:12 -07:00
Kelvin Amoaba eb7631ccc5 fix(mobile): keep Markdown editor selection visible deep in long files (#36505)
* fix(mobile): keep Markdown editor selection visible deep in long files

iOS WebKit stopped drawing the selection highlight and handles about two
screens into the rich Markdown editor because the editable element was
scrolled by its non-editable host. Make the editable element scroll itself.

* test(mobile): find the editor's document rule by a property it still has
2026-10-31 00:45:04 +00:00
Brennan Benson 76cf164cf9 Chat UI leaves Experimental: each agent's Chat or CLI choice decides what opens (#36110)
* Chat UI leaves Experimental: each agent's Chat | CLI choice decides launches

Remove the experimentalNativeChat switch and every gate on it. The Chat
settings page, Default Agent Chat | CLI choice, + menu Chat/CLI rows,
source-control surface choice, Antigravity chat section and orchestration
chat-error switch are always present. What a new launch opens comes only
from the per-agent choice (no saved choice opens a chat) plus the existing
support checks.

- One lookup, nativeChatPreferenceFor, keyed by agent id so host-registered
  agents read the same way; unreadable settings still open a terminal.
- A relayed desktop stamp (nativeChatDefault) maps onto the launched agent;
  an explicit surface still wins. Old phones' createSupport keeps admitting
  by the host's per-agent choice.
- settings.get stops publishing the retired switch keys; nothing in the
  repo reads them from a host.
- Startup chat sync and hydration run when some agent can open as a chat
  or the machine already holds chats.
- The retired key is stripped on load. The one-time upgrade tip from the
  chat upgrade is retired with its audience record; a new record, captured
  once from the raw profile, marks which existing profiles had Chat UI off.
- The window-side AI-button tab path, which only ran with the switch off,
  is deleted.

* Keep profiles that had Chat UI off on the terminal

Existing users who never turned Chat UI on would otherwise see new agent
launches open as chats, since an agent without a saved choice now opens as
a chat. The one-time load step that records the new audience also sets
every known agent to CLI for those profiles, in the same save and only
when the record was absent, overwriting saved chat choices the old switch
masked. Profiles that had Chat UI on and new profiles are untouched.

Browser profiles keep their own settings, so the web client does the same
once: a stored switch that is not on seeds CLI choices, and dropping the
key marks the step done.

Agents first seen after this step open as chats.

* Agents without a saved Chat | CLI choice open as their CLI

An agent with no saved choice now opens in the terminal for everyone,
including fresh installs and agents first seen later. The one-time load
step carries what launches opened while Chat UI was experimental: with
the switch on, every known agent without a saved choice is saved as
chat; with it off, chat choices the switch masked are saved as CLI.
Existing profiles join the launch tip audience whether the switch was on
or off. Browser profiles get the same carry from their saved key.

The startup chat restore and host agent list now run only when some
agent is saved as chat or the runtime holds chats.

* Preserve owned terminal launches and local chat choices

* Clarify chat and terminal support

* Explain worker CLI integration timeout budget

* Use checked annotations for chat graduation test fixtures

* Store agent surface default separately from per-agent overrides

* Preserve explicit Chat intent across default changes

* Preserve current browser settings during host replies

* Correct browser settings factory and regression types

* Name exported launch fixture mock types and clarify agent defaults

* Preserve settings fallbacks and complete launch test lifecycles

* Check allocated tab identity before launch fixture interpolation

* Register combined integration project for compiler parity probes

* Use checked settings in the launch test fixture

* Preserve retired Chat preference data privately

* Align chat E2E fixtures and capture pane lifecycle evidence

* Use typed raw settings in retention contracts

* Consolidate transcript diagnostic imports

* test: align chat fixtures with live pane and native menu contracts

* test: capture relay tab selection loss diagnostics

* test: wait for owned shells before synthetic chat fixtures

* test: preserve all-host visibility in SSH observer

* test: bind synthetic transcript fixtures before provider seeding

* test: assert selected chat owner after narrow image preview

* ci: allow fifth compiler project to complete comparison

* Type the web-terminal fixture's chat map without an assertion

* Right-click the selection itself in the chat copy spec
2026-10-30 17:43:04 -07:00
OrcaWinandOrcaWin be1fceb69d test: remove 39 low-value suites from audit batch 849 (#36491)
* test: remove 39 low-value suites from audit batch 849

* test: remove obsolete shell-contract trigger for deleted suite

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-30 17:20:27 -07:00
Kelvin Amoaba bc57cdbf77 fix(web): keep Unlimited session history in the browser client (#36507) 2026-10-31 00:19:22 +00:00
Kelvin Amoaba d503ff9f16 fix(terminal): hold a phone send until a new Claude tab's composer is up (#36494)
* fix(terminal): hold a phone send until a new Claude tab's composer is up

* fix(terminal): replace a reused PTY's launch-composer watch
2026-10-31 00:13:34 +00:00
Kelvin Amoaba 10ffe0c940 fix(agent-status): stop showing Claude as Working after a hook blocks the prompt (#36495)
* fix(agent-status): settle a Claude pane when a prompt hook blocks the prompt

Claude fires no Stop after a UserPromptSubmit hook blocks the prompt, so the
pane stayed Working: 2 minutes until the OSC 7501 fallback, or until the next
turn when Claude's idle landed before Orca's own prompt hook. A prompt now
claims the program's working run, and a claimed run that goes idle without a
result or user input settles the turn the way a plain Stop would, in either
order. Input during the run (Escape, Ctrl+C) leaves the verdict to interrupt
inference, and relayed panes keep the relay's adjudication.

* fix(agent-status): keep a typed prompt from claiming an earlier rested run

Any input since the run began now withdraws its rest from the blocked-prompt
settle, so the keystrokes of the next prompt stop a stale idle run from being
claimed if that prompt's hook lands before its own working report.
2026-10-31 00:09:31 +00:00
Neil 86d1623009 feat(wsl): prefetch the pinned Node archive when WSL hosts turn on (#36500)
A first WSL deploy downloads the pinned Linux Node archive (about 55 MB)
while the user waits, and fails on a network that blocks it. Once the WSL
hosts flag is open and the setting is on, fetch it in the background into
the cache the deploy reads, through the same materializer (mirror, proxy,
hash check). Once per run, deduped, never boots a distro; a failure is
logged and the deploy's download path is unchanged.
2026-10-30 17:06:45 -07:00
Brennan Benson 57bc1778dc A chat rename also renames the agent's own conversation (#34192)
* A chat rename also renames the agent's own conversation

Renaming a native chat saved the name only in Orca, so the agent's own resume list (claude --resume, Codex's resume picker) kept showing its old title for the same conversation.

After a rename is saved, the host now gives the chat's current agent conversation the same name, the way the agent's own rename does: Claude through its host rename request (or its title line when no Claude is running), Codex through thread/name/set (live, or from a short-lived app-server under the chat's account), Pi through set_session_name while it runs. A new agent conversation in the same chat (first message, /clear, rewind) takes the name when it starts; resuming one never does, so a rename typed in the agent's own CLI is kept. Names Orca chose are never pushed. Failures are logged and never affect the rename.

* Preserve provider naming across rewind, close, and configured launches

* Use a fixed timestamp in session title fixture

* Format session rename regressions and simplify setup

* Resolve idle naming without conversation launch admission

* Assert configured PATH in idle naming regression

* Fix Codex session rename lint errors

* Correct provider rename regression fixtures

* Remove redundant rename traversal test after corpus validation

* Restore filesystem rename scaling contract

* Reuse Codex close delegate for disposal

* Join accepted provider naming work before runtime shutdown

* Correct the provider naming shutdown test fixture

* Preserve explicit conversation names across Claude startup

* Settle proven retiring writers before naming follow-up

* Preserve configured Codex rename invocation and align integration fixtures

* Fix construction and fixtures exposed by CI

* fix(chat): reconcile naming owner on late Claude exit

* fix(chat): align naming fixtures with async contracts

* test: separate Claude initialization results from native fixture exits

* test: type Claude naming fixture launch options

* test: await original journal close completion

* fix: persist Claude prompt names with session titles
2026-10-30 16:57:27 -07:00
Neil 2b00c57182 fix(agents): accept launch-time --model and --effort for grok (#36480)
* fix(agents): accept launch-time --model and --effort for grok

Grok's session option catalog already maps model and reasoning effort to
-m / --reasoning-effort, but it did not opt into worker launch
preferences, so orchestration worker-start rejected --model/--effort for
grok. Opt the catalog in and list Grok in the CLI help and docs.

Fixes #36199

* test(orchestration): use an agent without launch preferences in the federation rejection test
2026-10-30 16:48:26 -07:00
Pr1pandNeil 5cb0551b68 fix(editor): apply file icon themes to editor tabs (#36345)
Editor tabs called the built-in getFileTypeIcon table directly, so an
enabled plugin file-icon theme changed the explorer but not the tabs.
Plain file tabs now render the shared theme-aware FileTypeIcon, and
PluginContributionIcon accepts a ReactElement fallback so the icon
component type stays stable across renders. Simulator tabs pick the
phone icon from their language instead of their label, so they keep it
under a theme.

Fixes #36326

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:43:16 -07:00
Vyacheslav ScherbininandNeil a5321f30cf fix(text-generation): discover installed CLIs when naming chats (#35954)
One-shot POSIX text generators (chat naming, commit/branch/PR text)
passed a bare CLI name to the supervisor, whose PATH-only lookup missed
version-manager installs (e.g. nvm) that native chats already find when
the GUI process PATH omits them. Resolve bare commands with the existing
guest-aware installed-CLI resolver, searching relative and empty PATH
entries from the agent's launch cwd so project recipe CLIs keep
precedence, and share that PATH resolution with Codex structured launch.

Fixes #35942

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:43:09 -07:00
Neil fba64aef1b fix(wsl): keep the orcad idle window out of user shells; require the agent for discovered effort menus (#36492) 2026-10-30 16:42:15 -07:00
Brennan BensonandMerge Sim cd481306e3 Keep concurrent title edits when marking GitLab MRs ready (#19646)
* fix gitlab ready mutation title race

* use approved GitLab SetDraft schema

* fix gitlab ready transition semantics

* report semantic ready adapter validation

* test gitlab semantic ready mutation failures

* fix gitlab semantic ready lint

* test(gitlab): reproduce readiness title race and combined edits

* test(gitlab): cover old-host readiness and rejected commands

* fix(gitlab): preserve concurrent titles with compatible ready updates

* test(gitlab): use recorded CLI error transport shape

* fix(gitlab): handle legacy schemas and report partial readiness updates

* fix(gitlab): validate readiness responses without assertions

* test(gitlab): cover ready failures and execution routing

---------

Co-authored-by: Merge Sim <sim@local>
2026-10-30 16:38:27 -07:00
berceandNeil c5e8db86eb fix(worktrees): rewrite a trailing .lock in derived branch names (#36435)
Git rejects a ref component ending in .lock, so creating a worktree from an
issue whose title ends that way (e.g. "... mise.lock") failed with
"is not a valid branch name". computeValidatedBranchName now rewrites a
trailing .lock to -lock in the branch name only, so the worktree folder
keeps the requested name.

Fixes #36404

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:37:55 -07:00
Brennan Benson 5506c5487f Reserve the Git Bash capacity overlay for untouched Windows startup failures (#16991)
* fix(terminal): only the Windows console-limit failure keeps a dead terminal open

#16045 retained every non-zero local PTY exit and only used the Git Bash
console-capacity marker to pick the overlay's label, so an ordinary shell
exiting after a failed command left a dead pane behind on macOS and Linux too.

Claim the exit for the capacity overlay only when all of it holds: a native
local Windows ConPTY pane, a non-zero code, the same PTY whose fresh spawn was
observed, no user input on that PTY (an unsettled write counts), and the exact
MSYS marker in that PTY's own output. Every other exit falls through to the
unchanged teardown path.

Per-PTY interaction rides on the existing per-PTY process-exit record, marked at
the input-forward chokepoint so a late write acknowledgement can never label a
replacement PTY.

STA-5604

* test(terminal): pin the two unpinned arms of the Git Bash capacity gate

Gate-level ablation of the six-clause capacity condition found the six
conjuncts each individually pinned, but two neighbouring arms free:

- the `session.deps.onPaneProcessDied` presence check. The callback is
  optional on PaneConnectionDeps; without the guard a capacity exit calls
  `undefined` and throws out of the exit handler, leaving the pane neither
  retained nor torn down.
- the per-PTY keying in `noteTerminalInputForPty`. A generation installs its
  exit state when its callbacks are captured, before the transport rebinds
  its PTY id; a write in that window would be credited to the incoming PTY
  and silently suppress its capacity overlay.

Both new tests fail with their own arm reverted and pass with it restored.
No production change.

* Preserve startup input intent across terminal connection

* Keep terminal input attempts with their launch across remounts

* Load the real capacity-test transport during suite setup

* Match the paste-input test result type to its API
2026-10-30 16:33:44 -07:00
Brennan Benson 37ef6e9268 Explain Git Bash console exhaustion when terminal startup fails (#36422)
* Report Git Bash console exhaustion when terminal startup fails

* Observe initial terminal diagnostics before startup output changes

* Keep terminal startup diagnostics scoped to fresh launches

* Preserve claimed terminal failure provenance

* Finalize terminal startup failure classification at producers

* Preserve terminal creation provenance and startup warnings

* Correct startup diagnostic test type boundaries

* Use a typed startup projection test adapter

* Consolidate startup readiness diagnostic imports

* Exercise installed DLL format fixture through terminal startup failure

* Use checked startup failure test dependencies

* Preserve exact DLL fixture bytes on checkout

* Align terminal regression fixtures with exit contracts

* Complete exit verdict expectations in runtime contracts

* Drive ConPTY startup before fake-clock foreground checks

* Cover formatted capacity failures in terminal error toast

* test: preserve neutral exits after terminal wait integration
2026-10-30 16:33:00 -07:00
Neil 4b3ccc4158 fix(windows): skip the ConPTY input-reader check on WinPTY panes (#36490)
node-pty falls back to WinPTY below Windows build 18309. WinPTY never sends
ConPTY's DA1 announcement, so every plain terminal was classified as having no
input reader and the healthy shell was killed and respawned. On v1.4.244 that
discard killed the WinPTY agent twice, and winpty's native kill throws
'Pty seems to have been killed already', failing every plain terminal spawn.

Fixes #36317
2026-10-30 16:32:29 -07:00
Blue DaydreamingandNeil 221e958689 fix(readme-links): check mixed-case HTML attributes in README links (#36213)
Match src/href/srcset attribute names case-insensitively so links written
as SRC, HREF, or SrcSet are validated like lowercase ones, while URL case
is preserved.

Fixes #36211

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:27:11 -07:00
小七 014580a12f fix(settings): keep the agent environment editor reachable when empty (#36034)
The local agent Environment editor returned null when an agent had no
default env, override, or draft, so only goose showed it while empty and
users had no UI path to add a first variable. Always render it, dropping
the showEmpty/hasDefaultEnv plumbing.

Fixes #35997
2026-10-30 16:27:03 -07:00
Jinjing 70e8ef7f3b fix(i18n): translate recent desktop and mobile copy (#36489) 2026-10-30 16:16:54 -07:00
Victor HerreraandNeil 711772b740 fix(azure-devops): negotiate API version down for older Azure DevOps Server (#36424)
Self-hosted Azure DevOps Server instances capped below REST 7.x reject
every api-version=7.1 call with VssVersionOutOfRangeException, so PR
detection, checks, review state and PR creation silently failed.

Step down a fixed 7.1 -> 6.1 -> 5.1 ladder (plus the existing -preview
retry) on version rejections, cache the negotiated version per origin,
and bound retries. PR creation shares the same negotiation.

Fixes #36423

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:16:31 -07:00
David CabreraandNeil e78cbfba9b fix(rate-limits): map Cursor pools for team-limited accounts (#36394)
Team-limited (enterprise) Cursor accounts report the member's included
allowance as `individualUsage.overall` instead of an enabled `plan` pool,
so the monthly meter showed nothing. Fall back to `overall` when `plan` is
absent or disabled. Team-wide `teamUsage.onDemand` stays unmapped because
it is not this member's allowance.

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:16:23 -07:00
QiuzandNeil 12df63b4ee fix(agents): bundle the CodeBuddy icon instead of the Google favicon fallback (#36265)
CodeBuddy was the only catalog agent with neither an iconUrl nor a bundled
favicon, so AgentIcon fell through to Google's favicon service, which returns
a generic globe for codebuddy.ai. Map it to the already-shipped
src/shared/agent-icons/codebuddy.png (also used by mobile).

Fixes #36259

Co-authored-by: Neil <neil@stably.ai>
2026-10-30 16:16:15 -07:00
Neil 0826abd48e plugins: add Try it samples for the new official syntax plugins (#36486) 2026-10-30 16:10:09 -07:00
Brennan Benson c8903ea467 Fail readiness promptly when the terminal exits (#36457)
* fix(terminal): settle idle waits after a recorded exit

* test(terminal): keep CLI wait integration in runtime boundary

* fix(terminal): preserve idle waits across uncertain disconnects

* fix(terminal): observe process lifetime during composer readiness

* test(terminal): bound pending composer exit work

* test: wait for SSH idle admission without wall clock

* test: use checked federation runtime replies
2026-10-30 16:05:33 -07:00
Kelvin Amoaba a545b8926c fix(ai-vault): clear the Session History search when you switch workspace (#36472)
* fix(ai-vault): clear the Session History search when its workspace changes

The query was panel state with no tie to the workspace or project it
searched, so the sidebar panel kept filtering the next workspace with it
and showed no matches. Clear it when the Workspace or Project scope's
subject changes; All and user-picked scope changes keep it.

* refactor(ai-vault): pick the query subject with a scope lookup
2026-10-30 23:05:16 +00:00
Brennan Benson dfa617cc67 Show each chat’s account in Session History details (#35392)
* Show recorded session accounts in History details

* Fix session account lint failures and extract presentation

* Isolate session account cards from unrelated settings updates

* Keep session account labels tied to available current roster evidence

* Add English session account labels

* Share recorded session account observation and isolate optional stream evidence

* Verify healthy account and usage consumers during optional registry loss

* Bound session account comparisons and acquisitions

* Use nonmutating reversal in account peer tests

* Type the account subscription replay fixture without assertions

* Repair account directory types and integration fixture imports

* Give account details fixture a portable return type

* fix: release account streams on transport abort

* test: name desktop account stream IPC event type

* chore: temporarily expose e2e compiler diagnostics

* test: type account stream unsubscribe as callable
2026-10-30 15:52:32 -07:00
Brennan Benson d879474a03 docs(orchestration): explain recovery after repeated worker startup failures (#36335)
* docs(orchestration): explain user-directed task recovery

* docs(orchestration): correct recovery placement and terminal cleanup
2026-10-30 15:51:30 -07:00
Kelvin AmoabaandZheNing Hu add1778e4a fix(terminal): link a URL wrapped inside a table cell on every row (#36482)
* fix(terminal): link a URL wrapped inside a table cell

A markdown table rendered by an agent TUI wraps a long URL onto extra rows
of its own cell, leaving the sibling cells blank. Two gates in the
hard-wrapped HTTP builder rejected that layout, so the link stayed cut at
the first row and opened a truncated URL:

- a changed prefix under a second left frame was always read as an
  adjacent table cell, and
- only the padding up to the URL's own right frame is cell-local, so a
  populated sibling cell to the right killed the row.

Treat a blank gutter between the frames as the same cell continuing, and
only require the URL's own cell padding to be blank. A blank-gutter
continuation is also enough evidence to join a two-row URL, which the
previous three-row minimum ruled out.

* fix(terminal): join a two-row URL in the first table column

A URL that starts in the left table column continues through the
unchanged-prefix branch, so no blank sibling cell marks its continuation
row and the row-count guard dropped the second row.

Count the blank cells right of the URL as continuation evidence for that
layout too, and keep single-column tables on the three-row minimum so a
complete URL that happens to end at the cell border is not glued onto the
next table row.

* fix(terminal): join a table-cell URL only when its row's other cells are blank

A wrapped table cell leaves every other cell on its continuation rows blank,
so that one rule now decides a two-row join in any column. This replaces the
adjacent-cell gutter count and the first-column 0.95 border threshold. Checking
only the adjacent cell glued a next table row like `│ 2 │     │ notes │` onto
the URL above it.

* fix(terminal): end a table-cell URL at a row whose right-hand cells are filled

Below the URL's first row, a filled cell to its right starts a new table row. Text beside an overlay with no table frame is not a sibling cell either.

* fix(terminal): end a table-cell URL where the cells left of it change

Every continuation row of a wrapped cell shows the same cells to its left, so a row that fills them again (a repeated label) starts a new table row.

* fix(terminal): apply table-cell rules only to rows that keep the table frame

An overlay's gutter can show a frame beside its first row only; those rows vary by design and keep the overlay join.

* fix(terminal): count cells right of a URL as a table only when they close with a frame

A split pane or screen text beside an overlay ends without a closing frame and is not a sibling cell.

---------

Co-authored-by: ZheNing Hu <adlternative@gmail.com>
2026-10-30 22:47:25 +00:00
Neil c8e3809812 fix(status-bar): toggle Plugins settings closed on a second click (#36479)
The Plugins status bar button always navigated to Settings > Plugins, so a
second click left the page open. Route the click through a new 'toggle'
settings navigation intent: Settings, which owns the active pane, closes
itself (via the unsaved-changes guard) when that pane is already showing and
otherwise navigates as before. The Mod+Shift+X shortcut stays open-only.

Fixes #36415
2026-10-30 15:45:05 -07:00
Neil b586ef9453 ci(e2e): route plugin system sources to the plugin e2e specs (#36477) 2026-10-30 15:37:55 -07:00
Kelvin Amoaba 77f76af037 fix(native-chat): stop a finished turn announcing "responding" (STA-10926) (#36474) 2026-10-30 22:34:51 +00:00
Neil 48bb6bc863 test(plugins): follow per-plugin review for access-growing updates in update e2e (#36473)
Since #36218 a lone update that grows access opens straight into its own review,
and several such updates list with Review buttons instead of joining Update all.
2026-10-30 15:19:24 -07:00
Brennan Benson 12edee3ac6 Choose default models and effort for agents (#36210)
* Add host-owned model and effort defaults to agent settings

* Unify terminal defaults and raw argument precedence

* Keep agent model defaults typed through creation

* Preserve quick-create prompt through preparation

* fix: complete execution-host preference boundary and CI contracts

* Preserve raw options until a replacement is emitted

* Complete launch choice ownership and consumer contracts

* Align launch contracts with compiler boundaries and consolidate proof

* Name exported fixture mocks and verify ordered chip removal

* Preserve typed choices across compound legacy publication edits

* Preserve non-emitted composed launch choices through legacy edits

* Preserve rollback omissions and settle agent launches before success

* Carry terminal draft ownership through launch completion

* Keep inline draft delivery independent of terminal projection

* test: consolidate launch ownership contracts

* test: check web launch fixture array types

* test: align launch fixtures and conformity records

* test: import the shell-ready marker from its declaring module

* test: give caller routing the web host tab's completion contract
2026-10-30 15:17:52 -07:00
Neil d42130b433 fix(plugins): stop painting a disabled plugin's terminal theme (#36471)
* fix(plugins): stop painting a disabled plugin's terminal theme

* fix(plugins): tell the clicking window when a plugin is disabled or removed

* test: merge duplicate import
2026-10-30 15:14:25 -07:00
Brennan BensonandNeil d307d114a0 A dropped screenshot is written once, straight into the chat's attachment store (#31779)
* fix(native-chat): a dropped screenshot is written once, straight into the chat's store

A screenshot dragged from its macOS thumbnail into a local chat was read into
memory, or spilled to a private copy in the OS temp folder for a batch over
50 MiB, then moved into the chat's attachment store; when the temp folder and
the store were on different disks that move was a second full copy.

The page now reads the dropped File's bytes, the way the common pattern does,
and the store writes them once into a hidden part file in its own folder and
renames it into place. Main still decides which dropped paths are such files
and leaves them unread; a file over the store's 50 MiB limit keeps its checked
private copy, and a store that is unavailable, refused or failing gets the
received bytes as a private copy instead. The in-memory tier, the spill and
the cross-disk import are gone.

Tracked in STA-11413.

* test(native-chat): type the dropped-bytes mock instead of asserting

* fix(native-chat): own dropped files through completion and drain

* fix: keep failed drop cleanup outside payload drain

* fix: include drop integration dependencies in web typecheck

* test: run main file and plugin integration contracts in Node

* fix(i18n): preserve runtime entries after removing untracked settings (#31852)

* fix(native-chat): write dropped screenshots straight into the chat store

A local chat's drag-temp files stay open after their checks and are
streamed once into a pending file in the chat's attachment folder, then
renamed into place. This removes the in-memory tier, the temp-folder
spill and the cross-disk copy that made large cross-disk drops slower.
A file over the attachment limit, or a drop with no store, keeps the
private temp copy made from the same open handle. A file rewritten after
the drop is refused as changed.

* fix(native-chat): keep checked drop source open for fallback

* test(native-chat): make dropped source rewrite deterministic

* Use bounded reads for small checked drop files

* Register approved checked drop copier line exception

* Keep checked drop source copying in a focused module

* Finish buffered drop writes after proven bytes persist

* Capture budgeted drop bytes before waiting for the chat store

* Assert the capture test store getter resolves successfully

---------

Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
2026-10-30 15:09:11 -07:00
Neil 0cb87957e0 fix(terminal): stop terminal text turning bold after a restart (STA-4042) (#36463)
xterm's WebGL atlas warm-up pre-rasterized default-color ASCII without a DOM
container. When it ran before the first glyph was drawn (a blank restored
pane), the glyph canvas was still detached, so Chromium ignored the page's
-webkit-font-smoothing: antialiased and baked heavier glyphs into the cache
until something cleared the atlas (e.g. an image paste).

Warm up through the terminal element and skip it while that element is not
connected; skipped glyphs are drawn on demand.
2026-10-30 15:08:42 -07:00
Kelvin Amoaba 17cace4f22 fix(mobile): lead workspace-list agent rows with the conversation name (#36464)
* fix(mobile): lead workspace-list agent rows with the conversation name

* fix(mobile): name a same-tab child once its parent row is gone

* refactor(runtime): share the structured chat tab id parser

* test(runtime): build the row-name summary without a cast

* perf(runtime): read each worktree's session once per worktree.ps pass
2026-10-30 22:07:24 +00:00
Neil 8c777ea465 plugins: tell once when an automatic update waits for your review (#36462)
* plugins: tell once when an automatic update waits for review

When the auto-updater holds back an update because it asks for more access
or moved repository, show one toast per plugin version (grouped when several
wait). Review opens the existing per-plugin update review or the Updates list;
it never installs or approves. Told versions persist across restarts, kill-listed
plugins are skipped, and the copy is protected from language packs.

* test(plugins): wait on the update pass instead of sleeping in the review toast e2e
2026-10-30 15:01:54 -07:00
OrcaWinandOrcaWin e6a8959f4b test(windows): give the credential fixture's cold Python start 30s (#36465)
* test(windows): give the credential fixture's cold Python start 30s

* test(windows): explain the credential test's timeout

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-10-30 14:59:48 -07:00
Neil 34f508fb11 fix(plugins): let an enabled plugin syntax beat Orca's guessed language (#36468)
A plugin syntax only applied to files Orca showed as plain text, so plugins
could not color MATLAB .m (Objective-C), OCaml .ml/.mli (F#), Julia .jl,
JSP .jsp/.jspf (HTML stopgap), or Haskell .hs and Erlang .erl/.hrl, which
Orca maps to ids it never registers a grammar for.

Now an enabled plugin syntax wins for any file name or extension it
declares, except files Orca opens as TypeScript, JavaScript, JSON, CSS,
SCSS, Less, HTML or Markdown (their language drives completions,
diagnostics or Markdown features). JSP stays overridable. Ties between
plugins go to the lower syntax id instead of load order. The editor and
both diff views share the hook, so they agree.
2026-10-30 14:57:23 -07:00
Neil e8d9a58b05 plugins: show a catalog entry's own publisher, not the catalog owner (#36466) 2026-10-30 14:51:01 -07:00
Neil 6dfddc1a20 fix(sidebar): stop clipping the child workspaces chip in classic cards (#36460)
* fix(sidebar): restore horizontal padding on the child workspaces chip

* fix(sidebar): stop clipping the child workspaces chip in classic cards
2026-10-30 14:48:51 -07:00