Repository navigation
Conversation
innocarpe
force-pushed
the
fix/tui-idle-grok-background-tasks
branch
from
October 22, 2026 03:13
b236a04 to
8bced6d
Compare
innocarpe
force-pushed
the
fix/tui-idle-grok-background-tasks
branch
from
October 29, 2026 11:00
8bced6d to
5ea10d9
Compare
… events (stablyai#37013) * feat(plugins): panels talk to their own worker, read storage, settings and events - plugin.request (host API 1.2): a panel or editor asks its plugin's worker, which answers with orca.panels.handle(name); the worker pushes with orca.panels.post. Same plugin only, JSON checked, 1 MiB answers, 256 KiB/200-per-10s posts, a deadline and the panel's lifetime. - Panels and editors get storage.*, settings.* and secrets.* behind the same capabilities, and storage/settings onDidChange on every surface; events.subscribe delivers workspace and agent events to panels that hold the read capability. - contributes.settings: typed settings (a JSON Schema subset) with defaults and value checks. - Frames get orca.plugin/storage/settings/secrets; components panels import plugin, storage, settings, secrets from 'orca', and atom(key, init, { persist: 'storage' }) shares a value with the worker. Workers get orca.panels/storage/settings/secrets sugar. - One typed contract: declare module 'orca' { interface PluginRequests / PluginPanelEvents }. - Desktop push channel per open panel session (plugins:openPanelPush). * feat(plugins): Orca Settings shows and edits a plugin's contributes.settings The plugin page lists declared settings with Orca's own controls (switch, picker, text and number fields, Reset to default). Edits are checked against the declaration in main, written to the plugin's settings, and reach open panels and the running worker through onDidChange. * docs(plugins): hello-tsx talks to its worker; authoring guide covers panels, workers and data The example now uses one of each: plugin.request answered by orca.panels.handle, a worker post heard with plugin.on, a persist: 'storage' atom the worker watches, two contributes.settings and agent.status.changed in the panel, all typed by one src/protocol.ts. The build-less TSX e2e drives the whole loop. * fix(plugins): typed bridge overloads, panel call budget, settings IPC and catalog keys - PluginBridgeApi/PanelsApi use overloads: declared names are typed (and complete), any other name carries JSON; no never-unions for the type-aware lint. - The per-plugin panel call budget is 120 per 10 s, since a panel loading storage atoms, settings and its first requests makes a burst; the hostile fixture floods past it. - Settings IPC builds its host per call; the settings section's strings are in en.json. * test(plugins): the example's declared settings show under the plugin with the person's value * refactor(plugins): keep hello-tsx the minimal starter; the bridge demo is hello-worker-panel hello-tsx goes back to a sandboxed-ui panel with no worker or capabilities. The worker, protocol, storage atom, settings and events move to examples/plugins/hello-worker-panel, with their own e2e (plugin-worker-panel) and PR route. * feat(plugins): test kit covers the panel bridge and plugin data mockHost keeps the plugin's storage, settings and secrets in memory (seeded with storage, settings, secrets; read with host.data()) and fakes the worker with requests, so plugin.request, storage/settings/secrets and persist: 'storage' atoms work under mount(), writes reach onDidChange, and panel.post(event, payload) is what plugin.on hears. Typed by PluginRequests and PluginPanelEvents. * test(plugins): focusInGuest waits for the guest and retries focusing as one step Under load the custom-editor guest could still be attaching, so executeJavaScript threw 'dom-ready' before the focus poll began. Wait for waitForGuestReady, then retry focusing the webview and the element together, tolerating a guest that is still attaching or remounts. * docs(plugins): the authoring skill covers panels, workers and data; persistence leaves the renderer - skill-guides/orca-plugin-authoring.md gains Panels, workers and data (plugin.request/on, orca.panels.handle/post, persist: 'storage', contributes.settings, panel events, test kit), and its generated references read orca-services.d.ts for shell, files, on and the bridge types. - After the dev-loop rebase, persisted-atom wiring (queue plus storage sync) moves to createDeclarativePersistence so the renderer stays under max-lines. * feat(plugins): panels show agents: agents.list, terminal ids on agent events, workspace.changed - agents.list (agent:read, every surface): the focused workspace's agents with terminalId, title, agent kind, state and stateStartedAt, from the hook server's store. - agent.status.changed carries terminalId and title: paneKey mapped through the runtime's terminal list (tabId:leafId) or the status's terminal handle; looked up only while a plugin listens, in arrival order. - workspace.readContext terminals carry title; workspace.changed (workspace:read) fires after workspace session writes when the focused workspace or its terminals change. - Event subscriptions are kept per panel session, so one made before the push channel opens still counts. - shell.openExternal never prompts on a hidden or minimized window: it settles { opened: false, reason: 'consent-unavailable' } and says so in the plugin log, which also notes 'waiting for the person to confirm' while a prompt is up; the rate budget is spent only when Orca acts. e2e launches never open a real browser or mail client. - A worker may export activate as default or by name; docs, typings and the authoring skill document the entry, the agent events and a live agent status recipe. * fix(plugins): the plugin page names the workspace.changed subscription * fix(plugins): workers activate only by default export, and say so when it is named Orca calls the worker module's default export. A module with a named `activate` and no default now fails to start with an error naming the fix (`export default function activate(orca)`), instead of being called by a fallback; docs, typings and the skill say default export. hello-worker-panel gains a picker setting (suggestionOrder) the worker reads.
…tablyai#37008) * feat(plugins): orca plugin open and shot; dev watch --shot - orca plugin open <key> [--panel|--editor] shows a panel in the right sidebar or a file in the plugin's custom editor, by changing renderer state only (no focus or window raise). - orca plugin shot <key> [--panel] [--theme] [--width] [--out] [--json] waits for the panel's current code to draw, then crops webContents.capturePage to the panel (html guests included), with background throttling off while hidden. --width and --theme are temporary in-memory overrides; the PNG returns base64 (5 MiB cap), so --environment works. - dev watch --shot <dir> writes a PNG per panel after the load and each good reload. - The authoring skill's loop is now dev watch --check --shot → read the PNG → plugin test. * fix(plugins): shots never disturb a visible Orca - shot --theme is skipped while the Orca window is on screen (themeApplied: false with a themeReason); the override applies only to a hidden or minimized window. - dev watch --shot opens the first panel (or --shot-panel <id>) once, then shoots it with ifShown: if the user moved the sidebar away it emits one shot_skipped instead of switching. * fix(plugins): dev loop dogfood fixes; orca plugin dev emit - dev watch: approval re-run command drops watch-only flags and old --approve; a folder added by a refused load is owned by the next approved load (Ctrl-C unloads it); check events carry the plugin's status (no green while pending/errored); reloaded prints before that reload's logs; --json errors are one NDJSON line. - Errors: log, banner and check share source-mapped positions (a line-1 prelude hands sucrase mappings to the components runtime); check dedupes issues and locates syntax errors; Orca runtime frames and the error module's bogus location are dropped from logs. - .orca/types tsconfig sets preserveSymlinks (tsc 7 loaded typings twice under /tmp). - Templates' READMEs use dev watch. - orca plugin dev emit <dir|key> <event> [--data] sends a test event to a dev plugin's worker through the real delivery rules (plugins.devEmit). * test(plugins): fixed timestamp in the dev emit test * fix(plugins): shot captures an html panel's guest itself On Linux the main window's capturePage leaves a <webview> guest blank. The renderer now reports the guest's rect, and main captures the guest's own webContents and draws it over the window capture at that rect (raw bitmaps, nativeImage only). Components panels are drawn by the host, so the window capture alone stays right for them. * refactor(plugins): keep plugin-service and main-process-plugins under max-lines After rebasing onto stablyai#37013 both files crossed 300 lines. The guest log sink moves into the desktop view binding (bindPluginDesktopViews), and plugin-service tightens emitEvent and its event-delivery imports.
Co-authored-by: OrcaWin <[email protected]>
…down, code, images (stablyai#36997) * plugins: components catalog 2 (forms, tabs, table, tree, markdown, code, images) Adds 18 components to TSX components panels, drawn with Orca's own primitives and gated by ui.catalog 2 / ui.has() (Orca 1.4.247): Textarea, Checkbox, RadioGroup, Slider, Field, Tabs/Tab, Collapsible, Toolbar, Grid, a virtualized Table with sort, selection and pull-based paging, a keyboard Tree with lazy children, Markdown (sanitized, links through the checked open path), CodeView (Orca's highlighter), Image (header-checked plugin files read by main), KeyValue, Callout and Skeleton, plus a tooltip prop on Button and IconButton. Value controls share the edit protocol; handlers get plain JSON event args, including small objects ({ keys }, { key, expanded }). The test kit gains matching actions and hides unselected tabs and closed collapsibles; a components-gallery example and e2e cover the catalog end to end. * plugins: worker test harness, host refusals in tests and check - orca/testing gains mountWorker(main, { host, events, commands }): it calls the default-exported activate(orca) with the orca object Orca itself builds (createPluginWorkerOrcaApi, moved to shared so the kit reuses it), backed by mockHost. emit() checks payloads against Orca's event schemas and only delivers subscribed events; command(), request() (the worker's orca.panels.handle, as a panel's plugin.request), posts, logs, refusals and deactivate(). Storage and settings share the mock host's in-memory store. - orca plugin test loads a worker main's module graph as Orca's worker host does (.ts/.mts transform, Node resolution, no runtime orca import). - mockHost records refusals (capability_denied, not_permitted, ...) even when plugin code catches them; panel.refusals exposes them and orca plugin check reports them as warnings. Check dedupes repeated issues. - Typings, docs and a generated references/testing.md skill reference; the reference generator reads the split orca typings.
…lyai#37026) * feat(plugins): dev emit also reaches the plugin's open panels orca plugin dev emit now publishes through the panel bridge to that dev plugin's open panels that subscribed with orca.on, under the same approval and capability rules as the worker, and reports delivered.panels. The bridge's publishEvent takes an optional pluginKey filter and returns how many panels heard it. A panel-only plugin no longer needs a worker; an event nothing listens for is refused. * docs(skills): trim the plugin authoring guide; details move to references The main guide drops from 299 to 121 lines: the decision table, build-less rules, core loop (create → dev watch --check --shot → read the PNG → test → check → release-entry), approval and top gotchas. Test/check and orca/testing (panels and workers), dev watch events, shot, open and dev emit move to a hand-written references/workflow.md; the panel/worker/data and agent status recipes to references/recipes.md, each with a read-when row. The guide test now also scans hand-written references for commands and caps the main guide at 150 lines.
…7038) Co-authored-by: OrcaWin <[email protected]>
…37047) - orca plugin check mounts the plugin's worker (main) on the same mock host as each panel, so plugin.request reaches its orca.panels.handle handlers as in Orca; a worker that fails to activate or deactivate is an issue named after its file. In orca/testing, a worker mounted on a host answers that host's panel requests unless `requests` stubs the name. - Check scenarios: <entry>.check.ts (e.g. src/panel.check.ts) exports defineCheck({ name: { ...mockHost options, persisted, theme, events } }); check renders the panel once per scenario and labels each result. - RelativeTime (catalog 3, since 1.4.247) and { type: 'relative', at } Table cells: Orca ticks them (each second under a minute, then less often), so plugins never poll. Inline inside Text; test kit reads them as drawn. - Typings, docs, skill guide, generated references; gallery shows it.
…37053) Co-authored-by: OrcaWin <[email protected]>
…#36970) * fix(mobile): show workspace images in session Markdown tabs * fix(mobile): show workspace images restored by undo or paste * fix(mobile): keep session image loader current and inside the workspace * fix(mobile): classify entity-encoded image URLs by their decoded scheme * refactor(mobile): classify editor images with the shared Markdown href router * test(mobile): expect workspace image markup in the code-block selection check
…en on Android (stablyai#36977) * fix(mobile): keep Android split screen from restarting or squeezing the app One UI gives a split-screen pane its own density. Android recreated MainActivity on that change, and React Native seeds its display metrics from the application context, which keeps the full-screen density, so the pane was laid out at the wrong scale. A config plugin declares density in configChanges and re-seeds the metrics from the activity. * fix(mobile): catch React Native's rotation re-seed before the frame draws A one-shot listener added on configuration change missed a cold start or a 180-degree flip at a non-zero rotation, where React Native's root view re-seeds from the application context without a configuration change. * fix(mobile): publish re-seeded display metrics in one step Text measurement reads the holder off the UI thread, so build the pane-density screen metrics before publishing them.
…ut polish (stablyai#37049) * feat(plugins): orca plugin dev request; --template worker-panel - orca plugin dev request <dir|key> <name> [--data] [--panel] [--timeout-ms] calls a dev plugin's orca.panels.handle handler through the real panel bridge (plugins.devRequest) and prints the answer; handler errors become plugin_request_failed with the worker's code. - orca plugin create --template worker-panel scaffolds a build-less trusted-worker plugin: a components panel, src/worker.ts, a shared src/protocol.ts contract, and panel and worker tests that pass under orca plugin test and type-check with tsc. * feat(plugins): shot --act, shots in the plugin folder, quieter logs - orca plugin shot --act '<json>' presses, types, selects and toggles in the live components panel (the test kit's queries and acts, through Orca's own controls and onEvent) before the capture, waiting for each to settle. Only that plugin's panel, only with Orca's window hidden or minimized; html panels refused; acts are not user gestures. Results in actions[]. - shot run inside a plugin folder defaults to its .orca/shots, like dev watch --shot. - dev watch prints identical [frame] lines once per reload with a count; logged stacks drop <anonymous>/native frames; the floating workspace button hides during a capture. - Skill: worker-panel template in the decision table, dev request, shot --act, and a gotcha that a worker save drops its in-memory state.
…autocorrected word (stablyai#36947)
…tablyai#36966) * fix(mobile): scroll wide tables in the rich Markdown editor instead of squashing columns * fix(mobile): keep CJK table columns from shrinking to one character
* fix(mobile): quote expo-constants iOS build paths so checkouts with spaces build Backports the expo-constants 58 quoting of the app.config build phase (podspec bash -l -c argument and basename $PROJECT_DIR) to 55.0.17. * fix(mobile): quote react-native-xcode.sh call in the iOS bundle phase Expo SDK 55's template leaves the command substitution unquoted, so the Bundle React Native code and images phase splits a checkout path with a space. Expo's SDK 58 template applies the same quoting.
…ibe (stablyai#37044) A panel that loaded before Orca focused a workspace showed nothing until the next change, and a subscription made before the panel's push channel opened was never told at all. Now each new subscriber gets the current context first: the panel bridge replays it once the channel is open (or right away), and a worker's events.on('workspace.changed') reads it through workspace.readContext. Unit tests for both, and the agents e2e checks the first event arrives with no change happening.
…ile (stablyai#36953) A Claude Read of a PNG returns only base64; the path is on the call. A shared rule turns each finished file-read of a raster image into an image-ref under the tool run header on desktop and mobile. Mobile chat prose now draws https, data and absolute-path markdown images inline, every image in a paragraph, through the existing host image read.
…ated Save/Cancel (stablyai#36928) The queue card's invisible full-text line-count probe overflowed its two-line row and stretched the queue's scroll range far past the real rows. Clip it to the card text. The queued-message editor drew Save and Cancel labels inside 38pt round icon controls, so translated labels spilled over each other. They are now pills that hug their label and truncate only when the row runs out of room.
…it back (stablyai#36944) * fix(native-chat): keep a Claude reply visible when a Stop hook sends Claude back Claude writes a blocking Stop hook's reason as an injected user turn, which both Claude decoders dropped. The settled-turn fold then took the post-hook continuation as the turn's only answer and folded the real reply away. Both decoders now turn that feedback into a 'Stop hook feedback' row, and the fold keeps the prose before each such row as an answer too. * fix(native-chat): keep the Stop hook row when catching up a Claude chat transcript * refactor(native-chat): one row table for hook outcomes * fix(native-chat): import journal types from their new home * fix(native-chat): import moved translation and status-block modules from their new homes
Co-authored-by: OrcaWin <[email protected]>
…o main's Mobile checks pass (stablyai#37370) * fix(plugins): build the consent fingerprint without toSorted so the phone bundle passes Hermes checks Main's Mobile verify has failed since stablyai#37316 because the plugin consent fingerprint (bundled into the phone app via src/shared) used Array.prototype.toSorted, which Hermes lacks. flatMap already returns a fresh array, so sorting it in place keeps the same result. * test(plugins): pin the consent fingerprint's command-order independence Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
…opulations (stablyai#37385) Deletes terminal-tail-redraw-wall-time: its result equality duplicates the randomized equivalence suite and its complexity claim is pinned by the join-counting scaling suite; it only added a 3x wall-clock race. Shrinks scaling suites whose bounds are exact or log-bounded formulas in n to the smallest population that still separates linear from superlinear work, and pairs a worktree-poll test's scans so it no longer waits out the 5 s scan timeout.
* test: remove 15 low-value test declarations * test: remove scheduling and routing budget checks; route editor shots --------- Co-authored-by: OrcaWin <[email protected]>
* test: remove 43 low-value test declarations * test: update catalog scaling conversation view import --------- Co-authored-by: OrcaWin <[email protected]>
Co-authored-by: OrcaWin <[email protected]>
stablyai#37376) * fix(wsl-move): land on the workspace view after a move's window reload A move or "Use on this computer again" reloads the window from Settings. Settings cannot restore which page was open, so the reload opened General, and the saved view kept reopening Settings on later launches. Main now switches the saved view from Settings to the workspace view right before that reload. Co-Authored-By: Claude <[email protected]> * fix(wsl-move): leave Settings even when the window is gone at reload The landing view now comes from the write hold whenever a reload is owed, so a window closed before the reload still relaunches on the workspace view. Co-Authored-By: Claude <[email protected]> * fix(wsl-move): keep the reload going if the landing view cannot be saved Picking the landing view is now best-effort, so a failing store write no longer strands the write hold or skips the reload. Adds a wiring test that fails if the landing is not registered. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
…that already runs as one (stablyai#37377) * fix(wsl): offer the existing host when adding a folder from a distro that already runs as one * fix(wsl): translate the existing-host offer, let a later drop win, keep the offer when the host fails to start - Translate existingTitle/existingWhy/existingAccept into every locale. - A drop onto the open dialog after "Add on host" now prefills the dropped path. - A failed host start keeps the offer so the user can retry or add on this computer. - Tests run the real saved-host read (flag off gives the run-as-host offer) and the offer-to-prefill wiring.
* WSL move dialog: one line on why to move, and the way back * Capitalise Git in the WSL move why-line
…tablyai#37383) * fix(repo-icon): round project image icons on desktop to match mobile Mobile rounds project image icons with a 4px radius, but desktop draws them with square corners, so the same avatar looks different across clients and sits awkwardly beside the rounded sidebar controls. Apply the same 4px radius to the image in RepoIconGlyph so every desktop surface picks it up. Emoji and lucide icons are unchanged. Covered by a repo-icon test that failed before the change. * test: drop repo-icon radius test --------- Co-authored-by: Rongzheng Liu <[email protected]> Co-authored-by: Neil <[email protected]>
…out spread 10.2% → 3.8%) (stablyai#37393) * ci: refresh unit shard timings from a 12-shard four-worker run Replaces the October 25 five-shard eight-worker baseline with run 41403569437, which includes the November 1 test-time fixes. On an independent run's measurements the projected per-shard spread falls from 12.0% to 7.4%. * ci: average unit shard timings over five runs A single run's per-file noise left this PR's own run 21.8% apart. The importer now accepts several complete runs and averages each file; held out, the averaged baseline projects 3.8% against 10.2% for the October 25 baseline.
…tablyai#37342) * fix(appearance): changed divider colors also paint tab-group splits Co-authored-by: mmarabel <[email protected]> * fix(appearance): follow the terminal divider slot and keep the value's case --------- Co-authored-by: mmarabel <[email protected]>
… and surface failures (stablyai#37369) * fix(fonts): enumerate Windows fonts natively instead of through PowerShell Read the registered font files' name/fvar/STAT tables so a Group Policy block on PowerShell no longer collapses the picker to five fonts, and say so in the picker when the OS list is unreadable. * fix(fonts): harden sfnt parsing and Windows font file discovery * fix(fonts): follow STAT naming rules and bound Windows font reads * test(fonts): type platform timeout cases without assertions * refactor(fonts): list Windows fonts with Chromium's queryLocalFonts instead of a custom sfnt parser * fix(fonts): scope the local-fonts grant to the main window and keep the web client quiet
…tablyai#37353) * feat(settings): let the Ghostty import read a config file you pick * fix(settings): guard Ghostty file-pick races and non-regular files
…ablyai#34891) * Nest chat-UI orchestration workers under the agent that started them Main's lineage projection only walked terminal panes, so workers running in the chat UI never got a parent link and listed flat in the sidebar. It now also projects chat workers, keyed by their visible chat row, and resolves a chat creator or coordinator to that chat's visible row instead of its handle or private mailbox pane key. * Fix public worker lineage across assignment and row identities * Complete terminal lineage provenance and bound active session selection * Repair lineage test runtime boundaries and SQLite counters * Provide read-only crew snapshots for each agent * Batch public lineage verification after exact recency selection * Derive crew relations once per meaningful host change * Remove package manager lockfile churn from hook * Show each pane’s agent crew with open and copy actions * Use checked runtime values in lineage integration tests * Preserve host-aware crew navigation remedies * Document the trusted Dispatch SQL row boundary * Keep lineage integration imports within their test programs * Load native lineage fixtures before test execution * test: complete lineage inputs in runtime and sidebar fixtures * test: seed benchmark facts from active dispatches * test: replace partial orchestration DB casts with typed fixtures * test: complete stale-leaf mailbox fixture session input * Derive durable crew parents from retained assignment proof * fix(test): render worker lineage fixture with production list * fix: preserve crew pane controls and summary identity * refactor: extract crew row details presentation * Add scoped terminal identity acquisition and preserve crew source wakes * Share raw crew identity inputs through scoped production readers * Exercise crew generation retirement through actual source owners * Retire crew inputs on consumed ownership and visibility writes * Use typed crew mutation and fixture access * fix: use owned crew styles and committed render counters * Repair crew fixture and RPC type contracts * Count crew consumer render attempts in the fixture * Localize crew panel labels and details * Align crew integration fixtures and RPC parameter contracts * Encapsulate terminal identity mutations and captured reader contracts * Seed terminal identity fixtures through canonical mutations * Complete crew panel English catalog entries * Fix terminal identity fixture return type * Cover terminal identity lifecycle schedules * Align terminal fixtures with canonical identity sources * Repair runtime fixture source contracts * Use checked database fixtures for federation contracts * Update crew source inventories and exit fixtures * Preserve crew setup outcomes at existing subscription owners * Match managed restore fixture to its nullable async return type * Keep absent setup observations distinct from undefined failures * Drive pending Crew questions from existing metadata * Preserve nested pairing repair outcomes for shared callers * Route attached workers to explicit local recipients * Type Crew pending-question measurement receipts * Match SSH repair fixture target absence to store contract * Add finite crew subscription boundary candidates * Isolate crew portal in terminal file drop fixture * test: use checked property access for crew owner assertions * Consolidate web runtime auth type imports * test: type crew API legacy arguments and pending results * Bound cold terminal layout construction and finite pane acquisition * test: use public runtime identity in pane acquisition fixture * Avoid repeated searches in cold workspace layout loading * Verify cold loader fault identity and hook claimant effects * Revert "Route attached workers to explicit local recipients" This reverts commit f1335d1. Keep attached workers on the existing Run-home routing path for this change. * Omit crew peer addresses outside the active home route * Align crew disclosure and availability with shared UI * Keep crew retries on the verified runtime session * Bound cold layout retirement and recorded-key construction * Verify original cold layout failure identity * fix: preserve surviving layout split references * test: use typed retirement instrumentation properties * Keep crew overlay inside narrow panes * Resume Crew streams on verified runtime sessions * test: preserve pane and retirement fixture contracts with checked types * Prepare Crew record admission and wake identity changes * Derive Crew recipient actions from current target owners * Keep nested Crew process facts within selected acquisition * Defer Crew legacy facts to consumers and complete raw coverage on success * Use deterministic time in Crew command fixtures * Restore pane-local Crew menu dismissal focus * Document schema-owned Dispatch row assertions * test: align Crew authority fixtures with typed project boundaries * test: place Crew CLI integration in cross-surface project * Type retained identity test meters with canonical source maps * test: adapt mounted Crew fixture to Run unbind contract * Document suffix Dispatch row boundary and preserve fixture unbinding * Close crew menus when their terminal pane hides * Remove unused structured activity component * test: migrate Crew authority arguments and mailbox observations * Forward native pane visibility to crew menus * Fix pointer dismissal enrollment and modal permission * Remove shared menu primitive patches * Reuse message avatars in the crew panel * Derive Crew attention and actions from complete recipient authority * test: repair Crew avatar store fixture and operation accounting * Fix Crew public-command fixture type contracts * Align Crew fixtures with runtime reader and routing contracts * Keep shared message avatar glyphs at their declared size * Narrow receiving fixture calls to unary RPC methods * Age pending question fixtures from every actual answer timestamp * Complete Crew public-command workspace fixture result * Test delegated helper follow-up through Crew advertised address * Qualify Crew follow-up addresses through shared command admission * Complete finite follow-up authority and lifetime evidence * Assert exact remote authority acquisition error identity * Consolidate Crew SQL test fixture imports * Trim Crew panel tests to the high-impact set Keep one mounted test per panel flow, the review-found regressions (avatar glyph size and attribution, stable labels, unavailable sending, hidden-pane menus, navigation remedies), the real producer-to-hook contract, cross-version refusal and recovery, and one N vs 10N contract per scaling piece. Remove permutation matrices, focus-timing proofs, and the duplicated web API and attempt suites. * Trim Crew read-model tests to the high-impact set Keep the real CLI/RPC/database command paths, one regression per review-found bug, the cross-version contracts and one N vs 10N operation contract per scaling piece. Drop permutation matrices, equivalence oracles, near-duplicate scenarios and diagnostic output, and return the SSH, managed-server and WSL test files to main, since their production changes were reverted earlier in this PR. * Drop diagnostic output and a duplicate error case from Crew tests Remove two leftover console.log diagnostics, an unused 2x2 sample matrix and unused return fields in the follow-up cost contract, and the subscription AbortError serialization case that the subscription identity and preload tests already cover. * Pass the recorded-leaf reader in main's check-details loader test * Build the approved orchestration panel design Closed tab: panel icon, lineage icon with the worker count, then agents grouped by status (needs you, working, idle, failed) with the sidebar's status icon, up to three overlapping agent icons and +n. Rows are one card with the task, the latest message or question, the relative time and Details, Open, More. Rows sort by latest message. The open panel reaches the pane top under the title strip. No user-visible 'crew' text; counts use plurals. One store subscription resolves every row's live sender state so the tab and the rows agree. * Keep pane title buttons above the orchestration panel; tick row times The open panel now sits just below the pane title strip in stacking order and starts at the pane top in every host, so the strip's buttons draw over its top band and no chat or terminal text shows above it. An open panel lifts its pane's drag strip above it. Row times re-render on the sidebar's shared 30s clock. Each status group keeps one fixed icon, and the panel's needs-you count has its own plural. * Move the orchestration row into its own file * List every status case in the orchestration icon switches * Fit the orchestration tab and avatar stack to main's Button and key lint rules * Subscribe the memoized crew row to language changes; read the nullable listener count * Ship the orchestration panel's plural labels in the boot catalog * End the chat's orchestration panel above the composer The panel overlaid the whole chat body, so with it open the composer's send button sat underneath it. The frame now wraps only the transcript; the queued drafts, prompt cards and composer stay where main puts them. * Skip escalations when choosing a crew row's latest message Orca writes its failure notices (a worker stopped without reporting, a chat agent error, a terminal exit) as the worker's own escalation, with terminal, task and dispatch IDs and CLI syntax meant for the coordinator agent. The panel showed that text as the row's second line. Only the panel reads this query, so escalations are skipped there and the row shows the agent's last real message. An agent's own Blocked escalation is skipped too; it still reaches the coordinator's inbox. * Say why a crew row's agent can't be opened Opening a row whose agent is gone showed "This agent is no longer available." Use the existing reasons instead: the chat is no longer on this host, or the terminal has exited. * End the panel above the composer in terminal-hosted chats too A terminal's chat view still mounted the orchestration panel over the whole chat, so it covered that view's composer and send button. Both chat hosts now wrap their transcript in the same frame, which takes the panel's props. * Show only an agent's own words as a crew row's latest message Besides failure notices, the latest line could pick up an empty setup receipt (a blank line that also moved the row) or a lifecycle message Orca rewrote to "Orca rejected this worker_done: ...". The panel's query now admits only conversational types with a body and without the lifecycle rejection marker, before choosing each peer's latest. * Keep worker launch stages out of crew rows and Details A row with no message fell back to the worker's internal launch stage ("input accepted", "worker report queued") as its second line, and Details repeated it as Progress. The row now has no second line until the agent says something, and Details drops Progress; the status icon already shows the state. * Give the recipient-authority test's history message a body The panel no longer admits empty-body messages as a row's latest; the test's history message now carries the words a peer would send. * Clip the chat's orchestration panel to its transcript In a short split or under a tall composer, the transcript can be shorter than the panel's header, which then painted over the composer. The chat frame now clips the panel to the transcript; terminals are unchanged. * Translate the crew row Open failure toasts The crew's Open failures were English literals. They now go through translation, and a gone or outdated chat uses main's existing texts. * Translate the crew row Open fallback for agents without a target * Put the Orchestration panel behind an experimental setting, default off Settings > Experimental > Orchestration panel (experimentalOrchestrationPanel). Off mounts nothing: the chat frame, the terminal-hosted chat's identity lookup and the terminal pane portals all gate where they mount, and toggling applies live without remounting the transcript. * Give the terminal-hosted chat's panel its own module * Leave the setting-off path exactly as on main The message card's avatar and its single-sender hook are back to main's code; the panel keeps its own list hook. The panel's code now loads only when it first mounts, behind the setting. * Keep main's abort reason and send-failure handling for every web subscription * Build the panel tests' settings from defaults instead of a cast * Load the panel with plain lazy so a failed load never retries or reloads the app * Let a failed panel load try again the next time the panel mounts
…stablyai#37356) * feat(settings): delete imported terminal themes from the theme picker * fix(settings): theme delete reads latest settings, undo keeps later choices, focus stays in picker * fix(settings): serialize theme deletes and keep later edits on undo * fix(settings): theme delete button visibility on a wrapper, not a Button restyle
…stablyai#33254) * feat(settings): preview each font in its own typeface in font pickers * perf(settings): skip offscreen font rows so opening the picker loads only visible fonts * fix(settings): keep symbol font names readable in font pickers * fix(settings): size skipped font rows by their content box --------- Co-authored-by: Neil <[email protected]>
* test: remove 20 low-value test declarations * test: prune allowances for removed Git profiling suite --------- Co-authored-by: OrcaWin <[email protected]>
…i#34836) * Add scoped terminal identity acquisition and preserve crew source wakes * Share raw crew identity inputs through scoped production readers * Exercise crew generation retirement through actual source owners * Retire crew inputs on consumed ownership and visibility writes * Use typed crew mutation and fixture access * fix: use owned crew styles and committed render counters * Repair crew fixture and RPC type contracts * Align crew fixtures with pane and mention contracts * Count crew consumer render attempts in the fixture * Localize crew panel labels and details * Align crew integration fixtures and RPC parameter contracts * Keep mention contracts within their compiler boundaries * Encapsulate terminal identity mutations and captured reader contracts * Seed terminal identity fixtures through canonical mutations * Complete crew panel English catalog entries * Fix terminal identity fixture return type * Cover terminal identity lifecycle schedules * Align terminal fixtures with canonical identity sources * Repair runtime fixture source contracts * Use checked database fixtures for federation contracts * Update crew source inventories and exit fixtures * Preserve crew setup outcomes at existing subscription owners * Match managed restore fixture to its nullable async return type * Keep absent setup observations distinct from undefined failures * Drive pending Crew questions from existing metadata * Preserve nested pairing repair outcomes for shared callers * Route attached workers to explicit local recipients * Type Crew pending-question measurement receipts * Match SSH repair fixture target absence to store contract * Repair composer fixture and consolidate crew English catalog * Add finite crew subscription boundary candidates * Isolate crew portal in terminal file drop fixture * test: use checked property access for crew owner assertions * Consolidate web runtime auth type imports * test: type crew API legacy arguments and pending results * Bound cold terminal layout construction and finite pane acquisition * test: use public runtime identity in pane acquisition fixture * Follow image reference module relocation in mention serializer * Avoid repeated searches in cold workspace layout loading * Verify cold loader fault identity and hook claimant effects * Revert "Route attached workers to explicit local recipients" This reverts commit f1335d1. Keep attached workers on the existing Run-home routing path for this change. * Omit crew peer addresses outside the active home route * Align crew disclosure and availability with shared UI * Keep crew retries on the verified runtime session * Bound cold layout retirement and recorded-key construction * Verify original cold layout failure identity * fix: preserve surviving layout split references * test: use typed retirement instrumentation properties * Keep crew overlay inside narrow panes * Resume Crew streams on verified runtime sessions * test: preserve pane and retirement fixture contracts with checked types * Prepare Crew record admission and wake identity changes * Derive Crew recipient actions from current target owners * Keep nested Crew process facts within selected acquisition * Defer Crew legacy facts to consumers and complete raw coverage on success * Use deterministic time in Crew command fixtures * Restore pane-local Crew menu dismissal focus * Document schema-owned Dispatch row assertions * test: align Crew authority fixtures with typed project boundaries * Cover menu agent mentions through production insertion paths * test: place Crew CLI integration in cross-surface project * Type retained identity test meters with canonical source maps * test: adapt mounted Crew fixture to Run unbind contract * Document suffix Dispatch row boundary and preserve fixture unbinding * Close crew menus when their terminal pane hides * Remove unused structured activity component * test: migrate Crew authority arguments and mailbox observations * Forward native pane visibility to crew menus * Keep rich draft offsets aligned with agent references * Preserve later explicit pane selection after Mention delivery * test: check the complete overlay focus host fixture * test: use the DOM containment contract for menu focus * Fix pointer dismissal enrollment and modal permission * Remove shared menu primitive patches * Reuse message avatars in the crew panel * Focus the captured input when Mention is pressed * Test the exact Mention all worker selection * Derive Crew attention and actions from complete recipient authority * test: repair Crew avatar store fixture and operation accounting * Keep selected references structural during paste projection * Fix Crew public-command fixture type contracts * Align Crew fixtures with runtime reader and routing contracts * Keep shared message avatar glyphs at their declared size * fix: preserve existing native mention separators * Narrow receiving fixture calls to unary RPC methods * test: load crew Open sender before test execution * test: consolidate pasted text value imports * test: supply crew avatar panel mention contract * Age pending question fixtures from every actual answer timestamp * test: give mounted mention fixture a portable return type * Complete Crew public-command workspace fixture result * Test delegated helper follow-up through Crew advertised address * Qualify Crew follow-up addresses through shared command admission * Complete finite follow-up authority and lifetime evidence * Assert exact remote authority acquisition error identity * Consolidate Crew SQL test fixture imports * Trim Crew panel tests to the high-impact set Keep one mounted test per panel flow, the review-found regressions (avatar glyph size and attribution, stable labels, unavailable sending, hidden-pane menus, navigation remedies), the real producer-to-hook contract, cross-version refusal and recovery, and one N vs 10N contract per scaling piece. Remove permutation matrices, focus-timing proofs, and the duplicated web API and attempt suites. * Trim Crew Mention tests to the high-impact set Keep the native and terminal Mention flows, the review-found regressions (send and Goal serialization, label collisions, offsets and handback, Mention-all membership, press-time focus, late write responses, the native double space), the provider delivery contract, and the serializer N vs 10N bound. Remove menu and boundary permutation matrices, panel duplicates, recall and paste cases covered elsewhere, and the retained-group selection fixture. Panel-test cuts mirror the lower PR's so the stack merges cleanly. * Trim Crew read-model tests to the high-impact set Keep the real CLI/RPC/database command paths, one regression per review-found bug, the cross-version contracts and one N vs 10N operation contract per scaling piece. Drop permutation matrices, equivalence oracles, near-duplicate scenarios and diagnostic output, and return the SSH, managed-server and WSL test files to main, since their production changes were reverted earlier in this PR. * Drop diagnostic output and a duplicate error case from Crew tests Remove two leftover console.log diagnostics, an unused 2x2 sample matrix and unused return fields in the follow-up cost contract, and the subscription AbortError serialization case that the subscription identity and preload tests already cover. * Pass the recorded-leaf reader in main's check-details loader test * Build the approved orchestration panel design Closed tab: panel icon, lineage icon with the worker count, then agents grouped by status (needs you, working, idle, failed) with the sidebar's status icon, up to three overlapping agent icons and +n. Rows are one card with the task, the latest message or question, the relative time and Details, Open, More. Rows sort by latest message. The open panel reaches the pane top under the title strip. No user-visible 'crew' text; counts use plurals. One store subscription resolves every row's live sender state so the tab and the rows agree. * Keep pane title buttons above the orchestration panel; tick row times The open panel now sits just below the pane title strip in stacking order and starts at the pane top in every host, so the strip's buttons draw over its top band and no chat or terminal text shows above it. An open panel lifts its pane's drag strip above it. Row times re-render on the sidebar's shared 30s clock. Each status group keeps one fixed icon, and the panel's needs-you count has its own plural. * Move the orchestration row into its own file * List every status case in the orchestration icon switches * Name the orchestration row 'Mention <agent>:' while keeping its status, task and message * Use the outline xs Button as is for Mention all * Subscribe the memoized orchestration row to language changes; type the listener count * Fit the orchestration tab and avatar stack to main's Button and key lint rules * Ship the orchestration panel's plural counts in the runtime English catalog * Subscribe the memoized crew row to language changes; read the nullable listener count * Ship the orchestration panel's plural labels in the boot catalog * End the chat's orchestration panel above the composer The panel overlaid the whole chat body, so with it open the composer's send button sat underneath it. The frame now wraps only the transcript; the queued drafts, prompt cards and composer stay where main puts them. * Skip escalations when choosing a crew row's latest message Orca writes its failure notices (a worker stopped without reporting, a chat agent error, a terminal exit) as the worker's own escalation, with terminal, task and dispatch IDs and CLI syntax meant for the coordinator agent. The panel showed that text as the row's second line. Only the panel reads this query, so escalations are skipped there and the row shows the agent's last real message. An agent's own Blocked escalation is skipped too; it still reaches the coordinator's inbox. * Point Mention's tests at the modules main moved Main moved the composer command, send mutation and Claude dispatch content modules; two of this PR's test files still imported the old paths and failed to load. Also drop a mock of a module main removed. * Say why a crew row's agent can't be opened Opening a row whose agent is gone showed "This agent is no longer available." Use the existing reasons instead: the chat is no longer on this host, or the terminal has exited. * End the panel above the composer in terminal-hosted chats too A terminal's chat view still mounted the orchestration panel over the whole chat, so it covered that view's composer and send button. Both chat hosts now wrap their transcript in the same frame, which takes the panel's props. * Show only an agent's own words as a crew row's latest message Besides failure notices, the latest line could pick up an empty setup receipt (a blank line that also moved the row) or a lifecycle message Orca rewrote to "Orca rejected this worker_done: ...". The panel's query now admits only conversational types with a body and without the lifecycle rejection marker, before choosing each peer's latest. * Keep worker launch stages out of crew rows and Details A row with no message fell back to the worker's internal launch stage ("input accepted", "worker report queued") as its second line, and Details repeated it as Progress. The row now has no second line until the agent says something, and Details drops Progress; the status icon already shows the state. * Fit both chat hosts under the line limit after the frame merge Name each host's existing Mention availability once and pass it in the frame's one-line crew props. * Mention each agent once per chat draft Mention all after a row Mention added a second chip for the same agent. Inserting references now skips agents already in the draft or repeated in the list; a repeat row click just focuses the composer. Terminal Mention types text and is unchanged. * Test a row Mention followed by Mention all The QA sequence is two separate inserts; cover the draft scan that keeps the first agent from being added again. * Give the recipient-authority test's history message a body The panel no longer admits empty-body messages as a row's latest; the test's history message now carries the words a peer would send. * Clip the chat's orchestration panel to its transcript In a short split or under a tall composer, the transcript can be shorter than the panel's header, which then painted over the composer. The chat frame now clips the panel to the transcript; terminals are unchanged. * Check a terminal's readiness when Mention is pressed The panel read the terminal's connection once while rendering. A restored pane connects later without a re-render, so its rows and Mention all stayed disabled. Mention is now available whenever the pane has a terminal, and the pane and connection are captured and checked when the user presses it. * Keep a row's status at full strength when it can't be mentioned A row that couldn't be mentioned dimmed everything on it, including another agent's "Waiting for you" line. Its content now stays as is; only the hover highlight and pointer cursor go away. * Translate the crew row Open failure toasts The crew's Open failures were English literals. They now go through translation, and a gone or outdated chat uses main's existing texts. * Translate the crew row Open fallback for agents without a target * Put the Orchestration panel behind an experimental setting, default off Settings > Experimental > Orchestration panel (experimentalOrchestrationPanel). Off mounts nothing: the chat frame, the terminal-hosted chat's identity lookup and the terminal pane portals all gate where they mount, and toggling applies live without remounting the transcript. * Give the terminal-hosted chat's panel its own module * Leave the setting-off path exactly as on main The message card's avatar and its single-sender hook are back to main's code; the panel keeps its own list hook. The panel's code now loads only when it first mounts, behind the setting. * Leave /goal and ordinary sends exactly as on main A typed multi-line /goal is prose again, as on main; only Mention's own routing lines after a one-line /goal join its objective. A draft with no agent reference skips the reference serializer, so its send text is projected once, as before. The routing line format now lives with the other reference formats. * Keep main's abort reason and send-failure handling for every web subscription * Build the panel tests' settings from defaults instead of a cast * Load the panel with plain lazy so a failed load never retries or reloads the app * Keep main's /goal parser and put a goal's Mention notes on its one line The shared command parser is main's code again, so any typed or pasted text parses as before. A typed /goal or Goal-mode objective with mentions carries its routing notes on the same line instead. * Let a failed panel load try again the next time the panel mounts * Type the queued-edit test's pending send as main's boolean result * Keep a mention's routing notes in Goal mode on hosts without goals There /goal goes to the agent as a message, so its notes keep their own lines, as a typed /goal there already does. A draft with no mention sends main's text. * Give the lazy panel test the Mention props this branch's panel requires
… per-mode terminal themes (stablyai#37368) * feat(settings): import Ghostty themes, including light/dark pairs, as per-mode terminal themes * fix(settings): keep Ghostty theme re-imports stable and explicit colors when a theme half is missing * fix(settings): reuse identical built-in terminal themes and label Ghostty variants * fix(settings): keep same-named Ghostty theme files apart, import theme divider colors, follow Ghostty lookup order for picked configs
* Rename Chat settings section to Chat UI * Localize Chat UI settings titles * Update chat settings search fallback to Chat UI
…lyai#37420) - Box (ui.catalog 4, since 1.4.248): direction, gap/padding/paddingX/ paddingY/margin on the gap scale, align, justify, wrap, grow, shrink, width/height/min/max (px up to 4096 or whole percents), columns, scroll, border (true or a tone), radius, background (theme surfaces or tone tints). Strict props: hex colours, CSS lengths and unknown props are dropped with a warning like other components. - Renderer maps props to theme tokens through data attributes; sizes reach inline style only as validated px or percents. - Typings, docs, skill references, gallery Layout tab; orca/testing finds Boxes and summarizes danger or warning Boxes.
… import pipeline (stablyai#37375) * feat(settings): import Kitty configs through a shared terminal config import pipeline * fix(settings): harden Kitty include and value parsing * fix(settings): match Kitty globs linearly, skip read-only system configs, report non-family font selectors * refactor(settings): read current settings through a typed map when diffing imports * style: format Ghostty importer * fix(settings): type the import hook stub and let dialog primitives own their typography
) * Launch an agent with a first prompt from its setup panel The agent setup panel in the new-tab menu gets an optional prompt box above its Launch buttons. It is the chat composer in a compact launch layout: one line that grows to six, Attach as its only control, / listing the launch workspace's skills and commands and @ finding its files. Enter launches the panel's default way, either Launch button sends the prompt its own way, and with nothing typed both launch exactly as before. The prompt rides the existing launch prompt field and is kept in memory only until the launch. * Preserve launch prompt input across submission and refusal * Retain scoped composer submissions through launch ownership * Keep launch prompt tests deterministic during collection and persistence checks * Retire launch source drafts at committed qualified removals * Retain workspace launch setup through ordinary rich drafts * Preserve rich draft authority through accepted setup handoffs * Keep setup prompt moves within current rich draft memory * Create setup drafts on first input instead of on row render Rendering an agent row in the launch menu or search no longer creates a setup record. The row derives its scope from its workspace, host and agent without touching session state; the record is created by the first typed prompt, option change or pending attachment, matching main, which kept only authored setups. Catalog applies, readoptions and renames now visit authored setups only. Option listeners use the existing per-scope draft listeners and subscribe only while the setup popover is open. Also return the runtime-status files to main, which only carried leftovers from a removed hook. * Return group-delete draft revocation to main and repair launch tests Deleting a project group no longer retires in-flight setup submissions for its folders: folder keys are never derived again, so it changed nothing users could see. The group mutation, its removal state and the prompt-delivery type widening go back to main's content, with the test that exercised the revocation. Test fixtures catch up with the setup prompt composer: the TabBar window stubs gain event listeners, the picker inventory's mock store gains agent status, create-rejection handbacks expect inComposer, and the folder removal test expects a same-ID survivor's chip to stay, as on main. * Keep each search preset's setup options in its own slot Opening a search result's setup no longer writes its preset over the workspace's setup. As on main, each preset keeps its own options slot, now inside the workspace/host/agent setup, keyed by what the search parsed rather than by defaults; the plain row keeps its own slot. Only a real change saves, into that entry's slot, and creates the setup then. The typed prompt stays one per workspace, host and agent. * Fix the moved agent profiles import and merge duplicate imports Main moved the native chat agent profiles module under shared/native-chat, so the setup prompt composer imports it from there. Files that imported one module twice now import it once; nothing else changes. * Fix the web typecheck for the setup prompt changes The catalog continuity test no longer imports the main process's SSH target reassignment, which pulled the whole main graph into the web program; it builds the reassigned folder inline. Test fixtures and spies now match current types, the edit-session tests pass a composer ref as production does, and the setup panel again accepts callers that return no launch answer. The pending-chip owner filter drops an unused name. No shipped behavior changes. * Show the setup prompt's skill and file lists above the setup panel In the agent setup popover, the / and @ lists opened underneath the panel, so they could not be seen or clicked. A list opened inside a popover now takes the menu layer that selects and dropdowns already use above popovers; an ordinary chat's lists keep their container and layer. The prompt placeholder is translated in every locale, and folder draft continuity takes the fetched catalog itself instead of reading its folder list field. * Fit the setup prompt box to a placeholder that wraps With a longer translation, the empty setup prompt's placeholder wrapped to a second line that the one-line box cut off. The empty launch prompt now lets its placeholder's wrapped height count, so the box fits it; English still fits one line, and an ordinary chat's box is unchanged. * Type the submit test's pending sends as the boolean main now returns * Show the dictation button in the agent setup prompt * Update draft test handle for agent references
* Show the open orchestration panel as a floating card The open panel now floats in the closed tab's corner as a card as tall as its rows. In chats it stops above the composer (the transcript frame already ends there); in terminals it keeps the bottom quarter clear for the CLI's prompt and recent output. Past that it scrolls inside. * Keep the orchestration card's collapse button reachable in tiny panes A terminal split can be 50px high, leaving the card no room under the 75% limit, so its header and collapse button were clipped away. The card is now never shorter than its header. * Keep the orchestration card's collapse button inside narrow cards In a narrow split the card is 20px narrower than the pane and its title didn't truncate, so the collapse button was pushed past the card's edge. The title now truncates and the header's side padding gives way before the button, down to the 50px pane minimum.
* fix(native-chat): an open chat moves to the account you switch to before its next message A running chat's agent read its account only when it started, and nothing compared it with the account a start would use now, so open chats kept answering on the old account after a switch. The agent a chat runs now records the account its launch used, and the host's replace-before-the- next-send check replaces an idle one whose account is no longer what a start would use. A chat mid-reply finishes on the old account first. Claude chats follow; agents whose chats keep the account they were created on are never compared. A chat's model-list reads and saves now use the account it runs on, so a moved chat no longer writes its new account's list under its first account (STA-11281). Tracked in STA-11211. * fix(native-chat): declare the launch-account read for the runtime layer that wires the host * fix(claude): find custom chat history before managed-account resume * test(claude): assign the complete custom account home * feat(native-chat): offer account switching and hand-off at usage limits * fix: track the provider in account-list reload effects * fix(native-chat): target recovery actions at the chat host and transcript * fix(native-chat): verify account recovery for each chat on its host * refactor(native-chat): retain the existing image-support result * fix(native-chat): withdraw account recovery after failed eligibility reads * fix(native-chat): leave unavailable recovery facts absent * Align Japanese usage-limit recovery copy with catalog convention * Preserve complete chat context through usage-limit recovery * Keep Continue callback focus optional * Keep recovery fixtures and account effects type safe * Keep chat recovery on native sources and native accounts * Validate native recovery files after path admission * Use the optional cursor shape in recovery fixture * fix(native-chat): exclude source CLI family from limit handoff * Resolve recovery context in the owning workspace directory * Add the continue-at-usage-limit-reset setting and its chat row lines * Continue chats automatically after usage limits reset * Fix automatic continuation fairness, lifecycle and host settings * fix: bind automatic continuation withdrawal to accepted actions * fix: withdraw source auto continuation after handoff starts * Read unopened chats with the saved-record reader for usage-limit continue Unopened chats were read through the raw-row replay, which no longer sees chats saved as keyed records, so a usage-limited chat that was not open was never continued after its reset. Read them the way the rest of the app reads a chat without opening it. Also use the shared visible-tab check, keep the ordinary rewind result without a sequence as main does, and adapt two tests to the current queued-message and saved-status behavior. * Keep a usage-limited turn idle after any rewind restores it Rewind completion read the resulting conversation through the raw-row replay, which no longer sees chats saved as keyed records, and a forked rewind wrote its completion before the new history's records. So a limited turn that a rewind brought back was continued automatically after its reset. The completion now reads the saved result the way the app reopens a chat, and the forked rewind writes its completion after the new history in the same transaction. * Type the usage-limit auto-continue test mock without an assertion * Fix type errors from main's settings, failure-wording and refusal changes * Keep ordinary settings replies when the paired host changes mid-call, and list the cancel method in wire contracts Settings reads and writes that don't carry the automatic-continue choice go through the common runtime call again, so a reply that completes after the paired host is removed still merges, as before this change. Only a write of that choice stays pinned to the host it was made for. The structured method count and the cross-version method manifest now include the cancel method. * Keep a stopped turn's automatic continue withdrawn when its usage limit arrives later A person could Stop a running Codex turn, have the turn then end with a usage-limit failure, and still get an automatic "Continue where you left off." after the reset, because Stop had nothing to cancel yet. The journal write that first reveals a limited turn the latest personal Stop owns now saves the same exact cancellation in that transaction, and a Stop accepted just after the limit landed withdraws it too. Resume, deleting a queued card and restarting keep it withdrawn; manual Continue and later turns are unaffected. * Bound the automatic-continue sweep and keep notice rows from re-rendering The 10-second sweep now does nothing while the setting is off, republishes only chats with a scheduled continuation, reads at most three unopened chats per pass, and keeps going when one chat's saved history can't be read (that chat is retried after the others instead of stopping every chat on the host). Settings writes republish only when the switch changes. Working out the usage-limit cut no longer indexes the whole conversation on every streamed row. The chat's notice rows no longer re-render for status changes they don't show. Adds operation-count and render-count tests for these bounds. * Test that streamed journal commits after a Stop scan no history and build no command index Drives real Codex rows through the host at 20 and 200 history rows: each streamed commit runs the Stop's commit hook and the status projection's cut reader with no newest-turn scan, no render and no full command index; the next turn end scans once and renders nothing. * Leave a usage limit manual once its reset passed more than a day ago Turning automatic continue on later no longer sends into chats whose limit reset days ago. Eligibility, which the row's summary, the sweep and the pre-send recheck all read, now requires the reset to be within the last 24 hours; older limits show the usual manual actions and are never continued unasked. * Show only manual actions for a usage limit Orca can never continue A limit more than a day past its reset is never continued, but its row still showed the setting link, inviting people to turn on a switch that could not help that chat. One shared check now decides whether a cut can ever be scheduled; the status summary and the sweep's eligibility both use it, so past the bound the row keeps only Continue Now, Hand Off and Add Account. A row already on screen when the day passes drops the line on the shared minute clock; the host alone decides sends. * List every journal row kind in the Stop cut filter The type-aware lint requires exhaustive switches; epoch, tombstone, submission and queue rows still cannot reveal a cut. * Type the status-subscription mock instead of casting its handler The changed-code casting gate rejects type assertions; the mock now carries the real subscription signature, so the recorded handler is typed. * Open store-less conversations without the Stop withdrawal hook Acquisition-only opens have no record store, so a person's Stop followed by a limited turn end made the journal commit throw and drop the turn end. Install the withdrawal only when a store exists; without one there is no continuation to withdraw. Also narrow the status summary before reading it and type the sweep test's send mock.
Grok Build can keep an idle OSC title and ready composer while background tasks are still active. Coordinators that use `terminal wait --for tui-idle` as task-complete evidence then advance early. Suppress idle resolution when the wait-text still shows Grok-style background task HUD chrome. Fixes stablyai#9905
innocarpe
force-pushed
the
fix/tui-idle-grok-background-tasks
branch
from
November 2, 2026 09:57
5ea10d9 to
4851e61
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upstream
Summary
Grok Build can look idle while background tasks are still running. Suppress
terminal wait --for tui-idlesuccess when Grok-style background HUD chrome is present.Note
Do not merge this into
innocarpe/orcamain until the upstream PR is merged (then sync fork fromstablyai/orca).This open PR exists so visitors can see my in-flight work on this fork's Pull requests tab.