Skip to content

Commit 9c9e752

Browse files
committed
Revert change for --agent to @agent but still run base
1 parent bf96858 commit 9c9e752

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

npm-app/src/index.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -240,21 +240,13 @@ For all commands and options, run 'codebuff' and then type 'help'.
240240
)
241241
const initialInput = isCommand ? '' : filteredArgs.join(' ')
242242

243-
// Handle --agent flag by prefilling user input instead of directly invoking
244-
let finalInitialInput = initialInput
245-
if (options.agent && !initialInput) {
246-
finalInitialInput = `@${options.agent}`
247-
} else if (options.agent && initialInput) {
248-
finalInitialInput = `@${options.agent} ${initialInput}`
249-
}
250-
251243
codebuff({
252-
initialInput: finalInitialInput,
244+
initialInput,
253245
git,
254246
costMode,
255247
runInitFlow: options.init,
256248
model: options.model,
257-
agent: undefined, // Don't pass agent to CLI - use prefilled input instead
249+
agent: options.agent,
258250
params: parsedAgentParams,
259251
print: options.print,
260252
cwd: options.cwd,

0 commit comments

Comments
 (0)