Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Dileep Yavanmandha
2026-07-27 14:29:39 -07:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent bd3672ba51
commit e574378dcd
@@ -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();
}