continue-custom/packages/fetch/src
Dallin Romney 1aac783c49
fix: handle thinking/assistant messages at end of chat history (#11791)
* fix: handle thinking/assistant messages at end of chat history

extractToolSequence threw "no user/tool message found" when the last
message was thinking or assistant (common with reasoning models when
assistant content is empty after thinking and gets filtered out).

* fix: guard against non-string NO_PROXY env value in getEnvNoProxyPatterns

Add typeof check before calling .split() on the NO_PROXY environment
variable to prevent "envValue.split is not a function" errors when the
value is not a string.
2026-03-24 20:26:51 -07:00
..
certs.test.ts add some cache functionality tests 2025-06-17 02:30:04 -07:00
certs.ts read extra certs and use cert cache 2025-06-17 02:27:12 -07:00
fetch.e2e.test.ts Fetch CA certificate tests (#6803) 2025-07-31 15:37:36 -07:00
fetch.ts fix: oai Headers 2025-08-20 22:47:04 -07:00
getAgentOptions.test.ts fix: remove keepAliveMsecs from fetch agent (#8378) 2025-10-21 15:49:20 -07:00
getAgentOptions.ts fix: remove keepAliveMsecs from fetch agent (#8378) 2025-10-21 15:49:20 -07:00
index.ts use patched fetch in openai adapters - FETCH 15, OPENAI ADAPTERS 44 2025-06-26 15:07:38 -07:00
node-fetch-patch.js better comments 2025-06-06 12:42:40 -07:00
node-fetch-patch.test.js better comments 2025-06-06 12:42:40 -07:00
ssl-certificate.test.ts Fetch CA certificate tests (#6803) 2025-07-31 15:37:36 -07:00
stream.test.ts Fetch CA certificate tests (#6803) 2025-07-31 15:37:36 -07:00
stream.ts fix prettier 2025-07-03 01:35:52 -07:00
util.test.ts fix: handle thinking/assistant messages at end of chat history (#11791) 2026-03-24 20:26:51 -07:00
util.ts fix: handle thinking/assistant messages at end of chat history (#11791) 2026-03-24 20:26:51 -07:00