Compare commits

...

3 Commits

Author SHA1 Message Date
mingholy.lmh
cb5ad43ca7 fix: sandbox exception log to stderr 2025-11-23 17:32:48 +08:00
mingholy.lmh
650079b0c7 fix: failed json-output tests 2025-11-21 18:34:02 +08:00
mingholy.lmh
48d2df5342 fix: reset authType settings 2025-11-21 17:50:10 +08:00
2 changed files with 3 additions and 2 deletions

View File

@@ -54,6 +54,7 @@ describe('JSON output', () => {
});
it('should return a JSON error for enforced auth mismatch before running', async () => {
const originalOpenaiApiKey = process.env['OPENAI_API_KEY'];
process.env['OPENAI_API_KEY'] = 'test-key';
await rig.setup('json-output-auth-mismatch', {
settings: {
@@ -68,7 +69,7 @@ describe('JSON output', () => {
} catch (e) {
thrown = e as Error;
} finally {
delete process.env['OPENAI_API_KEY'];
process.env['OPENAI_API_KEY'] = originalOpenaiApiKey;
}
expect(thrown).toBeDefined();

View File

@@ -848,7 +848,7 @@ export async function start_sandbox(
sandboxProcess?.on('close', (code, signal) => {
process.stdin.resume();
if (code !== 0 && code !== null) {
console.log(
console.error(
`Sandbox process exited with code: ${code}, signal: ${signal}`,
);
}