From e574378dcd1452442b49cdf8b4da136fc92ba15f Mon Sep 17 00:00:00 2001 From: Dileep Yavanmandha <52841896+dileepyavan@users.noreply.github.com> Date: Mon, 27 Jul 2026 14:29:39 -0700 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- .../chatAgentTools/browser/tools/runInTerminalTool.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts index 62ccde5444c..704220bfd7a 100644 --- a/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts +++ b/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.ts @@ -2416,7 +2416,7 @@ export class RunInTerminalTool extends Disposable implements IToolImpl { return altBufferResult; } - if (didSandboxWrapCommand && outputLooksBubblewrapHostRestricted(terminalResult)) { + if (didSandboxWrapCommand && exitCode !== 0 && outputLooksBubblewrapHostRestricted(terminalResult)) { return this._getBubblewrapHostRestrictedResult(); }