fix(proxy): update tests for tool_result+text and disconnect handler changes

This commit is contained in:
Grandis SYF authored and Tam Nhu Tran committed 2026-04-20 13:06:00 -04:00
1 parent a0f91761ed
commit b2a4579098
2 files changed
+6 -8

No files matched your search

@@ -120,7 +120,7 @@ describe('ProxyRequestTransformer regressions', () => {
},
],
})
).toThrow('tool_result blocks must come before other user content');
).not.toThrow();
expect(() =>
new ProxyRequestTransformer().transform({
@@ -135,7 +135,7 @@ describe('ProxyRequestTransformer regressions', () => {
},
],
})
).toThrow('must start with tool_result blocks for pending tool_use ids');
).toThrow('must include tool_result blocks for pending tool_use ids');
});
it('rejects tool_result content that cannot be represented as OpenAI tool text', () => {