Skip to content

Commit 4dc3513

Browse files
committed
Remove fallback for cli prompt type in agentic cli invocation
1 parent 619d1d3 commit 4dc3513

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/editor/src/utils/agentic-cli-invocation/invoke-agentic-cli.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ export const invoke_agentic_cli = async (params: {
372372
>()
373373

374374
if (params.isolate_in_temp_dir) {
375-
const base_prefix = `cwc-cli-${params.cli_prompt_type || 'edit'}`
375+
const base_prefix = `cwc-cli-${params.cli_prompt_type}`
376376
let i = 1
377377
while (true) {
378378
temp_dir_path = path.join(os.tmpdir(), `${base_prefix}-${i}`)
@@ -596,7 +596,7 @@ export const invoke_agentic_cli = async (params: {
596596
})
597597

598598
if (execution_mode === 'interactive-terminal') {
599-
const prompt_type = params.cli_prompt_type || 'edit'
599+
const prompt_type = params.cli_prompt_type
600600
const base_args =
601601
prompt_type === 'edit'
602602
? agent_info.get_integrated_terminal_edit_args

0 commit comments

Comments
 (0)