Skip to content

[upstream #23485] fix(agents): recognize DeepSeek Build terminal sessions - #272

Open
innocarpe wants to merge 5593 commits into
mainfrom
fix/dsb-session-recognition
Open

innocarpe wants to merge 5593 commits into
mainfrom
fix/dsb-session-recognition

Conversation

@innocarpe

@innocarpe innocarpe commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Upstream: stablyai#23485

ELI5

Orca recognizes manually started DeepSeek Build sessions under their own name in existing terminal tabs and agent rows. DSB remains outside Orca's launchable agent set.

What Changed

  • Recognize dsb, deepseek-build, the native deepseek-build-agent child, and the npm dsb.js entrypoint.
  • Recognize the actual spinner/activity/product frame (spinner - activity - DeepSeek Build) in both title classifiers; an unframed Claude task merely mentioning DeepSeek Build keeps its owner. Preserve explicit Claude, Gemini, native OpenCode, Qoder, and native DSH identity markers.
  • Register that segment in canonical title evidence so a manually started session can publish agentIdentity even when foreground-process inspection is unavailable. Explicit vendor markers and native OpenCode envelopes keep their owner through wrapped titles and both canonical and published identity.
  • Carry recognition through an observation-only TerminalAgent type (TuiAgent | 'dsb') and the existing tab, icon, search, and agent-row surfaces. Launch inputs retain TuiAgent.
  • Exclude headless one-shot dsb run commands from interactive session recognition.
  • Guard launch-config lookups in existing prompt and modified-Enter paths. Recognition-only agents use the existing unknown-agent defaults; no DSB input profile is registered.
  • Type runtime terminal summaries and group-address recipient observations as TerminalAgent; create/launch inputs remain TuiAgent.
  • Preserve the pending foreground agent's input encoding when a stale pane title names another agent. Existing pending Pi/OMP/Droid CSI-u behavior and unknown-foreground title recovery remain intact.
  • Preserve upstream's separate DSH, Freebuff, and Qoder launch support and native whale-marked DSH titles during the rebase; keep the DSB npm entrypoint in upstream's extracted process-observation registry.

TuiAgent, TUI_AGENT_CONFIG, launch catalogs, auto-pick order, keybinding generation, prompt-transport configuration, telemetry schemas, and skill-install mappings have no changes from the base. Most of the additional files propagate the observation type or update test result annotations; they do not add launch behavior. Native-chat and existing launch-capability checks reject recognition-only DSB.

Why

DeepSeek Build uses a braille spinner that generic Claude heuristics can claim. A DSB task can also mention another agent, such as Codex, without changing who owns the session. Identity should work consistently in desktop and runtime observations while launch support stays a separate product decision.

Linked Issue

Fixes stablyai#23484

This replaces the recognition portion of stablyai#22886. The broader launcher PR and its fork mirror have been closed.

Visual Proof

Title and process classification examples:

Evidence Before After
⠼ - Waiting for response… - DeepSeek Build Claude spinner identity DeepSeek Build / dsb
⠋ - Review Codex integration - DeepSeek Build Codex task-name identity DeepSeek Build / dsb
⠋ Review DeepSeek Build integration Claude Code Claude Code
Running dsb binary or npm shim Unrecognized dsb
Title-only DSB session with unreadable foreground No published identity agentIdentity: dsb
Native DSH title whose task ends in - DeepSeek Build DSH DSH, without a DSB canonical anchor
DSB installed on the host No DSB launcher entry No DSB launcher entry

No UI layout or controls are added. Native-app screenshots have not been captured; regression tests verify title classification, published identity, tab occupancy, agent rows, launch boundaries, and catalog parity.

Testing

Latest follow-up rebases the PR onto 31012aeb09 and preserves upstream's AgentChildWorkView import and the recognition-only TerminalAgent union. Published head: f6831d92fe on both PRs.

  • Eight focused root suites / 312 tests pass, including current status/child-work contracts, process recognition, DSB title/headless frames, published identity, and runtime capability boundaries.

  • Changed-code quality passes all seven scans across the 73 source/test files; no lint limit or permission boundary was relaxed.

  • Complete canonical Node, web, and CLI TypeScript checks run sequentially and pass on this published head.

  • Mobile icon/catalog regressions pass; DSB remains absent from launch catalogs.

  • Earlier pre-rebase verification on 50695ab759: 41 root suites / 905 tests plus 14 mobile tests. These historical results are separate from the current-head checks above.

  • All nine launch/catalog/selection/shortcut/telemetry/skill boundary files match the base. No .github/, config/, launcher, hook, resume, or custom DSB input profile is added.

  • Actual Linux, Windows, and SSH devices and the full app build have not been manually exercised. General upstream workflows remain subject to maintainer execution approval.

  • I manually tested these changes locally

  • Automated tests added/updated

AI Disclosure

OpenAI Codex assisted with implementation and automated verification.

Review

Focused fix

  • In scope: running-session process/title identity and labels in existing terminal and agent surfaces.
  • Out of scope: launcher entries, new DSB prompt/keyboard protocols, tui-idle waiting behavior, hook installation, resume, and Source Control AI. Existing generic input paths remain safe when they receive an observed DSB identity.

Preserves

  • Claude tasks that only mention DeepSeek Build retain Claude identity.
  • Explicit vendor markers and native DSH titles retain their existing title-classifier precedence.
  • Other agents retain their launch, permission, and wait behavior.
  • Installing DSB does not register launch support, create shortcuts, or alter automatic selection or mobile launch catalogs.

Agent skill upstream boundary

  • Not applicable; no skill-installer source or registry content is copied or translated.

Notes

Recognition and launch eligibility now have separate types. Launch support can be proposed independently after this recognition fix is accepted.

Checklist

  • This PR is small and focused: one behavior, with observation-type propagation
  • I explained what changed and why
  • Before/after screenshots or videos attached
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered
  • Full lint, test, and build suites pass; targeted checks and complete node/web/CLI typecheck passed locally. Broader suites remain for CI; current-head upstream PR Checks requires maintainer approval before it can run.

@innocarpe innocarpe added the bug Something isn't working label Sep 27, 2026
@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 23bb735 to 84eede8 Compare September 27, 2026 23:20
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (84eede8edf)

Thanks for the detailed reviews. The follow-up addresses all findings on the original head:

  • Title precedence (CodeRabbit and Pullfrog): both classifiers now prefer the final DeepSeek Build product segment over task-name matches, including Codex and Gemini. Explicit Claude/Gemini markers and native OpenCode identity retain their existing precedence. Regressions cover both classifiers, canonical evidence, tab occupancy, and sidebar rows.
  • Recognition-only scope / shared startup concern / continuation bypass: DSB is removed from TuiAgent, TUI_AGENT_CONFIG, display-name enumeration, telemetry schemas, and skill-install mappings. Those launch registrations, auto-selection changes, and keybinding/shortcut changes are absent from the final diff. A separate TerminalAgent observation type carries DSB through identity surfaces. Existing launch-capability checks reject it; a continuation regression and native-chat regressions verify that boundary.
  • Mobile parity: restoring the original launch configuration restores the mobile catalog invariant. The mobile package's actual catalog suite passes all 3 tests; its assertion and catalog are unchanged.
  • Title-only runtime identity: canonical title evidence now recognizes the product suffix, so resolvePublishedPaneAgentIdentity can publish dsb without readable process evidence. Tests also verify that an ordinary task mention does not become DSB identity.
  • Test naming: the one-shot test suite is renamed to describe the headless command classifier.
  • Docstring coverage warning: the repository's AGENTS.md asks for concise comments only where code is non-obvious, explaining why. I retained existing documentation and brief explanations of the identity/launch boundaries. Many touched functions only change an observation type; adding boilerplate docstrings to meet a numerical threshold would conflict with that rule. This warning is explicitly acknowledged as advisory.

Validation on the rebased branch: 37 focused root test files / 778 tests, the mobile catalog's 3 tests, node/web/CLI typecheck, changed-file Oxlint, React Doctor lint, and formatting all pass. Real Linux, Windows, and SSH devices were not manually exercised. The PR description has been updated with the corrected scope and evidence.

@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (55918ee365)

Second review follow-up in 55918ee365:

  • Fixed all five new inline findings: canonical/published vendor precedence, runtime prompt config access, foreground/title modified-Enter config access, and the runtime summary contract.
  • Recognition-only DSB uses existing generic input defaults. Launch catalogs, selection, shortcuts, and prompt-transport configuration still match upstream.
  • Propagated the observed identity type to group consumers without adding an agent-name group or any launch capability.

Verification: 1,017 distinct root tests in 52 focused files plus 10 mobile tests passed. Node/web/CLI typecheck passed on dd90b3183f. After the final browser-placement rebase onto 5a8237a7a5, the directly affected 8-file / 242-test set and web typecheck passed again; node/CLI source changes were unaffected. Mobile parity/display tests were also rerun successfully during the rebases. Changed-file Oxlint, React Doctor, Oxfmt, and diff checks also passed. The new regressions reproduced the old title errors and undefined-config failures, including the actual runtime prompt path.

CodeRabbit's preceding scope/title/description/linked-issue checks passed. Its docstring-coverage advisory remains informational under the repository's concise non-obvious why-comment rule; no boilerplate documentation was added for mechanical type propagation.

Actual Linux, Windows, and SSH devices were not manually exercised. New reviewer runs and maintainer review remain pending.

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 55918ee to deeb34c Compare September 28, 2026 09:52
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (deeb34c57f)

Addressed the new pending-foreground/stale-title review finding in deeb34c57f with a reproduced regression. A known pending foreground identity retains its input encoding when the title names a different agent; existing Pi/OMP/Droid CSI-u behavior and unknown-foreground title recovery remain covered.

Rebased onto upstream/main (08300512eb), preserving upstream's DSH and Freebuff launch support and process-incarnation reaping. Native whale-marked DSH titles retain DSH ownership even when their task ends in - DeepSeek Build; DSB npm-shim recognition uses the extracted process-observation registry. The runtime fixture supplies upstream's required input kind, and idle-title policy lookups accept registered TUI agents only.

Validation:

  • Latest base: 33 affected root Vitest files / 706 tests and 2 mobile files / 14 tests passed.
  • Earlier base 2f8f4f576d: 60 focused root files / 1,123 tests passed. These are separate validation runs, not an inflated current-head total.
  • All 72 changed source/test files passed Oxlint, React Doctor lint, and Oxfmt; the complete contribution diff passed git diff --check. Two React Doctor warnings concern existing effect bodies unchanged by this PR.
  • All 9 checked launch/catalog/telemetry/skill boundaries match the current upstream base.
  • Current-head complete node/web/CLI typecheck confirmation is pending. PR Checks reports action_required with no jobs started; Pullfrog is still reviewing this head. Earlier local full typechecks passed on b279a1f880 (base a174a086d7).

The PR remains focused on manually observed DeepSeek Build identity in existing terminal and agent surfaces. Both PR descriptions record the current base and verification results. Latest-head bot and maintainer review remain pending.

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from deeb34c to 93f4958 Compare September 28, 2026 10:29
@innocarpe

innocarpe commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner Author

Sync update (93f4958f6b)

@coderabbitai Thank you for confirming that the pending-foreground input fix resolves the reported DSB/stale-Pi-title case. I checked the additional pre-merge advisories against the actual PR diff.

Scope: GitHub's changed-file API reports 72 product source/test files and no .github/ or config/ files. The workflow and cache files named in the warning do appear in 55918ee365..deeb34c57f, because that old-head/new-head comparison includes upstream base changes. They do not appear in the PR comparison against upstream/main. Please use the PR Files changed view for the scope check.

Merge conflict: Rebased onto the latest upstream/main (8b410b4893), preserving Qoder's native title and lifecycle support alongside DSH and Freebuff. The observation-only DSB change remains separate from launch eligibility. The catalog's existing line limit also passes after combining two identical OpenCode icon branches; both variants keep the same icon, and the limit was neither raised nor disabled.

Docstring advisory: The repository's AGENTS.md requires concise comments only for non-obvious code and asks them to explain why. Existing documentation and the brief explanations of recognition/capability boundaries are retained. I have not added boilerplate documentation for mechanical observation-type propagation to satisfy a numerical threshold.

Verification: 31 affected root suites / 680 tests and 2 mobile suites / 14 tests passed after the rebase; the catalog's 2 tests were rerun after the identical-branch consolidation. All 72 changed source/test files passed lint/format checks, and the complete contribution diff passed whitespace checks. The two React Doctor warnings concern unchanged effect bodies. Complete node/web/CLI typecheck now passed on 93f4958f6b in one HQ slot, running the canonical projects sequentially with && (exit 0).

The latest CodeRabbit review covers 93f4958f6b, reports no actionable comments, and now marks the scope check as passed. Pullfrog also passed, finding the new icon-branch consolidation behavior-preserving after separating upstream Qoder changes; that incremental review is not presented as a whole-project typecheck. The upstream PR is mergeable. General upstream PR Checks remains action_required and has not run.

All 9 existing inline threads are resolved. DSB still has no launch entry, selection change, generated shortcut, skill-install mapping, or custom input protocol. Maintainer review remains pending.

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 93f4958 to a85f6fb Compare September 29, 2026 02:18
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (a85f6fb706)

Rebased the recognition-only change onto current upstream/main (28942eed5a) and resolved the idle-evidence import conflict, preserving upstream rest-signal handling alongside the DSB capability guard.

The newer casting check flagged assertions in the observation plumbing. These now use the existing checked identity mapping and TUI-key guard. The partial runtime fixture has a line-specific SAFETY rationale. A regression test confirms that recognition-only DSB retains its icon identity.

Verification: 38 affected root suites / 824 tests and 2 mobile suites / 14 tests passed. After the final renderer narrowing adjustment, both directly affected suites / 172 tests passed again (not added to the earlier total). All 73 changed source/test files passed the seven changed-code quality checks, formatting, and the complete diff whitespace check. Complete Node, web, and CLI typechecks passed with projects run sequentially; the Node result was reused after confirming the last adjustment changes no Node inputs.

All nine launch-boundary files still match the current base. DSB remains outside launch configs, automatic selection, generated shortcuts, skill-install mappings, and custom input profiles. All nine existing inline threads remain resolved. Current-head reviewer rechecks and upstream CI execution remain pending.

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from a85f6fb to 50695ab Compare September 29, 2026 02:59
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (50695ab759)

Addressed the three new Greptile findings:

  • Claude task suffix: spinner titles now require DSB's native spinner - activity - DeepSeek Build frame. Earlier simplified fixtures now use the real separator; braille and quarter-circle Claude task suffixes no longer create anchored DSB identity.
  • Node preload options: reuse the existing interpreter entrypoint parser, then inspect the DSB subcommand after the npm shim. Regressions cover require/import/loader options, equals forms, Unix and Windows interpreter paths, interactive agent, and explicit headless inclusion.
  • Gemini glyphs in task text: both label classifiers use the DSB matcher, which distinguishes native vendor prefixes from embedded task glyphs. All four glyphs are covered in native, wrapped, and action-required DSB frames.

Verification: 41 affected root suites / 905 tests and 2 mobile suites / 14 tests passed. The parser's 47 tests passed again after a test-string lint correction, without adding them to the total. After rebasing onto current upstream/main (a134d1259e), the four direct recognition/runtime suites / 82 tests and both mobile suites / 14 tests passed again. All seven changed-code quality checks passed across 73 source/test files on this base, as did formatting and the complete diff check.

Complete canonical Node, web, and CLI typechecks passed sequentially before the last rebase. That base update contains only 21 mobile app-update files: root TypeScript project inputs, configs, dependencies, and all 14 fix-file hashes are unchanged. The existing complete typecheck and broader regression results were reused after that input audit.

DSB remains recognition-only. All nine launch/config/selection/shortcut/telemetry/skill boundaries still match the validated base. The nine prior review threads remain resolved; the three new findings have targeted fixes and regression coverage. New-head automatic reviews and general CI execution will be checked separately.

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch 2 times, most recently from f6831d9 to 6facbee Compare October 1, 2026 02:43
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (6facbeeab1)

No new review comments arrived after the last recognition-only update. This push replays that same patch onto current main because the PR had become dirty.

The overlap was sidebar label ownership, the source-grep catalog test main removed, the icon round-trip main removed, and the new pane-foreground agentEvidence field.

Preserved behavior:

  • DeepSeek Build stays recognition-only. dsb stays out of TUI_AGENT_CONFIG, ALL_TUI_AGENTS, and the launch catalog, and isTuiAgent('dsb') remains false.
  • A terminal title's final DeepSeek Build segment still maps to dsb in title-derived-pane-agent-identity.ts.
  • Foreground agent remains TerminalAgent, so a recognized dsb session can be stored. Upstream agentEvidence is unchanged.
  • The removed source-grep catalog test and icon round-trip stay removed. Catalog exclusion, label, icon identity, kind, and the non-launch checks live in tab-agent-launch-options.test.ts and agent-status.test.ts.

Checks on this tree:

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 6facbee to 6ebb5ee Compare October 1, 2026 11:32
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (6ebb5ee71f)

A manually started dsb pane is recognized, but it has no launch config. tui-idle no longer reads that missing config, so the wait does not throw. The pane lookup returns only a launchable agent, and the idle lane for dsb stays open.

nwparker and others added 11 commits October 1, 2026 23:33
…ablyai#22670)

On an SSH host without a C/C++ compiler, the relay installs without node-pty, and opening a terminal used to say "could not establish why … reconnect to retry", which never helped. The relay now treats a missing node-pty folder ("not found" only) as not installed, runs its existing build-tools check, and names the missing tools with the install command for the host's package manager. It diagnoses the node-pty install the relay's import actually resolved, and keeps any other error as "can't tell".

Part of stablyai#20386. Removing the need for a compiler on the host is stablyai#1693.
)

* fix(worktrees): remove repeated scans and keep prepared checkouts fresh

* fix(worktrees): reclaim unlocked fallback preparations safely

* refactor(worktrees): simplify creation ownership and idle maintenance

* fix(git): keep ref maintenance armed after an index-only pass

An idle attempt that found the pack index due but refs still cooling down
returned without rescheduling, so loose refs from the arming fetch waited
for the next write instead of the ref cooldown.
…ad-only instead of deleting the rest of its history (stablyai#24477)

* fix(native-chat): an older Orca skips and keeps a journal row of a kind it does not know

* test(native-chat): a newer build's journal row kind survives reads, writes, rewinds and reopens

* fix(native-chat): an older Orca keeps an unknown journal row kind read-only unless its writer declared it skippable

A row of a kind this build does not know, in a well-formed envelope, now latches the chat
read-only with every row kept, the same way a newer row version does. It is read past only
when its writer declared `ifUnknown` on the row: `skip` (a rewind drops it) or `carry` (a
rewind carries it after the rebuilt history, epoch, seq and fence restamped). Every existing
kind changes queue or turn state, so skipping by default would let an older build write from
a wrong fold.

- journal-row-kind-compatibility.ts: each kind states how older builds read it, typed over
  every row kind, so a new kind cannot be added without a declaration.
- Rewind restates the Resume and Stop as before, then carries `carry` rows in source order;
  the restatement goes back to { lifted, liveStop }.
- Replay treats a row whose body names another sequence than its stored key as malformed at
  the key, so the next write never collides with it; catch-up reads stop there too.

* refactor(native-chat): drop the writer opt-in; an unknown journal row kind only latches read-only

An older Orca now treats a row of a kind it does not know exactly like a row from a newer
schema version: every row stays on disk and the chat opens read-only until an update. The
writer-declared skip/carry opt-in, its in-memory placeholder, the carry through rewinds and
the per-kind registry are removed: no current or planned kind could use them, and they can
come with the first kind that may safely be read past.

Kept: an unknown kind needs the envelope every row keeps (epoch, sequence, fence, timestamp),
else it is damage as before; a row whose body names another sequence than its stored key is
malformed at the key; the epoch row's validator names its kind. The schema header states the
rule for adding a kind: keep the envelope, and either ship the reader first or bump `v`.

* refactor(native-chat): derive the journal's known row kinds from the row union

Each kind's own-field check now lives in one table keyed by every kind JournalRow holds, and
the set of kinds this build knows is derived from that table. A kind added to the union without
a check fails to compile, rather than latching this build's own chats read-only as a newer
build's kind. A test reads one valid row of every kind.
* Clarify Option shortcut settings and cover punctuation input

* Enable Auto Option shortcuts on ABC keyboards safely
stablyai#24559)

* Revert "feat(orcad): source-side dormant export of a relay-hosted SSH target (stablyai#16741 T6-8) (stablyai#24519)"

This reverts commit 783101b.

* Revert "feat(ssh): update, roll back, recover and stop a managed orcad server (stablyai#16741 T6-5 follow-up) (stablyai#24463)"

This reverts commit 38c2d1d.

* Revert "feat(ssh): deploy and pair an empty managed orcad server over SSH (stablyai#16741 T6-5) (stablyai#24453)"

This reverts commit 8b76683.

* Revert "fix(ssh): orcad GC honors the activation journal; readiness requires proven daemon coverage (stablyai#16741 T6 follow-up) (stablyai#24451)"

This reverts commit d3f8c50.

* Revert "feat(ssh): remote orcad stop by request file and journaled decommission (stablyai#16741 T6-4) (stablyai#24449)"

This reverts commit 43d9b43.

* Revert "feat(orcad): supervisable server: stop requests, managed stop receipts and a lifetime that keeps its lock on failed teardown (stablyai#16741 T6-3) (stablyai#24433)"

This reverts commit b093d3a.

* Revert "feat(ssh): crash-safe orcad activation, rollback and recovery (stablyai#16741 T6-2) (stablyai#24423)"

This reverts commit 1a9ac0e.

* Revert "feat(runtime): SSH access links for paired servers in a downgrade-safe sidecar (stablyai#16741 T5-1+T5-2) (stablyai#24420)"

This reverts commit 99db2bf.

* Revert "feat(relay): capability-gated owner reset with a durable preparation journal (stablyai#16741 T3 R1) (stablyai#24418)"

This reverts commit 34a582b.

* Revert "feat(ssh): track connection-manager drains, test probes and provider continuations (stablyai#16741 T2 P3+P8a) (stablyai#24407)"

This reverts commit d53063d.

* Revert "feat(daemon): idle retirement, session census and recovery-only provider (stablyai#16741 T2 P4b) (stablyai#24409)"

This reverts commit ff212db.

* Revert "feat(ssh): add pty.resumeClient and split SSH PTY process listing (stablyai#16741 T2 P5+P6) (stablyai#24414)"

This reverts commit 92cb717.

* Revert "feat(relay): await owned watcher and agent children on shutdown (stablyai#16741 T2 P1) (stablyai#24400)"

This reverts commit 6b36e4f.

* Revert "feat(session): retry failed renderer session writes and verify local folder PTYs (stablyai#16741 T2 P9) (stablyai#24406)"

This reverts commit d23ecef.

* Revert "feat(ssh): remote orcad primitives on the pinned Node runtime (stablyai#16741 T6-1) (stablyai#24419)"

This reverts commit dd87ae5.

* Revert "fix(runtime): fence runtime-environment subscriptions and status probes by identity (stablyai#16741 T5-3) (stablyai#24421)"

This reverts commit ece9e4d.

* Revert "feat(orcad): migration manifest and dormant-state contracts (stablyai#16741 T6-7) (stablyai#24422)"

This reverts commit 3fbdaba.

* Revert "feat(ssh): wire SshConnection through the work and transport close ledgers (stablyai#16741 T2 P2) (stablyai#24401)"

This reverts commit 4e8edc8.

* Revert "feat(profiles): carry markdown frontmatter visibility in project transfers (stablyai#16741 T2 P7) (stablyai#24405)"

This reverts commit 60c9326.

* Revert "fix(runtime): project the PTY incarnation onto mobile session tabs (stablyai#24413)"

This reverts commit 99e0303.

* Revert "feat(daemon): tag daemon stream data with the PTY incarnation id (stablyai#16741 T2 P4a) (stablyai#24402)"

This reverts commit 817af76.

* Revert "feat(ssh): port the SSH connection work ledger and transport close ledger (stablyai#16741 T2) (stablyai#24210)"

This reverts commit c991893.

* Revert "feat(relay): fence and drain file and git response streams on shutdown (stablyai#24185)"

This reverts commit dc08ffe.

* Revert "refactor(runtime-rpc): extract the Node WebSocket lifecycle; opt-in pinned port (stablyai#24186)"

This reverts commit a789233.

* Revert "feat(relay): route relay handlers through work admission; producer publication drain (stablyai#24181)"

This reverts commit 0b812bd.

* Revert "feat(relay): land the stablyai#16741 T1 seam (work drain, publication drain, release gate) (stablyai#24156)"

This reverts commit 3aa2d3a.

---------

Co-authored-by: m4air <[email protected]>
* test: align source-control fixtures with current store contracts

* Bound E2E package setup and retain cancelled-job traces
nwparker and others added 28 commits October 3, 2026 01:49
…hared hook POST

The jcode journal reader, the Claude transcript reader and the Command Code
transcript reader each carried their own copy of the same reverse chunked line
scan; they now share one tested helper. jcode's managed hook script drops its
hand-rolled curl for buildPosixAgentHookPostCommand, which also gains it the
raw-JSON transport and the --noproxy guard the bespoke copy was missing.

Co-authored-by: czzczz <[email protected]>
…k shape

CI's anti-slop audit rejects Reflect.get: parse dynamic input into a named type
instead. Adds Windows script-shape tests too, since Windows is the platform this
change could not be exercised on directly.

Co-authored-by: czzczz <[email protected]>
…lock

The absolute 1s bound was the flake CI shard 3/8 hit: it is tight enough to catch
a synchronous gate on an idle laptop and too tight on a loaded runner. Measuring
the same POST both ways on the same machine makes the claim a ratio, which is what
the test is actually about. Mutation-checked: a synchronous gate reads 6120ms
against a 1517ms observer.

Co-authored-by: czzczz <[email protected]>
The bound was machine-speed sensitive and flaked on CI shard 3/8 at 1525ms. The
structural assertions (detached gate branch, foreground observer branch) and the
no-hang stdin drain cover the same contract without a timer.

Co-authored-by: czzczz <[email protected]>
- Windows posted no payload at all: the shared builder reads `payload@-` from
  stdin, which the gate has already drained and observer hooks never receive, so
  every Windows event was dropped. Write the env var to a temp file and pipe it.
- The daemon pre-warm never fired for daemon-host spawns, which is the default
  local path; it now runs there too, and from the final env so the daemon gets the
  hook port and token.
- A failed runtime-dir mkdir took down every local terminal, jcode or not.
- removeJcodeManagedHooks matched the raw line, so a user hook whose comment
  mentioned the managed script was deleted; matching on Windows never worked.
- A managed entry left by a copied home or a platform switch is now repointed
  instead of being reported as user-owned forever.
- The OSC colour skip only checked launchAgent, so a command- or telemetry-named
  jcode pane still leaked the reply into its composer.
- `['hooks']` and a commented scalar are recognised, instead of appending a
  second [hooks] table that makes jcode reject the whole config.
- A failed tool's error is marked as tool output rather than agent prose.
- The vault keeps a session's stored name, counts its tokens, and skips
  background_task and [Scheduled task] turns.

Co-authored-by: czzczz <[email protected]>
The jcode prompt reader ran a synchronous bounded file scan plus a JSON
parse on every hook event. jcode blocks on pre_tool, so a turn that ran
four tools charged the user eight scans of latency it did not need — the
prompt cannot change inside a turn.

- Cache the journal read per pane, refreshed on the turn boundary that
  can change it. The cache holds the whole evidence record, since
  hasExplicitUserPrompt needs the transcript-evidence flag and not just
  the text, and it joins the existing pane-scoped lifecycle (close,
  rename, reset) rather than living in a module singleton.
- Key a journal prompt by its absolute byte offset instead of its
  region-local line index. The backward scan windows the file from EOF,
  so appending shifted every boundary and reminted the key for a prompt
  that never moved; a repeated turn_end then slipped past the same-hash
  dedupe as a second done event with duplicate telemetry.
- Pin the platform in the daemon pre-warm tests. The pre-warm is a no-op
  off POSIX, so the dedupe and retry cases would have passed vacuously
  on a Windows runner.

Co-authored-by: czzczz <[email protected]>
Three fixes, all on paths this PR could not exercise locally.

The managed hook command was stored as a bare path. jcode tokenizes that
string shell-style before exec'ing it directly (parse_hook_command,
crates/jcode-terminal-launch/src/lib.rs): unquoted whitespace splits, and
every unquoted backslash is consumed as an escape. So on Windows
`C:\Users\me\.orca\agent-hooks\jcode-hook.cmd` reached exec as
`C:Usersme.orcaagent-hooksjcode-hook.cmd` and no hook fired at all, and a
POSIX home with a space split into two arguments. Store the path
single-quoted (verbatim, backslashes included), falling back to double
quotes for a path containing a single quote. Existing bare entries are
already repointed by the stale-key path, and getStatus accepts both forms
so the repair is not reported as a user-owned hook. The quoting helper was
previously dead code that only tests called; the three production sites
now use it. isJcodeManagedCommand also normalizes separators, since a
`/`-only needle never matched a Windows entry.

Commit-message generation feeds a staged patch to `jcode run` as the
prompt — attacker-influenced text — while jcode's default profile exposes
shell, read, write, and MCP. Pass `--tool-profile none`, which resolves to
an empty allowed-tool set in jcode's config (base_allowed_tools), matching
the read-only posture claude (plan) and codex (read-only) already take.

docs/reference/jcode-hook-events.md was never actually in this PR: the
repo ignores docs/** and tracks reference docs by allow-list only, so the
captured-payload evidence four source comments point at was silently
dropped. Allow-list it.

Co-authored-by: czzczz <[email protected]>
The argv assertion lives in two places; --tool-profile none only landed in
one, so the plan test still expected the unrestricted argv.

Co-authored-by: czzczz <[email protected]>
The pre-spawn size guard only ran on Windows. Linux caps a single argv
entry at MAX_ARG_STRLEN (32 pages, 128 KiB on a 4-KiB-page host) and
execve fails with E2BIG past it, so an agent that delivers the whole
prompt as one argument — jcode, and the other argv-delivery agents —
failed on a large staged diff with an error the user could not act on.

The cap is per-argument and in bytes, which is why it is not the Windows
line budget: 40k chars trips Windows and is nowhere near the Linux limit,
so folding them together would have refused prompts Linux runs fine.

Co-authored-by: czzczz <[email protected]>
…cate

Rebasing onto 853 commits of main surfaced two things the earlier branch
had hidden.

main already owns a guard for the issue-stablyai#7253 bug class
(`remote-hook-service-registry-coverage.test.ts`). This branch had added a
second, near-identical one — a parallel implementation of a test that
already existed, which is what AGENTS.md's reuse rule is about. Deleted
ours and registered jcode in main's, which is the one that has kept pace
with every agent added since.

Also fixes a missing separator in the mobile icon map. `pnpm tc` does not
cover `mobile/`, so only the session-route closure suite caught it.

Co-authored-by: czzczz <[email protected]>
Adding an agent tipped four modules past their line budget. AGENTS.md
forbids a `max-lines` disable or a per-file bump, so each is split on a
real seam rather than silenced:

- agent-catalog.tsx keeps `AgentIcon`, which 70+ files import, and the
  rows move out. The rows alone exceed the 300-line budget a `.ts` file
  gets, so they follow the primary/secondary split this repo already uses
  for commit-message agent specs.
- getAgentResumeArgv -> agent-resume-argv.ts, re-exported so the 18 call
  sites keep one import path.
- isDiscoverableSessionFile/pathSegments -> session-file-discovery.ts.
- remoteCodexSources -> remote-session-scanner-codex-sources.ts; Codex is
  the one remote agent with two CODEX_HOME roots.

Also:
- Records the readiness-census baseline jcode now needs. main added that
  gate while this branch was out; the fixture is the recorded 74-case
  matrix, not a hand-written one.
- Restores two entries a rebase resolution silently dropped from
  config/tsconfig.cli.json (gitlab/project-ref-parser,
  startup/shell-path-probe). Nothing to do with jcode; losing them was a
  conflict-resolution mistake on this branch.

Co-authored-by: czzczz <[email protected]>
…at owns the workspace (stablyai#24205)

* fix(native-chat): a host admits structured sessions by client capability, not its own chat setting

A host's experimentalStructuredNativeChat decided whether any paired client could reach
agentSession.* at all, and whether session.tabs.* showed it structured tabs. That setting is the
host user's own launch preference: whether a new agent opens as a chat or a terminal is decided by
whoever launches it. Using it as admission control meant a client whose own preference was
"structured chat" was refused on a host whose preference was "terminal", and chats opened while
the setting was on were withheld from mobile once it was turned off.

The gate now asks one thing: did the client advertise agent-session.structured.v1 (in-process
callers negotiate nothing and are always admitted). Tab projection and restore follow the same
rule. With the setting no longer gating anything, the separate cleanup gate (close, cancel,
unsubscribe, release), which existed only so those kept working after the setting was switched
off, is identical to the main gate and is folded into it. The settings listener that republished
tabs when the setting changed is removed, since projection no longer depends on it.

The host setting still picks the default for launches that start on the host itself
(agent.launch from mobile, orchestration worker-start).

* fix(native-chat): the desktop declares structured chat support to paired hosts

The desktop renderer advertised agent-session.structured.v1 (and the Claude, turn-item and
background-task capabilities that go with it) to its own main process but not to a paired Orca
server. The server therefore refused every agentSession.* call from the desktop and stripped
structured chat tabs out of the tab list it published to it, so a structured chat running on a
paired server never appeared on the desktop, even though the renderer already mirrors a host's
agent-session tabs and drives each one against the server that owns its workspace.

The same renderer reads structured chats on either host, so the remote Electron list now carries
the same structured-session capabilities as the local one, and the capability test pins that
nothing is advertised only locally.

* feat(native-chat): open structured chats on the paired server that owns the workspace

With the structured-chat default on, an agent launched in a workspace that lives on a paired Orca
server always opened as a terminal (or the terminal-backed chat view). Three things kept it off
the structured path: the launch check refused every host but this machine, a remote workspace was
handed to the host-published terminal path before the structured route was even considered, and
the structured launch pipeline sent create and every follow-up call to this machine's runtime.

A workspace's owning runtime is fixed, so the pipeline now derives it from the workspace instead
of assuming this machine (structured-agent-session-owner.ts, the same derivation the chat pane
already uses to read a session). The launch intent carries that target; the pre-create support
check, create, the publication check and fence read, the launch prompt send, held option picks,
the "focus this chat" marker, the placeholder tab's host, and tab close/purge all use it.

The launch check now accepts a paired server and asks that server's own capabilities (read from
the status the client already cached for it) rather than this machine's. An SSH workspace stays
terminal-backed: no Orca runtime runs there. The host still answers createSupport before
anything is created, so an older server that refuses shows the failure in the chat tab.

A chat the user closed before its create landed is now also retired on the paired server when it
publishes, as the local sync already does. Orchestration workers placed on another runtime are
unchanged: federation creates terminal agents only.

* fix(native-chat): negotiate client-chosen launch mode so released phones and old servers keep terminals

Hosts advertise agent-session.structured.client-launch-mode.v1: they admit
structured sessions by client capability alone. A remote client that does
not advertise it (phones released before agent.launch) asks createSupport
to pick the launch mode, so the host keeps answering that with its own
setting, exactly as before. Cleanup methods keep their own named gate so a
future admission condition cannot make close or cancel refusable.

* refactor(runtime): keep the Electron client capability list in its own module

protocol-version.ts is at its line budget; the list is what the desktop
advertises to paired hosts, not the host's own contract.

* fix(native-chat): the desktop declares it picks each launch mode itself

Paired hosts and the desktop's own main process then answer createSupport
by the workspace rather than by their own chat setting.

* fix(native-chat): pin each structured chat to the host it was launched on

- Route: a paired server opens a chat only when it advertises the
  client-chosen launch mode; an older server keeps its terminal. Its
  capabilities come from the store's host status, not the compatibility
  cache that is empty after boot or reconnect.
- A launch command override is this machine's: the route applies it only
  locally, and a host's createSupport refuses on its own override.
- The owning host is resolved once, from the same value the route used,
  and carried on the launch intent, its persisted record (legacy records
  load as local), the provisional tab and every mirrored chat tab. Close,
  purge, retry and reload read it instead of re-deriving it from a
  worktree id two hosts can share; an owner that cannot be named refuses.
- Cancellation tombstones record their host: only that host's
  authoritative inventory retires one, restored cleanup closes it there,
  and a paired host's tombstone expires after 30 days if it never answers.
- A paired server's frame settles launches it published, as the local
  inventory already does for this machine.

* fix(native-chat): a paired server that declines a chat opens its terminal instead

createSupport only reads, so both of its non-answers are settled before
anything is created:
- A paired server that answers it cannot run the chat (a WSL repo, a
  Claude account mismatch, its own launch command override) closes the
  chat tab and opens the terminal the route would have chosen, with a
  notice saying why. This machine's own decline stays a failed chat.
- A host that could not be asked closes the chat tab and leaves one
  failure toast, instead of a lingering "could not confirm" chat.

* test(native-chat): a provisional chat carries its launch's host and hands pre-create failures on

* chore(native-chat): justify the two type assertions this change's lines touch

* test(native-chat): state why each staged test fixture is cast

* fix(native-chat): chats that already exist keep showing whatever the chat setting says

The structured chat setting decides only what new agents open as. With it
off, this machine's structured chats used to be hidden while the host,
which no longer reads the setting, still reported them to the workspace
activation gate, so a workspace holding only a chat opened empty. The
local chat mirror and its startup restore now run whatever the setting
says, the continue-after-restart offer follows the chats that exist, and
the setting's copy says it applies to new agents.

* fix(native-chat): the browser client keeps its host terminal on paired servers

A browser client whose own preferences turn structured chat on took the
structured route for every paired-server workspace, but its handshake
never says it reads structured sessions, so the server refused the chat
and the user got a failed chat tab where a host terminal used to open.
The route for a paired host now also asks what this client advertises to
it: the desktop's list does, the browser client's does not. Its handshake
list is now a named constant the route reads, so the two cannot drift.

The chat setting's copy now says it runs on paired Orca servers too;
WSL and SSH hosts still use terminal chat.

* fix(native-chat): a retried launch a paired server declines opens its terminal too

A launch restored after a reload settles only through its Retry, so a
declining paired server left a failed chat there while a first launch got
the server's terminal and a notice. The chat's Retry now hands the same
pre-create failures to the same replacement, carrying the prompt the
launch had staged.

* refactor(native-chat): a paired host's cancelled-chat record ends on its 30-day TTL

The paired census re-read a host's whole inventory after every
authoritative frame to retire tombstones, and a tombstone restored after
a reload needed a second such frame, so in practice it retired nothing.
A tombstone guards a random session id and is inert once stale; the chat
is already closed on its host whenever a frame shows it. The census, its
trigger in the mirror layer and its cleanup are removed; the owner-scoped
tombstones, close-on-sight, the TTL and publication marking from frames
stay.

* fix(native-chat): a chat's pane and status read from the host recorded on its tab

The chat pane and its sidebar status still derived the host from the
workspace id, which two hosts can share; a paired chat in a non-active
same-id workspace was read from this machine. Both now read the owner
stamped on the tab, as close, purge and publication already do.

* fix(native-chat): "Resume in chat" follows the terminal resume's host rule

Agent Session History offered "Resume in chat" for a conversation
recorded on this machine into a paired server's workspace, where its
transcript does not exist. A chat now resumes a conversation only on the
host that recorded it, as the terminal resume does, and that host is the
one asked whether it can resume history.

* fix(native-chat): the chat setting says older paired servers keep terminal chat

* test(native-chat): pin that a host advertises the client-chosen launch mode

* fix(native-chat): mirror this machine's chats only where it holds them

Round 1 ran the local chat mirror for everyone so existing chats show
whatever the setting says. That gave every desktop a permanent
session-tabs listener, which turns on the runtime's phone replication
paths, plus two full session-tab censuses at startup, and made the
browser client mirror its remote host a second time.

The runtime now says whether it holds structured chats: its structured
host is built only when saved chats were restored at startup or a client
created one here, and it announces the moment one is built. The mirror,
the startup restore and the continue-after-restart offer run only when
the setting launches chats or the host holds some, and never in the
browser client. A chat a paired client creates here with the setting off
still appears at once. The chat behaviour settings show wherever chats
exist, and the setting's copy says it picks what new agents open as. The
toggle-off teardown this made dead is removed.

* test(native-chat): route a paired-server launch over the capability lists both sides really advertise

* test(native-chat): record install listeners without a cast

* fix(native-chat): a paired server admits a chat before any of it exists here

The desktop opened a paired server's chat tab, launch record, queued
prompt and focus intent before asking the server, so a "no" needed a
replacement that undid and redid all of it, and every piece it missed
was a bug: the workspace deselected, the caller told "failed" while a
terminal ran its prompt, the caller's arguments and other queued prompts
lost, and a create whose reply was lost treated as never sent.

A paired launch now asks the server first and commits nothing until it
answers. Admitted opens the chat as before. Declined runs the caller's
own launch as the server's terminal, with the existing notice (a resume
fails instead, having no terminal equivalent). Unreachable opens nothing
and names the server in one toast. The new-tab launcher reports the
host's surface for paired workspaces, as it did before paired chats,
with the prompt delivery of whichever surface got the prompt. The
replacement and its error classes are gone, and the probe inside a
launch is back to its old meaning: a "no" is a failed chat with Retry,
and no answer leaves "Could not confirm" with Retry and the prompt kept,
here as on this machine.

* fix(native-chat): mirror this machine's chats only once it holds one, not once its host is built

Session history, resume preparation, terminal resume commands and replay-safe phone launches all
build the structured host for users who never had a chat, which turned on the chat mirror and the
structured-only settings rows until the next restart. The signal is now derived from the host's
records (or a records file still owed its import) and pushed when the first chat is restored or
created. A throwing listener no longer fails the install that fired it.

* fix(native-chat): a fork's reveal never seeds a terminal beside the surface the launcher opens

Forking into a paired-server workspace revealed it as if nothing would open there, so the reveal
created a blank host terminal beside the forked chat (and beside a forked agent terminal on main).
The launcher always opens the fork's surface itself, so the reveal now says so for every surface,
as the fix-checks launch already does.

* fix(native-chat): a declined direct launch keeps the caller's CLI args; an unreachable resume toasts once

When a paired server declines a "Fix checks" chat in a new workspace, the terminal that opens
instead now carries the recipe's saved CLI arguments, launch platform and launch source, as the
terminal route did. "Resume in chat" to a server that cannot be reached showed the admission's
"Could not reach" toast and the vault's generic one; the admission marks its failure notified and
the vault adds nothing.

* fix(native-chat): a declined background create opens its terminal without switching workspaces

Since stablyai#23974 a worktree create the user moved away from must not pull them onto the new
workspace. When a paired server declined that create's chat, the fallback terminal opened as a new
agent tab, whose host create selects the workspace. The create now opens its own agent terminal the
way main's background branch does: in place from the request's startup plan (so its CLI args carry),
without selecting the workspace. A create the user is still watching keeps the new-tab fallback.

* test(native-chat): name the launch's host in main's new outbox fence test

Main's new staging-failure test calls settleStructuredAgentLaunchPrompt without the target this PR
made required; it is a local launch, as in the sibling tests.

* fix(native-chat): a paired server's new chat shows no model until the server reports the one it started

A chat on a paired server starts with the server's saved model and options, but the picker showed
this desktop's saved selection (or the catalog default) until the server reported a model, and a
pick made in that window was remembered on the server under that guessed model. A paired launch
now carries no desktop seed, and until the server reports its model the picker names no model and
takes no picks. Local chats are unchanged.

* test(native-chat): seed the paired repo without a cast

The repo literal already satisfies Repo, so the changed-lines cast gate has nothing to excuse.

* feat(native-chat): createSupport reports the saved selection a new chat on this host starts with

A chat on a paired server starts with the server's saved model and options, which the desktop could
not read, so its picker showed a guess. createSupport's answer, which the desktop already waits for
before a paired launch, now also carries that seed as a new optional field (older clients ignore it).
Create and createSupport read it through one resolver so they cannot drift.

* fix(native-chat): a paired server's new chat shows the selection the server will start it with

The paired server now names its saved model and options in the admission answer the desktop
already waits for. That seed goes into the launch intent and its persisted record, so the picker
shows the server's model at once, stays pickable like a local chat, and remembers picks on the
server under that model; a reload shows the same. The locked picker remains only for a server too
old to name a seed.

Also moves host admission and launch-outcome tracking into their own modules: the latest main
merge left structured-agent-session-launch.ts over the max-lines limit.

* test(native-chat): expect the launch intent's new seed argument in exact-call assertions

* refactor(protocol): move the Electron remote client capability list into its own module

Merging main left protocol-version.ts one line over the max-lines limit on this branch. The list of
capabilities the desktop advertises to a paired host moves, unchanged, into
electron-remote-runtime-client-capabilities.ts, the module the next PR in the stack already uses
for it; importers point there.

* fix(native-chat): a paired chat with no saved server model is pickable; Retry shows the server's current seed

A server whose user never saved a chat model sends no seed, and the desktop showed a locked,
model-only picker for it, although that is the common case: no server that can admit a paired chat
predates the seed field. Such a chat now behaves like a local chat with no saved model: the CLI
default, pickable. The lock and its snapshot helper are gone.

Retry kept the first admission's seed while the create probe, which already runs on every attempt,
reported the server's current one and dropped it. The probe's seed now replaces a paired launch's
seed and the picker's, so a retried chat shows what its create will run.

* test(cross-version): stub the launch seed resolver createSupport now reads

* test(protocol): pin the desktop capability divergence against what a paired server receives

Every paired transport sends the shared remote base plus the Electron list, so the
divergence test now compares that union with the renderer's local list instead of
the declared Electron list. A capability added only to the shared base can no
longer slip past it. The two base-only capabilities it surfaced are recorded:
skills.install-result.v2 has no local caller; the authoritative-inventory label is
read by the local tabs sync but dropped by main, and is marked unsettled.

The turn-item and both background-task-stop capabilities were already sent through
the shared base, so the Electron list no longer repeats them. The wire set is
unchanged; this PR's real change on the wire is structured.v1, the Claude
structured capability and the client launch-mode capability.

* fix(native-chat): the desktop tells its own host it picks each launch mode, so retrying an existing chat works with the setting off

* docs(native-chat): name the real exit for the released-phone createSupport rule

* fix(native-chat): the route reads the capabilities a paired host actually receives

The renderer decided whether a paired host would admit a chat from the desktop's Electron list, but
every desktop transport sends that list plus the shared remote base. They agreed only because the
route's checks happened to sit in both. The route input is now built with the same
remoteRuntimeClientCapabilities the transports use (the browser client already sends its list as is),
and a test pins each against the real handshake.

* test(cross-version): a released client still gets the host-setting createSupport answer; a launch-mode client gets supported plus the seed

* test(native-chat): let main's child-records test resolve each chat's owner

Main's new test mocks worktree-runtime-owner with only the runtime environment id, but the status
projection in this PR also resolves each structured chat's owner from the worktree. The mock keeps
the module's real exports and overrides only what the test pins.

* fix(deps): take stablyai#24204's lockfile that the merge reverted

* test(native-chat): let the Codex child-approval e2e unit test resolve each chat's owner

Its worktree-runtime-owner mock exported only the runtime environment id, but this PR's status
projection also resolves each structured chat's owner from the worktree. The mock now keeps the
module's real exports and overrides only that id, as structured-child-records-switch does.

* test(native-chat): move the close-race launch cases into their own file

Merging main added launch tests on both sides and took structured-agent-session-launch.test.ts past
the 800-line limit. The three cases where a tab close races a launch move to
structured-agent-session-launch-close-race.test.ts, with the same setup the other split launch
suites copy.
Pass validated read/unread flags through the existing workspace metadata update.

Contributor attribution correction: the earlier Ctrl+M squash message placed its related link after the co-author footer, so GitHub did not recognize all contributors. Preserve that credit here for stablyai#24100 and its related contribution stablyai#24143 .

Related CLI link validation retained from stablyai#20036 .

Co-authored-by: Raz Shlomo <[email protected]>
Co-authored-by: Neil <[email protected]>
Co-authored-by: Zhichang Yu <[email protected]>
Co-authored-by: Ahmed Nagy <[email protected]>
Pass show/hide/inherit to the existing repository visibility update.

Related: stablyai#23025

Preserves CLI link validation from stablyai#20036 and read controls from stablyai#22714 .

Co-authored-by: Neil <[email protected]>
Co-authored-by: KAPUIST <[email protected]>
)

* perf(git): reuse queries and stop canceled catalog scans

* refactor(git): check relay filesystem error codes
Keep a ten-minute bound only for node-pty rebuilt on Windows ARM CI hosts; all other node-gyp calls retain five minutes. Cold setup in two completed ARM jobs left compilation less than a minute.
…ai#24998)

Redirect the managed Windows payload file into curl instead of starting
pipeline shells, register native Windows delivery coverage, and document
Jcode v0.89.0+ as the upstream launcher requirement for invisible hooks.

Negotiate Jcode history in both directions with mixed-version Orca hosts,
preserving supported search filters and old-client response compatibility.

Co-authored-by: czzczz <[email protected]>
Co-authored-by: JianJia2018 <[email protected]>
…i#24945)

* fix(git): preserve SSH arguments and guard background writes

* test(terminal): settle fish fixture startup readiness

* fix(git): preserve bare UNC SSH paths

* fix(git): unescape shell operators in Windows SSH paths

* test(runtime): settle removal writes before fixture cleanup

* test(git): skip optional OpenSSH probe when unavailable

* perf(git): skip equal-tip reads and bound relay discovery

* test(processes): ratchet the removed relay Git spawn

* test(shells): wait for initial zsh output before sending input

* Fix SSH review context and recover Git maintenance cleanup safely

* Keep relay Git compatibility fixtures outside shared client projects

* Fence superseded maintenance and preserve mixed-version session search

* test: model Git child termination and search catalogs

* test: retain catalog authority over history flags
Recognized dsb is a terminal agent without a launch config. Asking the
rest-signal table for that config rejected the idle wait. The idle lane
stays open for it, and the pane lookup only returns a launchable agent.
@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 96bbe99 to 833c521 Compare October 3, 2026 12:32
@innocarpe

Copy link
Copy Markdown
Owner Author

Sync update (833c521add)

Rebased onto current main after GitHub marked this pull request conflicting. Unresolved review threads: 0.

The replay keeps main's new launchable agents, including jcode and qoder-cn, and the extracted agent catalog. DeepSeek Build stays recognition-only. A manual dsb pane uses the open quiet lane, and a DeepSeek Build title stays outside launchable idle-title policy.

Main already combines the opencode and opencode2 icon branches, so the catalog line-limit commit was empty and git dropped it.

Local checks on this head: 12 test files, 454 tests passed. Oxlint on the resolved files reported 0 warnings and 0 errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recognize manually launched DeepSeek Build sessions in Orca