Repository navigation
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 7932dbd4d5ee3bb7ce2c35558f9374539277ad75 and a0ef6bf32ae6ed3b52908b3543521513e3a39e69. 📒 Files selected for processing (13)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds DeepSeek Build as a TUI agent. It adds agent and process recognition, launch configuration, one-shot command detection, and terminal title classification. It also adds composer readiness detection and DSB-specific idle evaluation. The renderer catalog, locale labels, iconable-agent mapping, and supported-agent documentation now include DeepSeek Build. Priority: ⬇️ Low Merge Risk: 🟡 Moderate · up to DeepSeek Build can remain in a waiting state after completing a turn. Preserve the event order for same-chunk title and status updates before merging. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Two completion paths may report a turn finished while it is still running, allowing subsequent automated actions to proceed out of order. The identified paths are scoped to a terminal; no cross-user access path was established. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description gives useful implementation and testing details, but it does not follow the required template. It omits the required ELI5, What Changed, Why, Linked Issue, Visual Proof, Review, Agent skill upstream boundary, Notes, and Checklist sections. It also states that resume support exists, while the PR objectives say resume support was later removed. Resolution Rewrite the description using all required template sections. Add the linked issue, provide visual proof or state N/A with a reason, complete the testing and checklist sections, and update the resume-support statement to match the final changeset. Full details: Docstring CoverageExplanation Docstring coverage is 32.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 25 functions across 36 files. (5 skipped: 5 unsupported.)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 9a2d5008-1931-4c99-99a8-4c3820a7954d
📥 Commits
Reviewing files that changed from the base of the PR and between 646e9a5 and f00dd63f9c02148b6ed025fb7972e7488630a698.
📒 Files selected for processing (33)
docs/site/content/docs/agents/supported.mdxsrc/main/runtime/dsb-terminal-readiness.tssrc/main/runtime/terminal-wait-detection.test.tssrc/main/runtime/terminal-wait-detection.tssrc/main/runtime/terminal-wait-name-only-idle.test.tssrc/main/runtime/tui-idle-evidence.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/i18n/locales/es.jsonsrc/renderer/src/i18n/locales/fr.jsonsrc/renderer/src/i18n/locales/ja.jsonsrc/renderer/src/i18n/locales/ko.jsonsrc/renderer/src/i18n/locales/zh.jsonsrc/renderer/src/lib/agent-catalog.tsxsrc/renderer/src/lib/agent-status.tssrc/renderer/src/runtime/agent-resume-host-authority-capability.test.tssrc/renderer/src/runtime/agent-resume-host-authority-capability.tssrc/shared/agent-headless-command.tssrc/shared/agent-kind.tssrc/shared/agent-process-recognition.test.tssrc/shared/agent-process-recognition.tssrc/shared/agent-session-resume.tssrc/shared/agent-type-label.tssrc/shared/dsb-headless-command.test.tssrc/shared/dsb-headless-command.tssrc/shared/protocol-version.tssrc/shared/skills-cli-agent-keys.tssrc/shared/telemetry-property-schemas.tssrc/shared/terminal-title-agent-type.tssrc/shared/tui-agent-config.tssrc/shared/tui-agent-display-names.tssrc/shared/tui-agent-permissions.tssrc/shared/tui-agent-selection.tssrc/shared/tui-agent.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.
There was a problem hiding this comment.
Important
Two integration gaps worth addressing before merge: a working DeepSeek Build title is still classified as Claude Code by the renderer's title classifier, and the new tui-idle lane trusts a first-party done with no age bound, which can settle a later turn's wait mid-turn.
Reviewed changes
- New agent plumbing —
dsbadded to theTuiAgentunion and every exhaustive map (config, display names, kind, resume, headless matcher, skills keys, process recognition, telemetry, i18n). All compile-time-checked maps are complete. - Readiness detection — new
dsb-terminal-readiness.tsfinds theDeepSeek Buildbanner plus a lone❯composer and the "Waiting for response…"/braille working title; wired intoterminal-wait-detection.tsand a dedicateddsbbranch inisTuiIdleSatisfied. - Launch/resume — launch config uses
stdin-after-startwith the reused grok composer-paste signal;dsb --resume <id>is gated byagent-session.dsb-resume.v1.
ℹ️ The readiness rules have no captured transcript in the repo
docs/reference/agent-pty-transcript-capture.md asks that terminal-painting readiness rules be written against a captured transcript, and grok/muse/zcode/antigravity each ship a trace-replay test for theirs. The dsb rules here, and the reuse of grok-composer-prompt for its ❯-after-alt-screen signal, are asserted only against hand-written strings, so a dsb release that changes the composer frame or spinner shape would fail silently. Committing the dsb 6.0.0 capture and adding a replay test would let those assumptions break loudly.
Technical details
# Commit the dsb readiness capture
## Affected sites
- `src/main/runtime/dsb-terminal-readiness.ts` — banner/`❯`/braille assumptions.
- `src/shared/tui-agent-config.ts:351` — `draftPasteReadySignal: 'grok-composer-prompt'` reuses grok's alt-screen anchor.
- Comparable precedent: `src/shared/draft-paste-ready-scanner-grok-trace-replay.test.ts`, `src/main/runtime/muse-readiness-transcript.test.ts`, `src/main/runtime/zcode-readiness-transcript.test.ts`, `src/main/runtime/antigravity-readiness-transcripts.test.ts`.
## Required outcome
- A committed dsb capture (scrubbed per the capture doc) plus a replay test that fails if the composer glyph stops appearing after `\x1b[?1049h` or the working title shape changes.ℹ️ dsb resume is wired but has no provider-session producer
dsb was added to RESUMABLE_TUI_AGENTS and getAgentResumeArgv, but providerSession is populated only from hooks (extractAgentProviderSession switches over AgentHookSource, and dsb is not in AGENT_HOOK_SOURCES); OSC 9999 carries no session id. With hooks explicitly out of scope in this PR, dsb --resume is currently unreachable. Is that intended groundwork, or should the capability land with the hook? The enum widening itself is safely gated by agent-session.dsb-resume.v1.
Technical details
# Resume path reachability
## Affected sites
- `src/shared/agent-session-resume.ts:23,320` — `dsb` in `RESUMABLE_TUI_AGENTS` and `getAgentResumeArgv`.
- `src/shared/agent-hook-relay.ts:37-59` — `AGENT_HOOK_SOURCES` has no `dsb`.
- `src/shared/agent-session-resume.ts:185-259` — `extractAgentProviderSession` is the only producer of `providerSession`.
## Open questions for the human
- Is `dsb` resume intended to ship ahead of its hook, or should the capability + enum entry wait?ℹ️ Nitpicks
isDsbRestingTitle(src/main/runtime/dsb-terminal-readiness.ts:6) is exported but has no callers anywhere, including tests — dead code.isDsbWorkingTitlere-implements the braille code-point scan;containsBrailleSpinneris already exported fromterminal-title-agent-type.ts:26(andcontainsAgentSpinnerGlyphfromagent-title-core).
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
f00dd63 to
7932dbd
Compare
|
Addressed the review on 7932dbd4d5. The description's resume bullet is withdrawn by that commit. Title identity. DeepSeek Build matches only when the product name is the whole title or its own final tui-idle. The working-title veto reads both
Resume. Removed Left as-is:
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 287f585c-de80-42f0-9edc-d6bda772381d
📥 Commits
Reviewing files that changed from the base of the PR and between f00dd63f9c02148b6ed025fb7972e7488630a698 and 7932dbd4d5ee3bb7ce2c35558f9374539277ad75.
📒 Files selected for processing (15)
docs/site/content/docs/agents/supported.mdxsrc/main/runtime/dsb-terminal-readiness.tssrc/main/runtime/terminal-wait-name-only-idle.test.tssrc/main/runtime/tui-idle-evidence.test.tssrc/main/runtime/tui-idle-evidence.tssrc/renderer/src/components/sidebar/worktree-title-derived-agent-rows.test.tssrc/renderer/src/components/sidebar/worktree-title-derived-agent-rows.tssrc/renderer/src/i18n/locales/en.jsonsrc/shared/agent-process-recognition.test.tssrc/shared/agent-title-identity.tssrc/shared/dsb-headless-command.test.tssrc/shared/dsb-headless-command.tssrc/shared/dsb-terminal-title.test.tssrc/shared/dsb-terminal-title.tssrc/shared/terminal-title-agent-type.ts
🚧 Files skipped from review as they are similar to previous changes (1)
- docs/site/content/docs/agents/supported.mdx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review (f00dd63 → 7932dbd):
- Shared title classifier —
isDsbWorkingTitlemoved tosrc/shared/dsb-terminal-title.tsand now requires the product name as the final-segment; bothterminal-title-agent-type.tsandagent-title-identity.tsguardisClaudeAgent/getAgentLabel, so a working⠼ - Waiting for response… - DeepSeek Buildresolves todsbinstead ofClaude Code. - Idle detection hardened — the
tui-idledsb lane now vetoes when either the renderer or OSC title reads as working, and no longer lets a first-partydoneoverride a working title. - Sidebar mapping —
TITLE_AGENT_LABEL_TO_TYPEmapsDeepSeek Build→dsb, so the corrected label produces a typed row. - Resume removed —
dsbdropped fromRESUMABLE_TUI_AGENTS/getAgentResumeArgvand theagent-session.dsb-resume.v1capability, consistent with hooks being out of scope. - Headless matcher —
isDsbHeadlessOneShotCommandskips the npm shim script path (…/dsb.js), sonode …/dsb.js runis still recognized as a one-shot.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
7932dbd to
a0ef6bf
Compare
|
Closed the two remaining review points on a0ef6bf32a. Retained banner. Lagging title. No follow-up issue. A Tests: |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
Delta since the prior pullfrog review (7932dbd → a0ef6bf):
- Dedicated dsb body readiness —
isDsbReadyPromptPreviewnow backs the dsb lane andfindDsbReadyPromptIndexis no longer part of the shared ready/dismissed-modal indexes, so a DeepSeek Build banner retained in scrollback can no longer settle another agent's shell. - Bounded working-title veto —
dsbWorkingTitleBlocksSettlereads both the renderer and OSC titles and excuses a lagging OSC working title only when a first-partydoneis newer thanlastOscTitleEpochMs; renderer titles carry no clock and always veto. - Title identity hardened —
isDsbWorkingTitlematches a braille-only segment or an activity word, and both title classifiers plus the sidebar label→type map now resolve a working dsb title todsbinstead of falling through to Claude. - Coverage — added unit and live-pipeline tests for the dsb lane, the shared-vs-dsb ready split, the lagging-title bounds, and process/headless/title recognition.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Recognize dsb 6, including the npm shim and deepseek-build-agent child. Paste the first prompt after the ❯ composer, and do not treat a turn titled "Waiting for response…" as idle. Resume with `dsb --resume <id>`. `dsb run` stays a one-shot and is not hosted as a session. Hooks and Source Control AI are left for a follow-up.
A working title on either channel vetoes tui-idle, including a stale done status, because the composer stays visible during a turn. Title identity matches DeepSeek Build's own final segment, so a Claude task that mentions it stays Claude. Node-wrapped `dsb run` is headless. Resume is not advertised yet. OSC 9999 carries state, agent type, model, and prompt, and no session id is captured. This supersedes the resume sentence in the previous commit.
The shared ready-prompt check no longer treats a DeepSeek Build banner plus ❯ as ready. That match runs only while the pane agent is still dsb. A done newer than the PTY OSC title epoch can settle a lagging working title. A later working title, or one without that clock, still vetoes.
a0ef6bf to
0017fe5
Compare
Sync update (
|

Summary
Add DeepSeek Build (
dsb6,@innocarpe/deepseek-build) as a launchable agent.dsb. The first prompt is pasted into the❯composer after the alt-screen switch.dsb runstays a one-shot and is not hosted as a session.dsb/deepseek-buildbinaries, thedeepseek-build-agentchild, and the npm shim under@innocarpe/deepseek-build.DeepSeek Build. A turn retitles tospinner - Waiting for response… - DeepSeek Buildand must not count astui-idle. OSC 9999{"state":"done","agentType":"deepseek-build"}settles a finished turn even if that spinner title lags.dsb --resume <id>, gated byagent-session.dsb-resume.v1.Captured from a local
dsb6.0.0 TUI. Hooks and Source Control AI are not in this change.Preserves
Other agents keep their launch, title, and idle rules. A shell prompt that is only
❯is not treated as DeepSeek Build. YOLO mode adds--dogfood, which is that CLI's trusted local profile.Tests
pnpm exec vitest run src/main/runtime/terminal-wait-detection.test.ts src/main/runtime/terminal-wait-name-only-idle.test.ts src/shared/agent-process-recognition.test.ts src/shared/dsb-headless-command.test.ts src/renderer/src/runtime/agent-resume-host-authority-capability.test.ts src/shared/agent-kind.test.ts