continue-custom/core/tools
MumuTW ffb6ea45f0
Fix system-message tools parser when tool call is non-terminal (#11092)
* fix(openai-adapters): map reasoning-delta to reasoning_content

* Fix system-message tool parser for non-terminal tool calls

* Fix duplicate predefined tools in dynamic system-message section

* fix(openai-adapters): fix TS syntax error in vercelStreamConverter test

The `as typeof X & Y` type assertion was ambiguous to the TypeScript
parser without parentheses, causing TS1005 errors across all CI checks.
Simplify to `as any` since this is a test assertion.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* chore: remove unrelated vercelStreamConverter changes

Per reviewer feedback — keeping this PR focused on the
system-message tools parser fix.

* fix: correct test expectations for post-tool-call content preservation

The 'preserves content after a tool call' test incorrectly consumed the
trailing newline and preserved text within the tool-call loop. Adjusted
the loop count from 6 to 4 (actual tool-call deltas) and added explicit
assertions for the trailing newline and preserved content chunks.

The 'mid-message' test was missing an assertion for the newline chunk
emitted between the closing codeblock fence and trailing text.

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: MumuTW <mumu@novel98.com>
2026-03-24 11:56:43 -07:00
..
definitions feat: make create/read rule tools disabled by default (#10543) 2026-02-16 12:15:57 -08:00
implementations fix: add default timeout for terminal command tool execution (#10550) 2026-03-24 11:04:28 -07:00
policies prettier 2025-10-16 19:08:31 -07:00
systemMessageTools Fix system-message tools parser when tool call is non-terminal (#11092) 2026-03-24 11:56:43 -07:00
applyToolOverrides.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
applyToolOverrides.vitest.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
builtIn.ts add read skill tool 2025-12-30 12:51:16 +05:30
callTool.ts feat: limited MCP App support (#10132) 2026-02-05 19:07:44 -08:00
constants.ts feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
index.ts read skill is a tool definition 2026-01-06 17:31:04 +05:30
mcpToolName.ts feat: limited MCP App support (#10132) 2026-02-05 19:07:44 -08:00
mcpToolName.vitest.ts fix: core type error 2025-09-24 17:41:46 -07:00
parseArgs.ts fix: support object-type arguments in tool call parsing 2026-01-21 18:16:12 +08:00
parseArgs.vitest.ts Address comments from @RomneyDa 2025-12-02 20:28:45 +00:00
searchWebGating.vitest.ts fix test lints 2026-01-06 17:58:53 +05:30