Skip to content

Recognize Build terminals and preserve Windows confirmation key routing - #24704

Merged
nwparker merged 14 commits into
stablyai:mainfrom
nwparker:nwparker/deepseek-build-observation-1002
Oct 4, 2026
Merged

nwparker merged 14 commits into
stablyai:mainfrom
nwparker:nwparker/deepseek-build-observation-1002

Conversation

@nwparker

@nwparker nwparker commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Orca recognizes a manually started dsb terminal as Build and shows its observed label and icon. On Windows, a stale agent title no longer switches keyboard handling away from the foreground agent while confirmation is pending. This covers #23484’s process and title recognition; launch-menu entries, automatic selection, prompt delivery, idle waiting, hooks and resume are separate features.

What Changed

  • Adds Build process/title recognition using captured terminal behavior.
  • Shares glyph extraction and reuses the existing signal resolver to keep terminal identity and observed state consistent.
  • Guards Windows confirmation routing against stale titles, preserving the appropriate Build or Pi key handling.
  • Resolves two fixture conflicts with fixed main 44b955b96c76c82e973f2ae2460204a6fccd9c4f, retaining the existing prompt registry, canonical runtime-host assertion and legacy restored-tab coverage. All existing assertions remain.

The delta against that fixed main spans 86 paths, including 82 code files. Build support is terminal observation only, with no launch-picker entry. There are no additional DSH source changes; main's #24945 history compatibility helper, TUI launch configuration and all four catalog split modules remain exact to the base. The catalog's 400-line guard and 397-line runtime split are preserved.

Why

The existing terminal observers already own process, title and signal decisions. Extending those readers keeps Build recognition and keyboard routing aligned without introducing a second classification path. Recorded terminal captures cover the observed behavior.

Linked Issue

Covers the recognition-only scope of #23484, which explicitly treats launch, prompt, hooks and resume separately. Continues @innocarpe's #23485, retaining Wooseong Kim's original co-author credit.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>

Visual Proof

Existing before/after PTY captures are preserved, including all 169 original captures and 11 protected assets. New rendered before/after proof is pending; no desktop demonstration is claimed.

Testing

  • Prior hosted snapshot completed 2026-10-04 01:47:40.734 UTC: 55 completed checks: 38 successful, 17 skipped, zero failed or pending. All five tracked Actions runs completed successfully.

  • Main CI run 37167983243 names source/workflow a621c781b87e2de3c1f369b60c0b4899d27709e1, with base 5df67eff3efd3582f1987f8cb7e4d2155dcc97b5 and candidate head 5d68b0f69e6da61711d51df8fb016880744de074. This is the reported workflow/source binding; checkout logs were not independently inspected. These results belong to the prior 5df/a621 composition, not the newly reviewed fixed 357 or 2b1 compositions.

  • Successful hosted jobs include typecheck, static analysis, all five Node 24 unit shards, relay integration, Linux/Windows packages, cross-version wire compatibility and four SSH Docker shards. The watcher-isolation and terminal-parking/readiness steps ran in shard 1/4; those selected steps were skipped in shards 2–4.

  • The 17 skipped checks remain unexecuted coverage: Git compatibility, real IME, real WSL terminal, Codex index-heal, mobile bundle, xterm patch, browser provider, shell contracts, Node 18 managed hooks, SSH browser route, localhost SSH terminal/hooks, general and changed-spec E2E, desktop template, Mobile tests on main, and Windows/Linux computer-use checks.

  • Prior independent source review of 5d68b0f69e6da61711d51df8fb016880744de074: SOURCE CLEAR, with 10 new checks passing. These cover queue/title interactions, Windows confirmation routing, launch-option boundaries and prompt ownership. One property check includes 64 variants; those variants are not 64 separate checks.

  • Separate fixed-base review is SOURCE CLEAR for 35758953f790a7820f14607aa2aa50b45615a21c plus the unchanged Build head. Six meaningful new source checks passed, covering journal admission and prompt ownership, strict Claude test opt-in, warning-prefixed account reports and launch-environment clearing. Their 60 bounded internal variants are not 60 additional tests. These source checks used 22 actual modules; they do not establish normal Vitest, native filesystem, provider or platform acceptance.

  • The fixed descendant 2b1acd0d0e686a5a59627920d62153a95ecf8fa7 is also SOURCE CLEAR with that Build head, producing deterministic combined tree 61bd114abd2c195060a564747a20eb5627266d2d. Its two-file account-removal delta aligns OpenCode/Devin directory spelling with existing account lookup while preserving exact metadata ownership and recovery safeguards. Its recovery tests were source-reviewed, not executed; no new account-removal runtime, compiler or lint pass is claimed.

  • The complete 32,353-path union contains 32,255 identical entries, 86 preserved Build entries and 12 incoming entries, with no merged or unexpected entries. Only two incoming files are new since fixed 357. All seven 357 changes and the 22 modules used by its six checks remain byte-exact in the 2b1 composition; those successful checks were not replayed. No corrective source change was required or made.

  • Prior local author coverage: 88 source-only cases passed in eight files. All three original web/node/CLI compiler projects passed on the resolved tree. Required PR-scope quality checks across 82 code files, RPC, locale, max-lines, formatting and normal installed commit hooks passed.

  • The local normal test command failed before collection: patched node-pty build artifacts were missing and the attempted rebuild was refused. The 88 source cases do not establish native test acceptance.

  • The broader local quality attempt retains two incoming mobile type findings, with react-test-renderer and its types missing from the installed graph. Those files remain unchanged; neither the narrower local PR-scope pass nor successful hosted checks rewrite that failed attempt.

  • Historical local author coverage remains 5,242 passes, 79 failures, 68 existing skips across 255 attempted files, plus three collection errors. Its earlier final native compiler entry gap remains failed. The 132 previous serializer cases and their inputs are preserved; they are separate from the new results.

  • Historical/local whole execution remains INCOMPLETE/FAILED, including native prerequisite, dependency-graph, Rust/PATH, tooling and execution-boundary failures. Prior hosted results are separate evidence; no new hosted pass or GitHub-published synthetic commit for the fixed 2b1 composition has been established. Actual authenticated Build CLI task/approval/completion/resume, native Build input, rendered UI, real WSL and native IME behavior remain unverified.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

Review

The Build head remains exactly 5d68b0f69e6da61711d51df8fb016880744de074, tree 9b574414d5f529979c3cdb7dc1ac3c946ec2b1b1. Independent source review clears its composition with fixed 357 and fixed 2b1, with no corrective source required. This PR merged at 2026-10-04 03:23:33 UTC as af13da5db7729d1f32352a894dd935dee8536016, with sole parent 2b1acd0d0e686a5a59627920d62153a95ecf8fa7 and tree 61bd114abd2c195060a564747a20eb5627266d2d, matching the independently reviewed combined source. Actual Git object readback confirms these values. This does not create a new hosted CI result for that composition. The earlier hosted snapshot remains complete for 5df/a621. Practical authenticated/native Build verification, account-removal runtime behavior and the 17 skipped checks remain coverage limitations. A later base requires a separate decision.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Hosted package, smoke, persistence and SSH results do not establish authenticated Build task behavior or a rendered Build user flow. Real WSL/native IME checks were skipped; paired/mobile and complete native platform acceptance remain unverified. Preserving incoming source does not establish acceptance of every incoming subsystem. The fixed 2b1 account-only delta is source-reviewed, not account-runtime green; the six new checks against fixed 357 do not replace native, authenticated or rendered acceptance. All prior failed local/native, graph, Rust and tooling observations remain failed.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@nwparker
nwparker marked this pull request as ready for review October 2, 2026 11:40
@pullfrog

pullfrog Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Pullfrog stalled

The agent stopped emitting events for 125s and was killed by the activity-timeout watchdog. The model produced no output at all before the stall — the request was sent but nothing came back. This is usually transient; re-running often succeeds.

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review
🧰 Additional context used
📚 Code guidelines (1)
AGENTS.md — auto-discovered

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0633b33e-48f2-4720-afa4-0c1e2d3380ee
📥 Commits

Reviewing files that changed from the base of the PR and between 3873323 and 5d68b0f.

📒 Files selected for processing (2)
  • src/main/claude/claude-child-work-evidence-retention.test.ts
  • src/renderer/src/components/native-chat/StructuredAgentSessionAttentionBridge.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.


📝 Walkthrough

Walkthrough

The change recognizes manually started DeepSeek Build sessions through process names, npm entrypoints, and terminal titles. It carries dsb through runtime and renderer identity types, labels, statuses, listings, and agent rows. TUI-only controls reject dsb where configured TUI agents are required. Tests cover command parsing, title classification, runtime identity, prompt submission, readiness behavior, and renderer behavior. Documentation and fixtures record release and evidence details.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 5d68b

DeepSeek Build recognition does not grant the TUI-specific hook or wait-permission paths. No concrete user-impacting regression is established; complete the normal integration checks before merging.

Architecture Summary

Architecture risk: 🔵 Low · up to 5d68b

The change affects 2 systems.

Changed systems: src, docs

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — src (service) was modified; 85 changed files map to changed impact.
  • observed — docs (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in docs/reference/deepseek-build-observation.md: Adds the product distinction, existing recognition scope and unregistered integration components, plus the checked v6.9.0 source commit and macOS release tarball hash.
  • observed — Modified behavior in docs/reference/deepseek-build-observation.md: Documents the npm shims and native child, CLI option forwarding behavior, release-backed PTY fixture limits, identity propagation and compatibility, and stated platform-coverage limits.
  • observed — Modified behavior in docs/reference/deepseek-build-observation.md: Documents rendered-proof isolation requirements, including nonce-bound PTY environment verification and test-only macOS login-shell bypass; records the predecessor PR’s scope and corrections.
  • observed — Modified behavior in docs/reference/deepseek-build-observation.md: Adds recognition and grammar distinctions for one-shot native options and their aliases/forms, Build title/status precedence over Gemini-like activity text, outer versus native separators, interactive run cases, option-value shielding, and attached prompt values beginning with hyphens. It also records the corresponding source, release-binary, and fixture checks and their stated limits.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 41.79% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 67 functions across 61 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main changes: recognizing Build terminals and preserving Windows confirmation key routing.
Description check ✅ Passed The description covers the required sections and explains the changes, rationale, testing status, and known limitations. It notes that new visual proof and fresh CI are pending. The linked issue is de…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run re-reviewed the delta since the prior head (f7fbead): commit 70b768e, a test-only follow-up that wires the already-captured Build welcome screen into the readiness census.

  • Registered dsb- in the census runtime recorder table as an observation-only (agent: null) recorder, so the Build capture replays on the agent-unknown pane only and does not establish TuiAgent readiness.
  • Added the transcript--dsb-6-9-0-folder@unknown.json baseline plus a coverage test asserting every dsb- capture replays solely as @unknown with a null agent.

I ran the affected tests locally: readiness-census.test.ts passes (5/5), and the dsb-6-9-0-folder transcript replay matches the new baseline. The new recorder cannot be shadowed by an earlier prefix (dsb- shares no prefix with the entries above it), and the coverage test genuinely fails if Build's identity is ever promoted to a TuiAgent. The catalog change is test-support only (readiness-census-* consumers), so there is no production behavioral surface in this commit.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run re-reviewed the delta since the prior head (70b768e): commit 561d958, a test-only change that binds the already-added dsb-6-9-0-folder capture to exact serializer checkpoints.

  • Added an exact failureSignatures assertion for dsb-6-9-0-folder at the default two seeds, pinning the two pre-existing row-1 bold-mismatch signatures produced under the jitter schedule.
  • Converted the following freebuff- baseline branch from a fresh if to an else if so the new Build checkpoint takes precedence; the freebuff- and pre-existing-count branches are otherwise unchanged.

The assertion is falsifiable (an exact toEqual over the new serializer's diff signatures) and I verified it passes: dsb-6-9-0-folder in src/main/daemon/serialize-grid-transcript-replay.test.ts passes (1 passed / 85 skipped). The dsb name shares no prefix with the freebuff-/hermes- branches, so there is no shadowing, and the universal expect(blocking).toEqual([]) I1/I3 gate still runs for the transcript. No production code changed in this commit.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

nwparker and others added 6 commits October 2, 2026 22:12
Merge the pinned current main into the accepted Build observation changes and condense the renderer snapshot ordering comment without changing executable code.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>
Preserve the accepted Build observation and fixed catalog seam while combining current Qoder CN, session context, locale and runtime changes. Keep both independent session-continuation test imports and all existing assertions.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>
Retain manual Build identity and transcript evidence while preserving the current catalog split, Jcode labels and host-owned status behavior.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>
Preserve manual dsb observation and accepted capture/serializer evidence while composing current provider, host, wire, and readiness behavior.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>
Verify the published chat keeps its canonical host, then omit the optional host in the legacy fixture before the existing collision and completion assertions.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run re-reviewed the delta since the prior pullfrog head (9f85a0f): two PR-authored commits plus three merges of main. No production recognition logic changed in the authored commits.

  • Condensed AgentIcon's getAgentLabel(agent) tail in agent-catalog.tsx to a single expression to keep the post-merge file within its line limit (behavior-preserving).
  • Merged three main revisions, resolving conflicts so every dsb matcher/branch survives while adopting main's Qoder CN, Jcode, catalog split, Aider, and ClaudePromptRegistry changes.
  • Adjusted StructuredAgentSessionAttentionBridge.test.tsx to assert the applied web-session snapshot publishes executionHostId: 'runtime:env-1', then strip it via makeUnifiedTab to seed the legacy host-less tab the existing collision/completion assertions exercise.

I verified the merge resolutions preserve the PR's behavior: dsb branches are present in terminal-title-agent-type.ts, agent-title-identity.ts, agent-title-status.ts, and agent-headless-command.ts, no conflict markers remain, and jcode/qoder-cn are valid TuiAgent members. The affected tests pass locally: StructuredAgentSessionAttentionBridge.test.tsx (15), claude-child-work-evidence-retention.test.ts (3), dsb-headless-command.test.ts (16), dsb-terminal-title.test.ts (28), dsb-native-one-shot-recognition.test.ts (44), agent-process-recognition.test.ts (48), and terminal-agent-session-continuation.test.ts (10).

The PR notes that fresh hosted CI on this head is still required before merge.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker nwparker changed the title fix(agents): observe manually started DeepSeek Build terminals Recognize Build terminals and preserve Windows confirmation key routing Oct 4, 2026
Retain the direct prompt-registry owner and checked legacy tab construction while preserving incoming fixture names and current main changes.

Co-authored-by: Wooseong Kim <innocarpe@gmail.com>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

This run re-reviewed the delta since the prior pullfrog head (3873323): a merge of fixed main (44b955b9) plus one conflict resolution.

  • Merged main (44b955b9), adopting its incoming changes (updater/window/mobile/orchestration work) while leaving every dsb recognition file untouched.
  • Resolved the sole textual conflict in StructuredAgentSessionAttentionBridge.test.tsx, adopting main's more descriptive "legacy published paired chat" title while keeping the branch's executionHostId destructure plus makeUnifiedTab construction (body unchanged from the prior approved revision).
  • Kept the branch's direct claude-prompt-registry import in claude-child-work-evidence-retention.test.ts; main routes the same class through the claude-structured-prompt-replies re-export, so both resolve to the identical ClaudePromptRegistry.

I verified the merge is clean: git show --cc --name-only surfaces only StructuredAgentSessionAttentionBridge.test.tsx as changed against both parents, no conflict markers remain, and no dsb matcher or fixture was dropped. The affected tests pass on the merged tree: StructuredAgentSessionAttentionBridge.test.tsx (15), claude-child-work-evidence-retention.test.ts (3), worktree-title-derived-agent-rows.test.ts, dsb-headless-command.test.ts (16), dsb-terminal-title.test.ts (28), dsb-native-one-shot-recognition.test.ts (44), agent-process-recognition.test.ts (48), tui-idle-evidence.test.ts (76), readiness-census.test.ts (6), and serialize-grid-transcript-replay.test.ts (96).

The PR notes that fresh hosted CI on this head is still required before merge.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

@nwparker
nwparker merged commit af13da5 into stablyai:main Oct 4, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant