Repository navigation
merge: sync fork-main from stablyai/orca main (2026-10-12c) - #28
Merged
Merged
Conversation
* refactor(terminal): one remote input hold * fix(terminal): keep restored typing scoped to its terminal until the connect settles * refactor(terminal): name the restored-input expectation type --------- Co-authored-by: m4air <[email protected]>
* Add host-owned agent launch settings mutations * Edit agent launch defaults on the selected execution host * Await durable writes for host agent launch settings * Fence agent detection by execution-host pairing * Acknowledge host settings before hook reconciliation * Preserve Reset after pending agent launch saves * Simplify agent detection re-pair handling to the clear and the transport fence A re-pair already clears every detected-agent list, flag and pending probe for the environment, so the per-record pairing owner keys, the owner-keyed pending probes, the settle-time pairing checks and the hook's ownership gating were never reached. Detection now captures the pairing before the capability wait and fences its RPCs with it; the refresh fallback still refuses after a re-pair. Pins the fence across a capability wait, the needs-update clear, and the agent-launch RPC permission levels. * Open launch settings on the Active Server without the focus-routing helper Main's new owner-routing ratchet counts getActiveRuntimeTarget calls, and this pane's no-workspace default added one. It now reads the Active Server field the way the Agents pane did before host selection, so the default is unchanged. * Re-probe mounted launch surfaces after a re-pair; rely on the transport fence for the refresh fallback A re-pair clears an environment's detected-agent lists, but a mounted tab bar, quick launch or composer that was still waiting for its first list (or whose first probe had failed) never asked again, leaving "Can't reach this workspace's host" until another surface mounted. The hook now re-runs its effect when the target environment's pairing revision changes. The refresh fallback no longer re-checks the pairing in the renderer: it already carries the pairing captured before the wait, and main refuses any mismatch. Pins the Settings host form's remount key on re-pair.
…tablyai#27204) * test(chat): snapshot every native-chat agent's spawned child as a parity oracle Captures the exact child each native-chat agent spawns (Claude, Codex, Grok, OpenCode, OMP, Pi), worktree and floating, fresh and resumed, plus a registered worker with visuals off, at the real spawn boundary (the process host's spawn) and through production's own host dependency wiring. The inherited environment holds every pane, hook, caller, terminal-handle and visuals key a parent Orca pane could hand down, so the snapshot records today's per-agent differences as they are. Each case also records the launch's permission posture, which for Codex (thread policy) and the ACP agents (full access) acts only after spawn. Each agent also runs fresh and resumed with every launch setting moved off its default: a Command setting naming another binary, the permission posture flipped, an environment overlay over inherited and shell keys, and only named login-shell variables inherited (the fake login shell carries its own PATH and a variable no case names). A second test fails when a registered agent has no snapshot, since the oracle lists its agents by hand. Test only: the launch-path refactor that follows must leave both tests and the snapshot file unchanged. * refactor(chat): one composed launch for every native-chat agent Every native-chat agent (Claude, Codex, Grok, OpenCode, OMP, Pi) now builds its child through one composer instead of six hand-written resolvers. Each agent contributes only its own part (command, args, agent env, keys it must strip); the shared composer admits the session record, reads the launch directory, base environment, launch overrides and visuals once each (memoized, in the agent's original order), sets cwd, and seals the child. The seal (sealStructuredSessionChild) is the one place that names a child: session id, structured marker, worker terminal handle, the Orca CLI env, the spawn token under one shared constant, and the per-launch list of inherited keys to delete, minus any key the seal itself sets. Claude's delete list now reaches its SDK spawn after buildClaudeChildProcessEnv's merge. Behaviour is unchanged: the parity snapshot from the previous commit passes byte for byte, including each agent's existing differences (Claude and Codex keep inherited pane and hook env, Pi has no visuals and always full access, the ACP history read stays unsealed). Admission refusals keep their reasons; only log-only wording moved to the shared check. Drops launch dependencies no production caller wires (resolveLaunchEnv, resolveCodexOverrides) and folds the per-agent env overlay hooks into the existing resolveAgentLaunchEnv. * refactor(chat): only the seal names a native-chat child Follow-ups from review of the composed launch: - The spawn token is required on every resolveLaunch. The one read that starts no child, ACP's restart-recovery history read, now has its own path (composeStructuredLaunchRead, deps.readLaunch) that returns the agent's own env unsealed, as before. Agent parts receive the session identity only, never the token. - structuredSessionChildIdentityEnv is gone; the seal is the only way to build a child's identity env, and tests go through it. - A launch's environment is the runtime's resolveAgentEnvironment, so the base-plus-overlay rule exists once. - Claude's connection test now covers a non-empty envToDelete applied after the inherited env is merged. No change to any spawned child: the parity snapshot is unchanged. * ci: run the login-shell contract job for the renamed child-env seal The seal moved from structured-session-child-identity-env to structured-session-child-env, but the PR job classifier still listed the old path, so a change to only the seal would skip the live login-shell contract job. The prefix now covers the seal, its test and its test support (which the login-shell harness imports).
…ost (stablyai#27769) * feat(daemon): opt-in OS ceiling on terminal processes, reported on or off per host * fix(daemon): verify the ceiling is enforced, reap its slice with the daemon, and keep terminals starting when systemd-run is unusable * fix(daemon): stop the ceiling slice before the daemon scope, and report a dropped slice as lost * test(daemon): expect the pid record's processCeiling field --------- Co-authored-by: m4air <[email protected]>
…ion and the trim helpers (stablyai#27797) Co-authored-by: m4air <[email protected]>
* refactor(pty): no ipc/pty.ts barrel * test(orcad): clarify preflight-order comment --------- Co-authored-by: m4air <[email protected]>
Co-authored-by: m4air <[email protected]> Co-authored-by: Claude <[email protected]>
…yai#27813) Move the 52 non-runtime, non-ipc importers of src/main/providers/types.ts onto the per-domain contract files. The barrel itself stays until the runtime and ipc importers move (3.4b/3.4c). Co-authored-by: m4air <[email protected]>
…rk mount (stablyai#27729) * perf(ports): run lsof without blocking on dead network mounts Without -b, lsof stat()s every mounted file system before answering. A hard-mounted network share that stops responding blocks that call in the kernel, so each port scan left an unkillable lsof behind. Pass -b -w to the lsof queries that name no file (port list, process cwd, executable path); their output is unchanged. The -U and +D queries keep stat because -b makes lsof reject named-file arguments. Linear: STA-9017, STA-9716 * perf(ports): name the stuck lsof helper in the comment; plain readiness test name * test: query a known child executable in lsof readiness smoke test
…ent is running (stablyai#27520) The terminal tab menu found its conversation through the tab-title lookup, which also falls back to retained and sleeping records an exited agent leaves behind. Pass a running-agents-only option for the move; tab titles keep the remembered conversation.
…from the running list (stablyai#27742) In shells that send no command-finished mark (cmd.exe, Git Bash), quitting Claude or Codex left the pane's live agent row behind: the pane's process monitor confirmed the exit, but only the OSC 133;D path ever dropped the row. The monitor's confirmed exit now arms the same drop and main-side reconcile pair a confirmed 133;D uses, settled behind the existing host-verifiability gate: a pane whose owner process the host can verify keeps the host's decision; every other pane drops the row and keeps its resume identity. Skipped when a 133;D drop is already armed, for remote panes, and when the row belongs to another agent.
…tablyai#27815) * feat(mobile): let the OTA page send extra top-level request fields A page request could only carry method, params and three fixed options, so any new top-level wire field needed a new app binary. Requests and subscribes now carry an optional verbatim `envelope`, gated by a new `rpcEnvelope` grant; nothing sets it yet. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb * refactor(mobile): one envelope merge seam per transport Review follow-up: the direct tracker and registry now hand frames to a single sendFrame that adds the credential and envelope, like the relay; page refusals use one fixed code per error class and an envelope-only options bag posts no options. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb * fix(mobile): refuse a non-object envelope before treating it as empty null threw synchronously and [] or a Date read as empty and was dropped; the schema now runs first. The tracker tests settle their requests instead of leaving timers. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb * refactor(mobile): type the direct socket's request as the wire request The typecheck now proves every direct request carries the transport fields, and the native-verb fence says why it drops an envelope. No behaviour change. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
* fix(chat): show hook failure details in error cards * test(daemon): pin clock for stable-launch budget assertion
…lyai#27732) * fix(native-chat): show a finished resume as a result, not a picker Once a resume starts and no chat is left to choose, the dialog drops the Select all row and the checkbox column, so each chat's check reads as its status instead of a ticked box. The Don't-ask-again box only shows while choosing; a run started by the launch's auto-resume says so and links to the setting. The finished description is past tense. * fix(i18n): keep Agent untranslated in the ja resume copy * fix(native-chat): keep resume results actionable and keyboard accessible * Fix hidden resume preference replay after run starts * Consume resume picker preference after applying it * fix(native-chat): keep Don't ask again after Resume while auto-resume is off The box now shows on the result view too whenever the setting is off and the user started the resume, and saves only while it is visible, so a hidden tick still never replays. Automatic launches keep their 'Resumed automatically' note instead.
…#27796) * fix(cli): honor Chat UI setting for worktree agent creation * fix(cli): preserve older host launch and worktree lineage warnings
…(legacy relay bridge) (stablyai#27787) * wip: legacy relay bridge client * Revert "fix(ssh): end an older Orca's relay terminals from the connect refusal (STA-10166) (stablyai#27748)" This reverts commit d4a55f5. * feat(ssh): bridge terminals an older relay still runs into their old tabs * test(ssh): cover the legacy relay bridge client, target bridge, transport and gate * test(ssh): type the bridge test fakes without assertions * test(e2e): a 1.4.224 relay's live terminal survives the upgrade on a Docker SSH host * ci(e2e): route legacy relay bridge changes to its Docker spec * fix(ssh): bridge delta moves too, and never read a non-exhaustive relay listing as exit * fix(ssh): keep retrying a bridge for panes that mount before connect; end panes proven gone * fix(ssh): bridge 1.4.224's detached leases through export preflight; publish every leased pane before the first look * test(e2e): build the released relay out of process so Playwright never loads ESM build tooling * fix(renderer): drop the recovery hook main removed from PtyTransport * test(e2e): show the converted worktree before reading the bridged tab * test(e2e): reconnect and wait for the converted host before opening the bridged tab * fix(renderer): match bridged leases to tabs mirrored from the managed server * test(e2e): find the mirrored relay-era tab under any worktree key * test(e2e): open the converted worktree before looking for its mirrored tab * test(e2e): a retired lease is terminated or pruned * fix(ssh): back off attaches a listed terminal refuses; one pane per bridged shell --------- Co-authored-by: m4air <[email protected]>
Publish Linux Wayland text copies with an independent clipboard owner, then clear Chromium's stale source only after publication succeeds. Use data control where available and GTK's clipboard bridge on GNOME. Keep macOS, Windows and X11 on their existing Electron writers. Temporary workaround for electron/electron#54645, with removal checks documented in the native README. Verified full build, macOS arm64 packaging, Linux x64/arm64 library floors, clipboard/platform tests, real Wayland copy/paste and CI packaging. Fixes stablyai#26917 Fixes stablyai#23229
…nnect (stablyai#27951) * fix(ssh): a bridged pane reattaches after a disconnect instead of going deaf * fix(ssh): a bridged pane asks again when it turns live during an earlier ask --------- Co-authored-by: m4air <[email protected]>
…tablyai#27770) Co-authored-by: m4air <[email protected]>
) Co-authored-by: m4air <[email protected]>
…tablyai#27961) Co-authored-by: m4air <[email protected]>
) Co-authored-by: m4air <[email protected]>
…tablyai#27963) Co-authored-by: m4air <[email protected]>
…ablyai#27965) Co-authored-by: m4air <[email protected]>
# Conflicts: # src/cli/bundled-skill-guides.ts
4 tasks
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.
Merge-commit sync of upstream stablyai/orca main at c77bebf into fork-main (e061a6f), same pattern as #27.
git merge --no-ff c77bebfb7b; all fork changes kept.Conflicts: src/cli/bundled-skill-guides.ts (generated) — took fork side, regenerated via
generate-bundled-skill-guides.mjs --write,--checkclean.No daemon protocol version bump in the upstream diff (src/shared/protocol-version.ts unchanged), so no allow-runtime-launcher-protocol-bump label. No tag/release/signing.