test(integration): fix command loader race condition and test timeouts in interactive compression test

This commit is contained in:
Spencer
2026-04-20 21:43:43 +00:00
parent c72ac00a53
commit 65c3d7cabb
2 changed files with 6 additions and 2 deletions
@@ -49,7 +49,7 @@ describe('Interactive Mode', () => {
);
await run.expectText('Chat history compressed', 5000);
});
}, 60000);
// TODO: Context compression is broken and doesn't include the system
// instructions or tool counts, so it thinks compression is beneficial when
@@ -93,6 +93,9 @@ describe('Interactive Mode', () => {
});
const run = await rig.runInteractive();
await run.expectText('tips for getting started:', 5000);
// Wait for the async command loaders to finish so /compress is recognized
await new Promise((r) => setTimeout(r, 2000));
await run.type('/compress');
await run.type('\r');
@@ -107,5 +110,5 @@ describe('Interactive Mode', () => {
foundEvent,
'chat_compression telemetry event should not be found for NOOP',
).toBe(false);
});
}, 60000);
});
+1
View File
@@ -454,6 +454,7 @@ export class TestRig {
// Nightly releases sometimes becomes out of sync with local code and
// triggers auto-update, which causes tests to fail.
enableAutoUpdate: false,
enableAutoUpdateNotification: false,
},
telemetry: {
enabled: true,