Skip to content

fix(agents): recognize DeepSeek Build terminal sessions - #23485

Closed
innocarpe wants to merge 7 commits into
stablyai:mainfrom
innocarpe:fix/dsb-session-recognition
Closed

innocarpe wants to merge 7 commits into
stablyai:mainfrom
innocarpe:fix/dsb-session-recognition

Conversation

@innocarpe

@innocarpe innocarpe commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

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 #23484

This replaces the recognition portion of #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.

@coderabbitai

coderabbitai Bot commented Sep 27, 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

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: d91bd1f7-c211-4744-b19e-4d41b6bdd1e3

📥 Commits

Reviewing files that changed from the base of the PR and between deeb34c57feb126f2c368663c967868bffd3f061 and 93f4958f6b111c27fbb438eccacc95ecea933917.

📒 Files selected for processing (8)
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-status.ts
  • src/shared/agent-headless-command.ts
  • src/shared/agent-process-recognition.ts
  • src/shared/agent-title-core.ts
  • src/shared/agent-title-identity.ts
  • src/shared/agent-type-label.ts
  • src/shared/terminal-title-agent-type.ts

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


📝 Walkthrough

Walkthrough

The changes recognize DeepSeek Build processes and terminal titles as the dsb terminal agent. They add one-shot command classification and extend pane, tab, and runtime agent types to carry terminal identities. Renderer labels and icon fallbacks include DeepSeek Build. Native-chat paths and configured input encodings continue to accept only TUI agents. Tests cover process and title recognition, identity propagation, prompt submission, and session continuation.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 93f49

DeepSeek Build recognition preserves the checked identity and input-precedence behavior. No actionable merge-blocking risk is established.

Security Architecture Review

Security architecture risk: 🔵 Low · up to 93f49

Session recognition now reaches more places, but the new identity remains outside session launch controls. No new security failure was established; action gating and recovery when observations are incomplete remain only partly verified.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The directly evidenced exposure is terminal identity, presentation, and actions addressed to existing terminal handles. The inspected named-group map does not add a DSB recipient group; no cross-service or deployment change was evidenced.

Trust Boundaries and Controls

  • observed — A terminal title is lower-priority identity evidence than hooks, foreground process, or launch identity. Launch selection separately filters to launch-capable agents; sendability is enforced by a distinct runtime guard rather than the display identity alone.

Resilience and Maintainability Implications

  • observed — Foreground refreshes coalesce newer title observations, while an unavailable read does not overwrite cached identity. The latter limits confidence in identity recovery when inspection fails.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 41.49% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 94 functions across 86 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Issue #23484 coding requirements are met. Process recognition covers dsb, deepseek-build, deepseek-build-agent, and the npm dsb.js entrypoint. Title recognition uses the final ` - DeepSeek Bui…
Out of Scope Changes check ✅ Passed The current pull request stays within issue #23484. The changes add recognition-only identity types, process and title classifiers, identity propagation for existing tabs and rows, launch-capability g…
Title check ✅ Passed The title clearly and concisely describes the main change: recognition of DeepSeek Build terminal sessions.
Description check ✅ Passed The description is detailed and mostly complete. It covers the user impact, implementation scope, linked issue, testing, AI disclosure, review boundaries, compatibility considerations, and checklist s…

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: f65f2dad-aba6-4bd8-a983-f9fe48a27b8d

📥 Commits

Reviewing files that changed from the base of the PR and between 433986f and ab652bf2bb07aee99eba6562b5c33f5a13dded05.

📒 Files selected for processing (29)
  • src/renderer/src/components/dashboard/dashboard-worktree-launch-options.ts
  • src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.ts
  • src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.ts
  • src/renderer/src/components/tab-bar/tab-agent-launch-options.test.ts
  • src/renderer/src/lib/agent-catalog-links.test.ts
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-status.ts
  • src/renderer/src/lib/agent-tab-shortcuts.test.ts
  • src/renderer/src/lib/agent-tab-shortcuts.ts
  • src/shared/agent-headless-command.ts
  • src/shared/agent-kind.ts
  • src/shared/agent-process-recognition.test.ts
  • src/shared/agent-process-recognition.ts
  • src/shared/agent-title-identity.ts
  • src/shared/agent-type-label.ts
  • src/shared/dsb-headless-command.test.ts
  • src/shared/dsb-headless-command.ts
  • src/shared/dsb-terminal-title.test.ts
  • src/shared/dsb-terminal-title.ts
  • src/shared/keybindings-default-bindings.test.ts
  • src/shared/keybindings/definitions.ts
  • src/shared/skills-cli-agent-keys.ts
  • src/shared/telemetry-property-schemas.ts
  • src/shared/terminal-title-agent-type.ts
  • src/shared/tui-agent-config.ts
  • src/shared/tui-agent-display-names.ts
  • src/shared/tui-agent-selection.test.ts
  • src/shared/tui-agent-selection.ts
  • src/shared/tui-agent.ts

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

Comment thread src/shared/terminal-title-agent-type.ts Resolved

@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.

Important

Adding dsb to the shared TUI_AGENT_CONFIG breaks an existing mobile parity test, and the "not launchable" boundary is only enforced on the catalog, auto-pick, and shortcut paths. Details below.

Reviewed changes

  • Shared process recognition: dsb, deepseek-build, the native deepseek-build-agent child, and the npm dsb.js entrypoint now classify as dsb, with dsb run … filtered as a headless one-shot.
  • Title identity: isDeepSeekBuildTerminalTitle recognizes the product's final - DeepSeek Build segment and is wired into both title classifiers (agent-title-identity.ts, terminal-title-agent-type.ts) and both label→type maps.
  • Launch de-scoping: TAB_LAUNCH_TUI_AGENTS (all agents minus dsb) now drives keybinding definitions, tab shortcuts, and pickTuiAgent's explicit-preference branch.
  • Catalog labels: getAgentLabel/AgentIcon fall back to TUI_AGENT_DISPLAY_NAMES so dsb renders "DeepSeek Build" without a catalog entry.
  • Tests: new/updated vitest coverage for process recognition, title identity, agent rows, catalog label, shortcuts, and selection.

⚠️ Mobile catalog parity test now fails

mobile/src/tasks/mobile-agent-catalog.test.ts:11-13 asserts the mobile catalog covers every key of TUI_AGENT_CONFIG. Adding dsb to that record while TUI_AGENT_AUTO_PICK_ORDER/MOBILE_AGENT_CATALOG stay without it makes the two sets differ, so the assertion fails. Root pnpm test excludes mobile/** and the mobile workflow's PR path filter omits these files, so nothing in this PR's CI reports it — it will surface the next time the mobile suite runs.

Technical details
# Mobile catalog parity test now fails

## Affected sites
- `mobile/src/tasks/mobile-agent-catalog.test.ts:11-13` — `new Set(MOBILE_AGENT_CATALOG ids)` must equal `new Set(Object.keys(TUI_AGENT_CONFIG))`.
- `mobile/src/tasks/mobile-agent-catalog.ts:14` — `MOBILE_AGENT_CATALOG` maps `MOBILE_TUI_AGENT_AUTO_PICK_ORDER`, an alias of `TUI_AGENT_AUTO_PICK_ORDER` (`mobile/src/tasks/mobile-tui-agents.ts:13`), which has no `dsb` (`src/shared/tui-agent-selection.ts:7-47`).
- `src/shared/tui-agent-config.ts:338-343` — the new `dsb` entry adds a key `Object.keys(TUI_AGENT_CONFIG)` did not have.

## Required outcome
- Restore the invariant, or re-express it against the launchable set (`TAB_LAUNCH_TUI_AGENTS`) so `dsb` is intentionally exempt.

ℹ️ collectAgentTitleEvidence still can't identify a title-only DSB pane

resolveTerminalTitleAgentType works because it passes an uncoveredFallback, but collectAgentTitleEvidence — read directly by resolvePublishedPaneAgentIdentity — has no DSB support: its owner-suffix regex cannot capture the two-word DeepSeek Build, and its name tables have no entry. A title-only DSB pane (hand-started, no hook, unreadable foreground) therefore publishes no agentIdentity. If that surface is meant to be in scope, the - DeepSeek Build suffix needs registering there too.

Technical details
# `collectAgentTitleEvidence` cannot recognise ` - DeepSeek Build`

## Affected sites
- `src/shared/agent-title-evidence.ts:110` — `OWNER_SUFFIX_RE = /\s-\s+([A-Za-z][\w-]*)\s*$/` stops at `DeepSeek`; `NAME_TOKENS` (:61) and `DISPLAY_LABELS` (:93) have no DSB entry, so `collectAgentTitleEvidence` returns `{ agent: null, reason: 'no-evidence' }`.
- `src/shared/published-pane-agent-identity.ts:41` — reads `collectAgentTitleEvidence(args.title).agent` with no parser fallback; only production caller `src/main/runtime/orca-runtime-write-orchestration-pointer-pty.ts:100-107`.

## Required outcome
- Decide whether the runtime-published `agentIdentity` should identify a title-only DSB pane. If so, recognise the ` - DeepSeek Build` owner suffix in `collectAgentTitleEvidence`; the adapter fallback that makes `resolveTerminalTitleAgentType` work does not cover this consumer.

ℹ️ Nitpicks

  • src/shared/dsb-headless-command.test.ts:4 — the suite is described as "DeepSeek Build process recognition" but the file tests the headless one-shot classifier; a name matching the unit under test would read better.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment thread src/shared/terminal-title-agent-type.ts Resolved
Comment thread src/shared/tui-agent-display-names.ts Resolved
@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
Contributor 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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 51fdc693-a09a-498a-bf3e-40de20bae59f

📥 Commits

Reviewing files that changed from the base of the PR and between ab652bf2bb07aee99eba6562b5c33f5a13dded05 and 84eede8edf46f743c37ced95dd20b529c620348b.

📒 Files selected for processing (51)
  • src/main/runtime/orca-runtime-write-orchestration-pointer-pty.ts
  • src/main/runtime/runtime-terminal-state-records.ts
  • src/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.ts
  • src/renderer/src/components/tab-bar/TerminalTabLeadingIcon.tsx
  • src/renderer/src/components/tab-bar/native-chat-tab-agent-evidence.test.ts
  • src/renderer/src/components/tab-bar/native-chat-tab-agent-evidence.ts
  • src/renderer/src/components/tab-bar/open-tab-search.ts
  • src/renderer/src/components/terminal-pane/command-code-output-ownership.ts
  • src/renderer/src/components/terminal-pane/native-chat-leaf-title-agent.test.ts
  • src/renderer/src/components/terminal-pane/native-chat-leaf-title-agent.ts
  • src/renderer/src/components/terminal-pane/pane-foreground-agent-tracker.ts
  • src/renderer/src/components/terminal-pane/pty-connection/command-inferred-pane-agent.ts
  • src/renderer/src/components/terminal-pane/pty-connection/pane-agent-identity.ts
  • src/renderer/src/components/terminal-pane/terminal-agent-session-continuation.test.ts
  • src/renderer/src/lib/agent-catalog-links.test.ts
  • src/renderer/src/lib/agent-catalog.tsx
  • src/renderer/src/lib/agent-status.ts
  • src/renderer/src/lib/open-tab-occupant-agent.test.ts
  • src/renderer/src/lib/open-tab-occupant-agent.ts
  • src/renderer/src/lib/pane-agent-evidence.ts
  • src/renderer/src/lib/tab-agent-from-signals.ts
  • src/renderer/src/lib/tab-agent-status-index.test.ts
  • src/renderer/src/lib/tab-agent-status-index.ts
  • src/renderer/src/lib/tab-agent.test.ts
  • src/renderer/src/lib/tab-agent.ts
  • src/renderer/src/lib/use-tab-agent-observed-signal-dispatch.test.tsx
  • src/renderer/src/lib/use-tab-agent-opencode-native-title.test.ts
  • src/renderer/src/lib/use-tab-agent-process-signals.test.ts
  • src/renderer/src/lib/use-tab-agent-retained-identity.test.ts
  • src/renderer/src/lib/use-tab-agent-sleeping-session.test.ts
  • src/renderer/src/lib/use-tab-agent.test.ts
  • src/renderer/src/lib/use-tab-agent.ts
  • src/renderer/src/lib/workspace-tab-palette-results.ts
  • src/renderer/src/lib/workspace-tab-palette-search.ts
  • src/renderer/src/store/slices/pane-foreground-agent.ts
  • src/shared/agent-headless-command.ts
  • src/shared/agent-process-recognition.test.ts
  • src/shared/agent-process-recognition.ts
  • src/shared/agent-status-types.ts
  • src/shared/agent-title-core.ts
  • src/shared/agent-title-evidence.ts
  • src/shared/agent-title-identity.ts
  • src/shared/dsb-headless-command.test.ts
  • src/shared/dsb-terminal-title.test.ts
  • src/shared/pane-agent-identity-adapter.ts
  • src/shared/pane-agent-identity-resolver.ts
  • src/shared/pane-agent-identity-title-corpus.test.ts
  • src/shared/published-pane-agent-identity.test.ts
  • src/shared/published-pane-agent-identity.ts
  • src/shared/terminal-agent.ts
  • src/shared/terminal-title-agent-type.ts

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

Comment thread src/shared/agent-title-evidence.ts Resolved

@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.

Caution

This PR introduces runtime TypeErrors. The new TerminalAgent type (TuiAgent | 'dsb') is now produced by process and title recognition, but three TUI_AGENT_CONFIG[...] lookups on that value were never narrowed, so a DeepSeek Build session throws on prompt delivery and on the Shift/Ctrl+Enter handlers. Exact sites and repro inline.

Reviewed changes

Since the prior pullfrog review (ab652bf2bb) the branch was rebased and reworked:

  • DSB moved out of the launchable set — the observation-only TerminalAgent (TuiAgent | 'dsb') replaces the earlier approach of adding dsb to TUI_AGENT_CONFIG; launch catalogs, auto-pick order, shortcuts, skills, and telemetry return to their base state, restoring the mobile catalog parity invariant.
  • Recognition preserved — dsb/deepseek-build/deepseek-build-agent/the npm dsb.js shim classify as dsb, dsb run is filtered as a headless one-shot, and the DSB title check is hoisted above the free-text name ladder in both classifiers so the product suffix beats a task mention.
  • Title evidence registered — collectAnchoredNames anchors dsb from the product suffix, so a title-only DSB pane publishes agentIdentity.
  • TerminalAgent propagated through tabs, panes, tab search, icons, the foreground-agent store, and the runtime PTY record; launch-boundary consumers (native-chat-tab-agent-evidence, native-chat-leaf-title-agent, canContinueAgentSessionInNewSession) now gate with isTuiAgent.
  • Tests — added coverage for process/title recognition, title evidence, vendor-marker precedence, and the launch boundaries.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 84eede8 to 55918ee Compare September 28, 2026 01:11
@innocarpe

Copy link
Copy Markdown
Contributor 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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 498199ae-efcf-4a5b-9385-765ad8ce38f7

📥 Commits

Reviewing files that changed from the base of the PR and between 84eede8edf46f743c37ced95dd20b529c620348b and 55918ee3653e15b75b572da4e18719e10cd7e503.

📒 Files selected for processing (15)
  • src/main/runtime/agent-prompt-submission-verification.ts
  • src/main/runtime/dsb-terminal-runtime.test.ts
  • src/main/runtime/orca-runtime-resolve-authoritative-terminal-wait-permission.ts
  • src/main/runtime/orchestration/groups.test.ts
  • src/main/runtime/orchestration/structured-worker-group-addressing.ts
  • src/main/runtime/runtime-terminal-writer.ts
  • src/renderer/src/components/terminal-pane/terminal-ctrl-enter.test.ts
  • src/renderer/src/components/terminal-pane/terminal-ctrl-enter.ts
  • src/renderer/src/components/terminal-pane/terminal-windows-shift-enter.test.ts
  • src/renderer/src/components/terminal-pane/terminal-windows-shift-enter.ts
  • src/shared/agent-prompt-injection.test.ts
  • src/shared/agent-prompt-injection.ts
  • src/shared/agent-title-evidence.test.ts
  • src/shared/agent-title-evidence.ts
  • src/shared/runtime-terminal-contracts.ts

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

@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

Since the prior pullfrog review (84eede8edf), the branch added 55918ee365 ("guard recognition-only terminal capabilities"), which closes the four runtime TypeError paths raised there:

  • Shared prompt helpers narrowed — agentPromptTakesLeadLine and resolveAgentPromptSubmitDelayForAgent now gate their TUI_AGENT_CONFIG read with isTuiAgent, so a dsb foreground agent keeps the unidentified-agent lead-line, separate-Enter, and default-delay behavior instead of throwing.
  • Modified-Enter resolvers narrowed — terminal-windows-shift-enter.ts and terminal-ctrl-enter.ts guard both the foreground and title-derived agent with isTuiAgent, so a recognition-only DSB pane keeps the generic alt-enter encoding and acquires no CSI-u authority.
  • Reconfirmation path narrowed — pane-agent-identity.ts adds an isTuiAgent check before its windowsShiftEnterEncoding read.
  • Wire contract aligned with the publisher — RuntimeTerminalSummary.agentIdentity and the group-address recipient type now carry TerminalAgent, matching resolvePublishedPaneAgentIdentity's actual return.
  • Observation labels — agentTypeToIconAgent recognizes dsb, formatAgentTypeLabel maps it to "DeepSeek Build", and the DSB title anchor is suppressed whenever a vendor marker or OC-native envelope already owns the title.
  • Regression coverage — dsb-terminal-runtime.test.ts drives a manually started DSB PTY through listTerminals and sendTerminalAgentPrompt; new Ctrl/Shift-Enter, title-evidence, group-addressing, and session-continuation tests assert exact outcomes.

I re-ran the 14 focused suites (300 tests) and the node/web/CLI typechecks, all green, and confirmed the runtime regression reproduces the original pasteNeedsTypedRequest TypeError when the guard is removed.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@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
Contributor 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.

@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

Since the prior pullfrog review (55918ee365, approved), the branch was force-pushed onto a newer main and gained the tip commit deeb34c57f ("preserve pending agent input encoding"). The three base commits' patches are identical modulo rebase context, so the delta is the tip commit:

  • Pending-confirmation encoding held — resolveWindowsShiftEnterEncodingForPane now returns the foreground-resolved encoding when a pending routing confirmation's foreground agent differs from the trailing-title agent, so a stale title cannot upgrade the pane to CSI-u. A foreground-less pending confirmation still recovers the capability from the title.
  • DSH titles excluded from DSB — isDeepSeekBuildTerminalTitle now rejects titles carrying DeepSeek Harness's 🐋 marker, so a native DSH pane ending in - DeepSeek Build resolves to dsh.
  • DSB npm shim entrypoint — registered @innocarpe/deepseek-build in NODE_PACKAGE_SCRIPT_ENTRYPOINTS so a node …/dsb.js shim resolves to dsb.
  • Idle-title policy guard — nameOnlyIdleNeedsCorroboration narrows with isTuiAgent, keeping recognition-only dsb outside the managed idle-title lanes instead of evaluating it against TuiAgent-keyed tables.
  • Tests — new cases for the pending-confirmation guard, DSH-vs-DSB title separation, and the npm shim; dsb-terminal-runtime.test.ts passes inputKind: 'driving'.

I re-ran the affected suites (dsb-terminal-title, tui-idle-evidence, terminal-windows-shift-enter — 64 tests) green, and confirmed every prior pullfrog review thread is resolved. The type widening and isTuiAgent gating from the earlier reviewed revision are unchanged.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@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
Contributor 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.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
gh api repos/stablyai/orca/pulls/23485 --jq '{head: .head.sha, base: .base.sha, state: .state, mergeable: .mergeable, mergeable_state: .mergeable_state}'
gh api --paginate repos/stablyai/orca/pulls/23485/files -q '.[].filename' | tee /tmp/pr23485-files.txt
printf 'total='; wc -l < /tmp/pr23485-files.txt
printf 'workflow_or_config='; grep -E '^(\.github/|config/)' /tmp/pr23485-files.txt || true
printf 'non_src='; grep -Ev '^src/' /tmp/pr23485-files.txt || true
gh api repos/stablyai/orca/contents/AGENTS.md?ref=93f4958f6b111c27fbb438eccacc95ecea933917 --jq '.content' | base64 -d | grep -in -C 3 -E 'comment|docstring' || true
gh api repos/stablyai/orca/pulls/23485/files --paginate --jq '.[] | select(.filename == "src/renderer/src/lib/agent-catalog.tsx") | .patch' | tail -65

Length of output: 1368


🏁 Script executed:

#!/bin/bash
set -euo pipefail
python - <<'PY'
import subprocess, json, base64
def api(path, paginate=False):
    cmd = ['gh', 'api']
    if paginate: cmd += ['--paginate', '--slurp']
    cmd += [path]
    return json.loads(subprocess.check_output(cmd, text=True))
pages = api('repos/stablyai/orca/pulls/23485/files?per_page=100', True)
files = [f for page in pages for f in page]
names = [f['filename'] for f in files]
print('total:', len(names))
print('non_src:', [n for n in names if not n.startswith('src/')])
print('workflow_or_config:', [n for n in names if n.startswith(('.github/', 'config/'))])
print('catalog_patch:')
for f in files:
    if f['filename'] == 'src/renderer/src/lib/agent-catalog.tsx':
        print(f.get('patch','<not provided>'))
guide = api('repos/stablyai/orca/contents/AGENTS.md?ref=93f4958f6b111c27fbb438eccacc95ecea933917')
text = base64.b64decode(guide['content']).decode()
lines = text.splitlines()
for i, line in enumerate(lines):
    if 'comment' in line.lower() or 'docstring' in line.lower():
        print('AGENTS.md', i + 1, ':', ' | '.join(lines[max(0,i-1):min(len(lines), i+2)]))
PY

Length of output: 3383


@innocarpe, the completed GitHub API check confirms 72 changed files on PR #23485. All 72 are under src/. None are under .github/ or config/. I withdraw the scope warning about workflow and cache files; that warning came from the old-head/new-head comparison, not the PR comparison.

The catalog patch also confirms that opencode and opencode2 share one OpenCodeIcon branch. The check does not establish a current-head node/web/CLI typecheck pass, so that verification remains pending.


🧠 Learnings used
Learnt from: innocarpe
Repo: stablyai/orca

Timestamp: 2026-09-28T01:23:32.163Z
Learning: In `src/shared/agent-title-evidence.ts`, DeepSeek Build title evidence may add a `dsb` anchor only when no extracted title segment contains an explicit vendor marker or native OpenCode title. This preserves Claude, Gemini, and OpenCode identity in wrapped titles.

You are interacting with an AI system.

@coderabbitai

coderabbitai Bot commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

@innocarpe, thanks for the update. The PR Files changed check confirmed 72 files under src/ and no .github/ or config/ files. The earlier scope warning used an old-head/new-head comparison that included upstream changes. I withdraw that warning.

I also correct my previous reply: you report that the complete node/web/CLI typecheck passed on 93f4958f6b. My earlier statement that it remained pending was outdated. I have not independently verified that run.

Your explanation of the AGENTS.md comment rule supports leaving mechanical type changes without boilerplate docstrings. Maintainer review remains pending.


✏️ Learnings added
Learnt from: innocarpe
URL: https://github.com/stablyai/orca/pull/23485

Timestamp: 2026-09-28T10:44:31.619Z
Learning: For `stablyai/orca`, check PR scope against the PR Files changed view or changed-file API. An old-head/new-head comparison across a rebase can include upstream changes that are not part of the PR diff.

Learnt from: innocarpe
URL: https://github.com/stablyai/orca/pull/23485

Timestamp: 2026-09-28T10:44:31.619Z
Learning: In `stablyai/orca`, `AGENTS.md` calls for concise comments on non-obvious code that explain why. Do not add boilerplate docstrings solely to meet a numerical coverage target for mechanical type propagation.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

@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
Contributor 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.

@greptile-apps

greptile-apps Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds support for recognizing DeepSeek Build as a terminal agent type.

The PR appears safe to merge based on the reviewed changes.

Summary

The PR recognizes manually started DeepSeek Build sessions from process and terminal-title evidence, carries that identity through terminal surfaces, and keeps DSB outside launch configuration. Changes since the previous review also guard recognition-only identity in input and idle-wait paths. All three previous findings are resolved.

Reviews (5) · Last reviewed commit: "fix(agents): keep tui-idle from throwing..."

Comment thread src/shared/dsb-terminal-title.ts Resolved
Comment thread src/shared/dsb-headless-command.ts Resolved
Comment thread src/shared/terminal-title-agent-type.ts Resolved

@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

Since the prior pullfrog review (deeb34c57f, approved) the branch was rebased onto a newer main and gained two behavior-preserving commits:

  • Catalog-limit collapse — agent-catalog.tsx merges the identical opencode/opencode2 icon branches to stay under the unchanged 400-line limit.
  • Checked-type narrowing — agentTypeToIconAgent now returns TerminalAgent | null, special-cases dsb, and gates TuiAgent keys with isTuiAgent instead of an unchecked as TerminalAgent cast.
  • Signal resolvers — tab-agent-from-signals.ts and use-tab-agent.ts route the compatible-agent result through agentTypeToIconAgent instead of asserting TerminalAgent, and agentKindForAgentType narrows with isTuiAgent so dsb still maps to other.
  • Process recognition — agent-process-recognition.ts narrows TUI_AGENT_CONFIG entries with isTuiAgent instead of an entry-tuple cast, and isRecognizedAgentType drops its as TerminalAgent.
  • Tests — an exact agentTypeToIconAgent('dsb') === 'dsb' case, plus a SAFETY: rationale on the existing dsb-terminal-runtime store cast.

I traced each replacement: the icon table is a complete Record<TerminalAgent, true>, the resolver inputs are all TerminalAgent, and tuiAgentToAgentKind('dsb') already returned 'other', so the new isTuiAgent gate changes nothing at runtime. All prior review threads are resolved.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@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
Contributor 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.

@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

Since the prior pullfrog review (a85f6fb706, approved), the branch gained 50695ab759 ("distinguish DSB frames and preloaded one-shot commands"), a focused follow-up to the greptile P1 finding that a braille-prefixed Claude task ending in - DeepSeek Build was claimed as DSB:

  • DSB spinner frames disambiguated — isDeepSeekBuildTerminalTitle now requires the native spinner - activity - DeepSeek Build frame for any spinner-bearing title and rejects native vendor prefixes per wrapper segment, leaving ⠋ Review Codex integration - DeepSeek Build to Claude.
  • Preloaded one-shot filtering — isDsbHeadlessOneShotCommand resolves the interpreter entrypoint through the shared findInterpreterEntrypointToken, so node -r … dsb.js run is filtered as a headless one-shot while dsb agent stays interactive.
  • Fixtures corrected — DSB working-title fixtures across the runtime, Ctrl/Shift+Enter, tab-occupant, published-identity, and title-evidence suites carry the real - separator, with new regressions for Claude braille and quarter-circle titles and for Node preload flags.
  • Classifier guard removed — both title classifiers drop the now-redundant hasGeminiStatusGlyph guard, since the DSB matcher distinguishes native prefixes from glyphs inside task text.

I re-ran the six focused suites (dsb-terminal-title, dsb-headless-command, agent-process-recognition, agent-title-evidence, pane-agent-identity-title-corpus, published-pane-agent-identity — 235 tests) green, and traced every new guard to its call sites.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@innocarpe
innocarpe force-pushed the fix/dsb-session-recognition branch from 50695ab to f6831d9 Compare September 29, 2026 09:32
@innocarpe

Copy link
Copy Markdown
Contributor Author

Resolved the new main conflict and published f6831d92fe on both PRs, based on 31012aeb09. The merge keeps upstream's child-work view import while retaining the observation-only TerminalAgent type. Launcher/config/selection/shortcut/telemetry/skill boundaries remain equal to main; no DSB launch capability is added.

Eight focused root suites / 312 tests, two mobile icon/catalog suites / four tests, all seven changed-code quality scans across 73 files, and complete canonical Node → web → CLI TypeScript checks pass on the published head. All inline review threads are resolved. Actual Linux/Windows/SSH devices and the full build remain unperformed; general upstream CI still awaits maintainer execution approval. Both descriptions now reflect these current-head checks.

@pullfrog

pullfrog Bot commented Sep 29, 2026

Copy link
Copy Markdown
Contributor

Run failed. View the logs →

Pullfrog  | Rerun failed job ➔ | View workflow run | via Pullfrog | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

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

Copy link
Copy Markdown
Contributor 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:

@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.

Important

A manually started DeepSeek Build pane throws TypeError on the existing tui-idle wait path: one TuiAgent-keyed lookup on the widened foreground identity was missed while its title-derived sibling was guarded. Details on the guard this PR did add.

Reviewed changes

Since the prior pullfrog review (50695ab759, approved) the branch was rebased onto the current main (a76a0bc) and ported its recognition-only widening onto the surfaces main added in the interim:

  • New upstream surfaces widened — PaneForegroundAgentEntry.agent, RuntimePtyWorktreeRecord.foregroundAgent, and the foreground tracker now carry TerminalAgent on the agentEvidence / process-exit code main introduced.
  • New checked-type guards — tui-idle-evidence.ts narrows the title-derived identity with isTuiAgent, and pty-connection/pane-agent-identity.ts gates its windowsShiftEnterEncoding read the same way.
  • Sidebar title-derived labels — the new title-derived-pane-agent-identity.ts maps 'DeepSeek Build' to dsb, so a manually started DSB pane gets a sidebar row.
  • Shared DSB content unchanged — every DSB-owned file (dsb-*, agent-title-*, terminal-agent.ts, process recognition, pane-identity contracts) is byte-identical to the prior reviewed revision.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment thread src/main/runtime/tui-idle-evidence.ts Resolved
@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
Contributor 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.

@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

Since the prior pullfrog review (6facbeeab1, which raised an important tui-idle finding), the branch was rebased onto the current main (0ad77ea) and gained one fix commit:

  • tui-idle no longer throws on a manual DSB pane — quietForegroundLane becomes quietForegroundLaneForTerminalAgent(agent: TerminalAgent) and narrows with isTuiAgent, so a recognition-only dsb takes the open lane instead of getTuiAgentRestSignal('dsb') reaching TUI_AGENT_CONFIG['dsb']. getPaneAgentForTuiIdle also narrows its launchAgent ?? foregroundAgent result with isTuiAgent, so the idle lane never receives a non-launchable agent.
  • Rebase port — only runtime-terminal-state-records.ts picked up new upstream content (main's unrepaintedReflowGrid field); every other PR file is byte-identical to the prior reviewed revision, and no new upstream TuiAgent-keyed surface needed the widening re-ported.
  • New regression test — quietForegroundLaneForTerminalAgent('dsb') === 'open' and 'codex' === 'closed'; tui-idle-evidence.test.ts passes (71 tests).

I fetched the prior head and confirmed the two heads differ in only 4 of the 74 PR files (the three tui-idle files plus the upstream field), so the previously reviewed DSB recognition, title evidence, and type propagation are unchanged.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@innocarpe

Copy link
Copy Markdown
Contributor Author

Sync update (96bbe99344)

Sync update (96bbe99344)

Rebased the recognition-only DeepSeek Build commits onto current main. No review threads were open. The tui-idle rewrite conflict keeps both recognition rules: a DeepSeek Build title stays outside launchable idle-title policy, and a manual dsb pane does not look up a missing launch config. Targeted vitest was 11 files and 442 tests, and oxlint on the two idle files reported 0 warnings.

@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
Contributor 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.

@nwparker

nwparker commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #24704, which merged with Wooseong Kim’s co-author credit. It covers #23484’s process and title recognition, including exclusion of one-shot dsb run. Correction: #23484 explicitly treats launch-menu entries, automatic selection, prompt delivery, idle waiting, hooks and resume separately.

@nwparker nwparker closed this Oct 4, 2026
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.

Recognize manually launched DeepSeek Build sessions in Orca

2 participants