Skip to content

Commit ad80e54

Browse files
committed
do not detect terminal commands for sdk
1 parent c9b57cc commit ad80e54

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/src/main-prompt.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ export const mainPrompt = async (
151151
mainAgentTemplate.spawnableAgents = updatedSubagents
152152
localAgentTemplates[agentType] = mainAgentTemplate
153153

154-
if (prompt && mainAgentTemplate.toolNames.includes('run_terminal_command')) {
154+
// TODO (fat sdk): remove this once we switch to sdk-only
155+
if (
156+
prompt &&
157+
mainAgentTemplate.toolNames.includes('run_terminal_command') &&
158+
!fingerprintId.startsWith('codebuff-sdk-')
159+
) {
155160
// Check if this is a direct terminal command
156161
const startTime = Date.now()
157162
const terminalCommand = await checkTerminalCommand({

0 commit comments

Comments
 (0)