Skip to content

Background terminal tool failed when "Evaluate this terminal output to determine if there were errors" request failed #286241

Description

@roblourens

Hit a confusing set of issues

  • The agent ran 'npm start' as a bg command
  • The app failed to launch and the command terminated
  • But I was stuck looking at a spinner on npm start for almost a full minute because the 4o-mini request to check the output was stuck and eventually returned a 502
  • There's nothing you can do about that, there is sometimes flakiness in requests to CAPI and we know this, but the tool result then just contained this message
Note: The tool simplified the command to ` npm start`, and that command is now running in terminal with ID=38d97634-aa73-496d-b4e1-776e714be3e1
 The command became idle with output:
Error occurred Error: Server error: 502
Image

Which is wrong for two reasons, because the command had terminated, and it should not report an http error from an internal request. It could have still reported the output of the terminal command.

Then, unrelated and maybe known issues, it did a get_terminal_output correctly and got the output, but then misunderstood it (?) and did this

The app is running. Let me check for any issues by looking at the console output: 
🛠️ run_in_terminal (toolu_vrtx_0154ekL4gWFHH5KfSUah9ScJ) {
  "command": "cd /Users/roblou/code/notes-app && npm start 2>&1",
  "explanation": "Restart the app and capture any error output",
  "isBackground": true
}

which started the app a second time. I don't know why it thought it had to do that.

Full log
5beacd7f.copilotmd

The first terminal tool call
toolu_vrtx_01PvXMc8es4fjawNydarzc25__vscode-1767739270603.copilotmd

The failed 4o-mini request
3a8f559c.copilotmd

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugchat-terminal-output-monitorOutput monitoring in the terminal tool which detects when commands finish or user input is requiredconfirmation-pendingverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions