Repository navigation
sync: upstream 974bb4a7ca into swaplabs/main - #86
Conversation
* test: remove 30 low-value web and compatibility tests * test: retire obsolete browser schema evidence from active gate
* test: remove 16 low-value behavior and UI tests * test: remove 30 low-value client and benchmark tests * test: prune timeout ratchet after test removal * test: correct remaining split benchmark coverage claims
…i#37825) * test: remove 20 low-value harness and client tests * test: retire fake-agent and layout-oracle self-tests * test: retire source route for removed usage smoke * test: include 21 further low-value tests and remove unused fixture helper --------- Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
* test: remove 47 low-value main-process test registrations * test: remove 10 further low-value main-process checks * test: remove 16 low-value main-process test registrations * test: retire deleted ZCode suite from transcript contract command
* test: remove 55 low-value checks across 15 whole suites * test: retain persisted usage mapping boundary coverage
* fix(relay): admit reassigned combined hosts Keep epoch-one bootstrap only when no durable assignment exists. Fixes stablyai#37679 * chore(relay): brace admission conditionals
…7703) A restored agent can stay quiet until its next turn; keep the pane's resume identity until replacement or confirmed exit.
* fix(mobile): stream desktop-hosted server browser tabs * test(mobile): record paired desktop browser interactions * fix(mobile): type browser relay settings and test adapters * fix(browser): avoid redundant retained paint mutations * fix(browser): keep retained viewer state free of React
* fix(terminal): pipeline ordered mobile input Keep unary delivery for desktop relays while the existing host ledger orders complete sends under a capability-gated, bounded input session. * fix(terminal): charge retained raw input controls The dispatcher retains original control values while strict sends wait. Reserve their bytes before normalizing execution controls. * test(terminal): align input fixtures and paste recordings
* fix(runtime): revoke forked keys with their pairing Fixes stablyai#37749 * test(runtime): fix revocation fixture expiration
stablyai#38021) * feat(onboarding): studio theme picker with plugin themes and Match Terminal palettes Replace the three System/Light/Dark tiles with a live look picker: big preview, bundled GitHub/VS Code app themes, curated terminal palettes that recolor Orca via Match Terminal, and per-slot dark/light looks under System. Picks repaint the app live and never change the mode; skip restores the full arrival look. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * feat(onboarding): simple theme tiles with optional look carousel Restore the original System/Dark/Light tiles and move theme looks into an optional carousel beneath them. Add a theme-plugin directory link that opens the system browser at onorca.dev/plugins?kind=themes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * feat(onboarding): label color mode and theme sections on theme step Add Color mode / Theme section headings and replace the step subtitle with guidance on what to pick. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * fix(onboarding): preserve arrival look across Ghostty import * fix(onboarding): follow moved terminal theme modules --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…38056) Group accounts needing attention, clarify account details, and highlight Codex sessions that still need to restart after an account switch.
* fix(automations): say the run's worktree was deleted; document plain run-use recovery * revert(automations): drop the deleted-worktree wording change (not reproducible) * docs(orchestration): list Tasks on recovery and note run-use drops other Runs * docs(orchestration): delete the legacy takeover guide; keep orchestration docs to the normal flow
…lyai#38068) * refactor: group sidebar admission and workspace creation owners * refactor: consolidate defining-owner imports at first evaluation
* Keep local folder creation on the current workspace surface * Prepare folder workspace tabs before selecting the destination * Provide inventory boundary in folder creation regression * Use the composer empty-link contract in re-entry coverage * Complete the composer re-entry test input * Preserve sidebar key comparison through creation progress
…yai#38020) * fix(automations): accept Pi model and thinking extra arguments * fix(automations): keep Pi provider pins and refuse unpinned inline keys * fix(automations): match Pi value options to its argument parser * fix(automations): refuse Pi model overrides beside unscoped inline keys * test(automations): cover Pi's last-provider-wins key pin * fix(automations): refuse any Pi custom Command text with --api-key * fix(automations): drop the Pi inline-key pin guard Pi already sends an unpinned inline key to the chosen model's provider and warns; the user typed both the key and the model, so Orca does not refuse it.
… emoji button on Tab (stablyai#38073)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
…s clicked in (stablyai#38072) * fix(terminal): a paired-server file link opens in the workspace it was clicked in Clicking a server terminal link to a file another workspace holds switched to that workspace: the client asked the host for the holding workspace (crossWorkspace), and the editor loader moved any absolute-path tab - including one already holding a grant - to that workspace. Anyone who can open a tab can already run anything on the host, so the holding workspace guards nothing. On hosts that save granted files, the link now opens through a grant in the clicked workspace, and restored tabs re-grant in place. Hosts that can't (older hosts, their own SSH workspaces) and folders keep opening in the holding workspace. * fix(runtime): a desktop client reads and saves a granted file as large as a workspace one Hosts advertise files.resolve-terminal-path.in-place-files.v1, give desktop clients a 2 MB grant budget (phones keep 512 KB), and report a grant's size, so the clicked workspace opens a file another workspace holds in place and falls back to the holding workspace only where a grant can't serve it. * fix(terminal): open in place only what a grant can read and save Review: a grant save must fit one request frame and grants serve no bytes editors, so the 2 MB budget would open files that can't be saved. Hosts now report a grant's size and binary content instead, the client opens in place only text within 512 KB, and only the SSH-workspace refusal moves a restored tab; other host errors stay retryable. * docs(terminal): describe the in-place files probe * fix(terminal): ask the holder first and keep downloads, HTML and missing paths unchanged Review: the holder answers first, as before, so missing paths, folders, this computer's files, downloads and HTML previews resolve exactly as they did; only an existing text file another workspace holds asks again for a grant here. In-place opens are capped at 256 KB so edits stay within the grant's save limit. * test(editor): mark the placement test's store stub as a sound cast
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
… switcher (stablyai#38106) * feat(editor): add a default Markdown view setting with a switcher right-click menu Markdown files can now open in Source instead of Rich Editor. The choice lives in Settings > General > Editor and in a right-click menu on the editor's view switcher. Changing it keeps already-open tabs on their current view; the right-clicked tab follows the new default. Closes stablyai#38102 Co-Authored-By: Claude <noreply@anthropic.com> * fix(editor): switch the right-clicked tab through the normal view toggle Picking a default from the switcher menu now goes through the same handler as clicking a segment, so a tab showing Changes or a plugin editor leaves it for the chosen Markdown view. Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
) * Give unconfirmed chat messages explicit recovery actions * Resolve receipt settlement code quality findings * Complete recovery copy localization and callback types * Align send lifecycle contracts with explicit recovery actions * Include the unconfirmed opener in the restart fixture type * fix(chat): preserve recovery ownership across lifecycle boundaries * Preserve send ownership across context replacement and recovery * Separate history ingestion from live send settlement * Preserve original send truth and reconcile acquired history * Use summary-shaped history responses in acquisition coverage * Preserve queued image recovery for released readers * Prove independent late receipt recovery across reopen * Preserve queued image sources in bounded catch-up projection * Keep queued input and explicit chat retries in their original domains * Preserve reader lifetime across main session interfaces * Fix static checks after main integration * Migrate retained recovery Stop contracts to current lifecycle * test: use typed access for journal population counters * fix: consolidate history page bounds type imports * test: exercise legacy snapshot reuse through selected handoff * Fix attachment draft typing and document test boundary casts * Repair current journal integration types and contract fixtures * Keep uncertain send recovery in queue reorder reopen contract * Repair mobile contract boundaries and exact queue lookup * Align input finalization contracts with current Stop ordering * Keep recovery copies independent of queued message barriers * Reconcile Stop and replay contracts with current lifecycle * Update recovery tests for current module and draft APIs * Align Stop recovery contracts with independent queue policy * Expose independent recoveries to current queue controls * Cover sending-only queue Resume visibility * Adapt recovery contracts to shared queue projection * Use current history and failure-word contracts in recovery tests * test: retain released reader source contracts through queue settlement * Keep uncertain sends in ordinary history and preserve saved queue choices * test: prove mobile draft leaf subscription isolation * Use typed operation instrumentation in mobile recovery test * Align lifecycle test boundary typing with static rules * Repair test module typing and retained runtime copy catalog * Remove unused chat delivery notice translations * test(chat): retain legacy handback without uncertainty notice * fix(chat): omit saved uncertainty card captions * test: bind released readers to exact queue wire and proof * Replace archived reader evaluator with exact recorded contracts * Mark queued edit test hook import as type-only * Isolate queued card tests from native inline composer imports * Complete structured mobile resolution in queued edit test * Align mobile attachment cleanup lifetime test with send outcomes * fix: restore journal prototype delegation methods * Keep uncertain sends as ordinary messages in memory * Release notes admission after uncertain opening completes * fix: end opening selection operations at uncertain completion * fix: derive selection admission from live requests and repair integration tests * test: consolidate send imports and use a supported locale * Fix CI test types and synchronize retired delivery catalogs * Type exported test fixture mocks through the public Vitest API * test: align selection and journal verification contracts * Reconcile acquired history before journal projection * Preserve saved invocation facts during history catch-up * Repair journal recovery consumers and CI contracts * Keep failed legacy import displays serializable and bounded * Preserve journal owner boundaries in CI import cleanup * Fix typed test fixtures for session recovery contracts * fix: align history and recovery contract types * test: verify logical rewind across released chats * Bound retained queue and status reads * Bound Stop and delivery reads to relevant journal inputs * Bound subscriber catch-up and stopped-history reads * test: align journal read fixtures and operation counts * Bound automatic chat reads to current input evidence * fix: align journal reader contracts and test fixtures * test: type historical dispatch rejection fixtures * fix: restore merged session projection and fixture types * fix: preserve resumed queues across logical fork rewind * Preserve queue pause chronology across logical rewinds Keep original Stop and Resume coordinates while retaining matching warm failure evidence in the journal owner. Keep historical fixture authoring separate from current production writes. * End historical fixture authoring before current queue actions * Keep answer operations separate from retained messages * Fix resting chat attention context * Fix attention regression fixture provenance * Validate retained RPC test frame reads * Fix retained attention and RPC contract fixtures * Keep send observations on canonical delivery evidence
Upstream range ed54ecf..974bb4a, 134 commits. 27 conflicted paths (all both modified), 38 hunks. Conflicts: - Import lists (#1, #4, #6, #10, #17, #30, #69 and past syncs; 22 paths): upstream's agent-status, agent-session, agent-launch, terminal and settings regroupings beside the fork's imports. - GeneralUpdateSettingsSection.tsx (#14): the fork's imports at upstream's moved paths. - agent-hooks/server.ts (#30): upstream removed the module's re-exports; consumers import TerminalLossAgentResume from server-retained-identity. - sidebar/index.tsx (#66, #67): upstream stablyai#37948's outer wrapper; the leaderboard stays after the setup card. - orchestration-fleet-projection.test.ts (#34): upstream's test removals; the fork's retained-terminal case stays. - Baselines: upstream's moved rows plus the fork's rows, with direct-link rows at the files' new paths. Breaks the conflict list did not show: - Upstream moved the settings update sections; ten fork-owned files and tests in settings/ follow them to updates/ and runtime-environments/. - 69 fork imports and vi.mock paths follow upstream's moves, including the removed @/lib/tui-agent-startup forwarder. - delegated-worktree-nesting.test.ts passes upstream's new sortBy. - max-lines (each 301): pane-agent-identity.ts moves the pane-scoped resolver to pane-scoped-tui-agent.ts; server-ingest-remote.ts reads the row to complete through server-terminal-loss-resume.ts; the WSL agent-hook-server.ts drains its spool through the fork's user-ended-session layer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Checks after the merge: 87 pass, 2 fail, 17 skipped, 0 pending.
Codex completed on Follow-ups: #45 (three max-lines moves), #59 (above), #41 (upstream stablyai#37703 now stores a resume record after #6's candidate resume too; question for the operator). Fork build: |
Daily upstream sync (auto-sync run 43, minidev-alex1). Supersedes #85, whose head is the mirror
mainand conflicted.Upstream range:
ed54ecfa9c..974bb4a7ca, 134 commits (compare). Merge commitb99eb7e19e, signed with the sync keyBF1DD75F…74235.orca-fork-ops status(integrationc093320f07, mirror974bb4a7ca): 0 merged upstream, 0 pending upstream, 93 local forever (30 unprefixed with no upstream PR); 18 merge carriers, 0 unchecked. Upstream tagv1.4.248was copied to the fork this run.Conflicts (27 paths, 38 hunks, all both-modified)
src/main/agent-hooks/server.tsTerminalLossAgentResumere-export goes too;runtime-construction-dependencies.tsimports the type fromserver/server-retained-identity.server-ingest-normalization.ts,server-ingest-remote.ts(2 hunks),normalize-hook-payload.ts,wsl-guest/agent-hook-envelope-publication.tsand its test,wsl-agent-hook-relay.tsIncomingAgentHookEventstays out ofserver-ingest-remote.ts, since the fork types that event throughwithRelayUserEndedSessionReports.agent-status-live-facts.ts,agent-status-sleeping-records.tsmainAgentStatusEqualnow comes from upstream'sagent-status/lifecycle/main-agent-status.runtime-session-contracts.tssession-list-results.ts,session-scan-issues.ts,ai-vault-session-depth.ts,pane-agent-identity.ts,pane-agent-evidence.tsReleaseChannelSection.tsx,remote-server-update-coordinator.tsGeneralUpdateSettingsSection.tsx(2 hunks)readIpcErrorDetail,DelayedUpdateHint) at upstream's moved paths. Upstream's delayed-update imports stay in the fork'sDelayedUpdateHint.orchestration-fleet-projection.test.tssidebar/index.tsxTeamClaudeLeaderboardSectionstays right afterSetupScriptPromptCard.mailbox-pointer-submit.ts,terminal-run-facts.tsdaemon-pty-adapter.ts,runtime-construction-dependencies.ts,runtime-server-row-details.tsxdirect-link-open-baseline.txt,flaky-test-pattern-baseline.txt(10 hunks)Breaks the conflict list did not show
settings/updates/:DelayedUpdateHint,ReleaseSourceUpdateControls,use-release-source-statuses, and the multi-source, single-source, install-retry and cross-source tests;settings/runtime-environments/: the three remote-server update tests.vi.mockpaths follow upstream's moves (a scripted check of every relative and@/specifier in the fork-diff files; tsc does not seevi.mock). They include the removed@/lib/tui-agent-startupforwarder (refactor: group agent launch contracts and startup owners stablyai/orca#37915).docs/reference/swaplabs-agent-resume.mdnames the relay's new path.sortBy:delegated-worktree-nesting.test.tspasses upstream's new requiredSidebarRowPlanInputs.sortBy.pane-agent-identity.ts(upstream 290): the fork's pane-scoped resolver moves unchanged to the fork-ownedpane-scoped-tui-agent.ts. Now 292.server-ingest-remote.ts(upstream 299): the fork'sstatusRowToCompleteread moves toreadStatusRowToCompleteinserver-terminal-loss-resume.ts. Now 298.wsl-guest/agent-hook-server.ts(clean auto-merge, upstream 299): the spool drain goes throughdrainReportingHookSpoolin the fork'sagent-hook-user-ended-session-server.ts, which addsuserEndedSessionsto each record's host. Now 299.No fork behaviour changed and no fork line was dropped, apart from the
TerminalLossAgentResumere-export above.Validation (on the merge, before commit)
pnpm install --frozen-lockfile,pnpm tc: pass.pnpm lint(all 41 steps,ORCA_SYNC_PR_DIFF_BASE=<mirror>): pass.pnpm run check:code-quality:changed(ORCA_SYNC_PR_DIFF_BASE=<mirror>): 0 new findings across 371 files.pnpm test(ORCA_*variables unset): every fork-added or fork-changed test file outsidetests/e2e, plus the touched directories: 1,101 files, 10,419 passed, 113 skipped, 4 failed.bash-prompt-command-composition(3) andshell-ready-bash-wrapper(1). The same 4 fail on pristine upstream974bb4a7caon this host.src/main/agent-hooks,src/wsl-guest, the reformatted tests andpty-connectionwere rerun: 290 files, 3,141 passed, 0 failed.orca-runtime.test.tsandsrc/main/runtime/terminal*with fixture signing off: 81 files, 2,120 passed, 0 failed.oxfmt --checkclean. The hook ran on commit;git write-treebefore equalsHEAD^{tree}after (7497778d2b).pnpm check:changed, whose selection spans the whole fork diff; its gates ran separately above.ast-grep-gates.mjswithORCA_SYNC_PR_DIFF_BASE=<integration head>, which dies withspawnSync git ENOBUFSon this range (orca#59), so expect that CI step red.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.