Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/renderer/src/lib/tui-agent-startup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ describe('buildAgentStartupPlan', () => {
})
})

it('launches Devin first and injects the prompt after startup', () => {
it('launches Devin with the prompt on argv behind a -- separator', () => {
expect(
buildAgentStartupPlan({
agent: 'devin',
Expand All @@ -290,9 +290,10 @@ describe('buildAgentStartupPlan', () => {
})
).toEqual({
agent: 'devin',
launchCommand: "devin '--permission-mode' 'bypass' '--respect-workspace-trust' 'false'",
launchCommand:
"devin '--permission-mode' 'bypass' '--respect-workspace-trust' 'false' -- 'Trace the failing test'",
expectedProcess: 'devin',
followupPrompt: 'Trace the failing test',
followupPrompt: null,
launchConfig: {
agentCommand: "devin '--permission-mode' 'bypass' '--respect-workspace-trust' 'false'",
agentArgs: '--permission-mode bypass --respect-workspace-trust false',
Expand Down
8 changes: 3 additions & 5 deletions src/shared/tui-agent-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,9 @@ const TUI_AGENT_CONFIG_SOURCE: Record<TuiAgent, TuiAgentConfigSource> = {
draftPasteReadySignal: 'zcode-composer-prompt',
composerReadyCaptures: ['zcode-composer-ready']
},
devin: {
detectCmd: 'devin',
// Why: `devin -- <prompt>` auto-submits immediately (docs.devin.ai/cli), so start the REPL with no argv prompt.
promptInjectionMode: 'stdin-after-start'
},
// Why: stdin-after-start's follow-up wrote before Devin's input loop existed (#26302); `devin -- <prompt>` submits reliably.
// prettier-ignore
devin: { detectCmd: 'devin', promptInjectionMode: 'argv', argvPromptSeparator: '--' },
// prettier-ignore
jcode: { detectCmd: 'jcode', launchCmd: 'jcode', expectedProcess: 'jcode', promptInjectionMode: 'stdin-after-start' }
}
Expand Down
7 changes: 4 additions & 3 deletions src/shared/tui-agent-startup.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ describe('tui agent startup plans', () => {
})
})

it('launches Devin with stdin-after-start prompt delivery', () => {
it('launches Devin with the prompt on argv behind a -- separator', () => {
const plan = buildAgentStartupPlan({
agent: 'devin',
prompt: 'fix the tests',
Expand All @@ -774,9 +774,10 @@ describe('tui agent startup plans', () => {
})
expect(plan).toEqual({
agent: 'devin',
launchCommand: "devin '--permission-mode' 'bypass' '--respect-workspace-trust' 'false'",
launchCommand:
"devin '--permission-mode' 'bypass' '--respect-workspace-trust' 'false' -- 'fix the tests'",
expectedProcess: 'devin',
followupPrompt: 'fix the tests',
followupPrompt: null,
launchConfig: {
agentCommand: "devin '--permission-mode' 'bypass' '--respect-workspace-trust' 'false'",
agentArgs: '--permission-mode bypass --respect-workspace-trust false',
Expand Down
Loading