Skip to content

Commit a5de7e1

Browse files
committed
🤖 Fix token limit error test to disable auto-truncation
The existing token limit error test was failing because auto-truncation is now enabled by default for OpenAI, preventing the expected context errors from occurring. This commit adds disableAutoTruncation: true to that test to preserve its original behavior. _Generated with `cmux`_
1 parent 0913b85 commit a5de7e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/ipcMain/sendMessage.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,12 +698,14 @@ describeIntegration("IpcMain sendMessage integration tests", () => {
698698

699699
// Now try to send a new message - should trigger token limit error
700700
// due to accumulated history
701+
// Disable auto-truncation to force context error
701702
const result = await sendMessageWithModel(
702703
env.mockIpcRenderer,
703704
workspaceId,
704705
"What is the weather?",
705706
provider,
706-
model
707+
model,
708+
{ disableAutoTruncation: true }
707709
);
708710

709711
// IPC call itself should succeed (errors come through stream events)

0 commit comments

Comments
 (0)