qwen-code/packages/cli/src/config
Bramha.dev 414b3304cd
fix(core): split tool-result media into follow-up user message for strict OpenAI compat (#3617)
Fixes #3616.

Adds opt-in `splitToolMedia` flag (default false). When enabled, media parts (image / audio / video / file) returned by MCP tool calls are split into a follow-up `role: "user"` message instead of being embedded in the `role: "tool"` message. Required for strict OpenAI-compatible servers (e.g., LM Studio) that reject non-text content on tool messages with HTTP 400 "Invalid 'messages' in payload".

Media from parallel tool responses is accumulated and emitted as a single follow-up user message after all tool messages, preserving OpenAI's contiguity requirement for tool responses.

Default behavior is unchanged for permissive providers.
2026-04-27 23:01:02 +08:00
..
migration refactor: remove summarizeToolOutput feature 2026-03-15 13:51:32 +08:00
auth.test.ts feat(auth): discontinue Qwen OAuth free tier (2026-04-15 cutoff) (#3291) 2026-04-15 22:30:20 +08:00
auth.ts feat(auth): discontinue Qwen OAuth free tier (2026-04-15 cutoff) (#3291) 2026-04-15 22:30:20 +08:00
config.integration.test.ts chore: update tests for parseArguments signature change 2026-02-06 13:05:49 +08:00
config.test.ts feat(web-search): remove built-in web_search tool, replace with MCP-based approach (#3502) 2026-04-24 11:29:02 +08:00
config.ts feat(cli,core): LLM-generated summary labels for tool-call batches (#3538) 2026-04-27 16:54:10 +08:00
keyBindings.test.ts Explict imports & exports with type modifier (#3774) 2025-08-25 22:04:53 +00:00
keyBindings.ts refactor: rename verboseMode to compactMode for better UX clarity (#3075) 2026-04-10 11:55:50 +08:00
modelProvidersScope.test.ts fix: lint & ci issues 2026-01-07 22:58:09 +08:00
modelProvidersScope.ts feat(cli): warn when workspace overrides global modelProviders (#3148) 2026-04-13 10:43:16 +08:00
sandboxConfig.ts feat(cli): support tools.sandboxImage in settings (#3146) 2026-04-13 09:43:34 +08:00
settings.test.ts feat(cli): add slashCommands.disabled setting to gate slash commands (#3445) 2026-04-20 11:06:26 +08:00
settings.ts feat(hooks): Add HTTP Hook, Function Hook and Async Hook support (#2827) 2026-04-16 10:10:33 +08:00
settingsSchema.test.ts feat(web-search): remove built-in web_search tool, replace with MCP-based approach (#3502) 2026-04-24 11:29:02 +08:00
settingsSchema.ts fix(core): split tool-result media into follow-up user message for strict OpenAI compat (#3617) 2026-04-27 23:01:02 +08:00
trustedFolders.test.ts refactor: unify sandbox configuration naming and improve telemetry config 2026-02-11 11:08:15 +08:00
trustedFolders.ts refactor: unify sandbox configuration naming and improve telemetry config 2026-02-11 11:08:15 +08:00