Skip to content

[Bug] DeepSeek V4 thinking-mode round-trip fails deterministically — 100% reproducible on turn 2 and after context compaction #100

Description

@yingpinggan

When using deepseek-v4-pro with thinking/reasoning mode (the default), Moon Bridge fails to correctly preserve the assistant's thinking content block when constructing the next outgoing request. DeepSeek rejects the malformed request with a 400 error, and the client (Codex) then retries the identical broken request indefinitely — the conversation never recovers without starting a new session.

This is not intermittent. It is deterministic and reproducible at two distinct trigger points.

Error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions