Skip to content

fix(tool-calling): defer DeepSeek tool images - #277

Merged
ltmoerdani merged 1 commit into
mainfrom
fix/issue-272-deepseek-tool-image-defer
Oct 31, 2026
Merged

ltmoerdani merged 1 commit into
mainfrom
fix/issue-272-deepseek-tool-image-defer

Conversation

@ltmoerdani

Copy link
Copy Markdown
Owner

Summary

  • Map the DeepSeek model family to the existing defer tool-image serialization strategy.
  • Keep the tool message string-only and move image parts into a follow-up user message.
  • Preserve existing MiMo drop, GLM 5.3 defer, and other-family multimodal behavior.
  • Bump the extension to 0.7.12 and document the verified live Extension Development Host run.

Verification

  • npm test: 570/570 passing
  • npm run package: VSIX opencode-copilot-chat-0.7.12.vsix
  • Staged lint: ESLint, Markdown, Editorconfig, TypeScript, and tests passing
  • Live OpenCode Go / Deepseek V4 Pro verification in the existing novaliners Extension Development Host:
    browser screenshot capture completed, image attachment was produced, request finished with stop, and no HTTP 400 serialization error occurred.

Fixes #272

@ltmoerdani
ltmoerdani merged commit 4b62703 into main Oct 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] 400 "tool message content must be a string on the gRPC path" once DeepSeek history contains tool-result images

1 participant