File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -34,15 +34,15 @@ export async function terminalKillTool(
3434 }
3535
3636 try {
37- const parsedId = parseInt ( terminalId , 10 )
38- if ( isNaN ( parsedId ) ) {
39- task . consecutiveMistakeCount ++
40- task . recordToolError ( "terminal_ctrl " )
41- pushToolResult ( formatResponse . toolError ( `Invalid terminal_id "${ terminalId } ". Must be a number.` ) )
42- return
43- }
37+ const parsedId = parseInt ( terminalId )
38+ if ( isNaN ( parsedId ) ) {
39+ task . consecutiveMistakeCount ++
40+ task . recordToolError ( "terminal_kill " )
41+ pushToolResult ( formatResponse . toolError ( `Invalid terminal_id "${ terminalId } ". Must be a number.` ) )
42+ return
43+ }
4444
45- const result = await killTerminalProcess ( parsedId )
45+ const result = await killTerminalProcess ( parsedId )
4646 pushToolResult ( formatResponse . toolResult ( result ) )
4747 } catch ( error ) {
4848 await handleError ( "killing terminal process" , error )
You can’t perform that action at this time.
0 commit comments