diff --git a/integration-tests/context-compress-interactive.test.ts b/integration-tests/context-compress-interactive.test.ts index c7e04c6c23..494ce9f56f 100644 --- a/integration-tests/context-compress-interactive.test.ts +++ b/integration-tests/context-compress-interactive.test.ts @@ -48,7 +48,8 @@ describe('Interactive Mode', () => { true, ); - await run.expectText('Chat history compressed', 5000); + await run.expectText('Context compressed', 5000); + await run.expectText('Adjust threshold', 5000); }); // TODO: Context compression is broken and doesn't include the system diff --git a/packages/cli/src/ui/commands/compressCommand.ts b/packages/cli/src/ui/commands/compressCommand.ts index d0460b233a..578c76ddd8 100644 --- a/packages/cli/src/ui/commands/compressCommand.ts +++ b/packages/cli/src/ui/commands/compressCommand.ts @@ -76,10 +76,11 @@ export const compressCommand: SlashCommand = { isPending: false, beforePercentage, afterPercentage, - // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion + /* eslint-disable @typescript-eslint/no-unsafe-type-assertion */ compressionStatus: Number( compressed.compressionStatus, ) as unknown as CompressionStatus, + /* eslint-enable @typescript-eslint/no-unsafe-type-assertion */ isManual: true, thresholdPercentage: Math.round(threshold * 100), }, diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts index ac88e8e6cd..bb87e78650 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.ts +++ b/packages/cli/src/ui/hooks/useGeminiStream.ts @@ -1192,12 +1192,13 @@ export const useGeminiStream = ( isPending: false, beforePercentage, afterPercentage, - // eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion + /* eslint-disable @typescript-eslint/no-unsafe-type-assertion */ compressionStatus: eventValue ? (Number( eventValue.compressionStatus, ) as unknown as CompressionStatus) : null, + /* eslint-enable @typescript-eslint/no-unsafe-type-assertion */ isManual: false, thresholdPercentage: Math.round(threshold * 100), },