Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

fix(cli): a fresh Devin 3000.11 pane reads idle: its footer's "available models" is no dialog, and its truecolor-grey placeholder is no draft

85cf6a6e79ddf85d9ffe3054fe53
diff --git a/cli/src/engines/kit/pane.spec.ts b/cli/src/engines/kit/pane.spec.ts
index 8773ec61f..542d60ed6 100644
--- a/cli/src/engines/kit/pane.spec.ts
+++ b/cli/src/engines/kit/pane.spec.ts
@@ -84,3 +84,27 @@ describe("Claude Code's composer on Windows", () => {
expect(read(claudeScreen('❯'))).toEqual({ pane: { idle: true, plan: false, dialog: false, draft: false }, hold: null })
})
})
+
+describe("Devin's composer, 3000.11", () => {
+ // Measured on devin 3000.11.228 (Linux, 2026-10-29): a fresh pane read as a dialog, from the footer's "available
+ // models", and as a draft, from a placeholder greyed in truecolor alone, so `show` said needs-input and the mailbox
+ // held every message to it.
+ const devinRule = '─'.repeat(50)
+ const devinScreen = (composer: string) => [' Devin CLI', ' v3000.11.228', ' ⏺ ~/work', devinRule, composer, devinRule,
+ 'SWE-2 High Press alt+m to switch between available models', ''].join('\n')
+ const placeholder = '\u001b[39m❭ \u001b[38;2;124;124;124mAsk Devin to build features, fix bugs, or work on your code\u001b[39m'
+ const devin = (capture: string) => ({ pane: inspectPane('devin', capture), hold: teamHold('devin', capture, inspectPane('devin', capture), null) })
+
+ it('reads a fresh pane, its placeholder greyed in truecolor and its footer naming the models, as idle', () => {
+ expect(devin(devinScreen(placeholder))).toEqual({ pane: { idle: true, plan: false, dialog: false, draft: false }, hold: null })
+ })
+
+ it('still reads text the person typed as a draft, and a list headed "Available models" as a dialog', () => {
+ expect(devin(devinScreen('\u001b[39m❭ fix the parser'))).toMatchObject({ pane: { idle: false, draft: true }, hold: 'team_waiting_draft' })
+ const typedBesideHint = '\u001b[39m❭ fix \u001b[38;2;124;124;124m(hint)\u001b[39m'
+ expect(devin(devinScreen(typedBesideHint)).pane.draft).toBe(true)
+ // Only "switch between available models", the footer's hint, is let go: the heading still reads as a dialog.
+ const listed = devinScreen(placeholder).replace(/SWE-2 High .*$/m, ' Available models')
+ expect(devin(listed)).toMatchObject({ pane: { dialog: true }, hold: 'team_waiting_user' })
+ })
+})
diff --git a/cli/src/engines/kit/pane.ts b/cli/src/engines/kit/pane.ts
index 7b4de8157..bc10073bb 100644
--- a/cli/src/engines/kit/pane.ts
+++ b/cli/src/engines/kit/pane.ts
@@ -254,7 +254,8 @@ export function inspectPane(engine: AgentEngine, capture: string, takeover: Take
let visible = marker >= 0 ? stripAnsi(prompt).slice(marker + 1).replace(/\u00a0/g, ' ').trim() : ''
const rawMarker = prompt.search(rawMarks)
const rawTail = rawMarker >= 0 ? prompt.slice(rawMarker + 1) : ''
- const placeholder = hasPlaceholderSgr(rawTail)
+ // Devin 3000.11 greys its placeholder in truecolor, with no dim or italic: all of it muted, it is the placeholder.
+ const placeholder = hasPlaceholderSgr(rawTail) || (engine === 'devin' && allVisibleTextIsMuted(rawTail))
if (placeholder || IDE_CONTEXT_CHIPS.test(visible)) visible = ''
const draft = visible.length > 0
return { idle: !!prompt && !dialog && !draft, plan, dialog, draft }
@@ -297,7 +298,7 @@ export function paneModal(engine: AgentEngine, capture: string, readTakeover: Ta
return DIALOG_UI.test(currentUi.replace(/Starting MCP servers?/gi, '')) ? 'menu' : null
}
-const DIALOG_UI = /Select Model(?: and Effort)?|Select Reasoning Level|Advanced Reasoning|Available models|Models matching|Edit Parameters|Type to filter.*Tab to edit|Esc to go back|Press enter to confirm|Do you want to proceed|Allow this action|permission required|Starting MCP servers?/i
+const DIALOG_UI = /Select Model(?: and Effort)?|Select Reasoning Level|Advanced Reasoning|(?<!between )Available models|Models matching|Edit Parameters|Type to filter.*Tab to edit|Esc to go back|Press enter to confirm|Do you want to proceed|Allow this action|permission required|Starting MCP servers?/i
/** The approval prompts among them. */
/**