mirror of
https://github.com/deepseek-ai/awesome-deepseek-agent.git
synced 2026-11-05 01:07:37 +00:00
[GH-ISSUE #392] Codex 0.148.0: Responses silently drops multi-agent agent_message tasks #123
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/awesome-deepseek-agent#123
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Arcobalneo on GitHub (Aug 19, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/392
Summary
When DeepSeek is used as a custom model provider for OpenAI Codex with
wire_api = "responses", Codex multi-agent tasks are silently lost.spawn_agent,followup_task, andsend_messagecreate or address a child thread, but the child never receives the dispatched task text. It initializes and replies with a generic “I don't see a task” message instead of executing the task.This still reproduces with Codex CLI 0.148.0 and affects both
deepseek-v4-flashanddeepseek-v4-prowhen the official setup selectsmulti_agent_version: "v2".Related reports: #335 and #349. This issue adds the current-version reproduction, protocol-level failure mode, and a working configuration workaround.
Environment
base_url:https://api.deepseek.com/wire_api:responsesdeepseek-v4-flashanddeepseek-v4-proSanitized
~/.codex/config.toml:Relevant
~/.codex/models.jsonentry:Steps to reproduce
Configure Codex with DeepSeek using the official DeepSeek Codex integration setup.
Start a new Codex session with
deepseek-v4-flashordeepseek-v4-pro.Dispatch a trivial task, for example:
Alternatively, resend the same task using
followup_task.Actual behavior
Reply with exactly: PONG.followup_taskhas the same result.PONG.Expected behavior
The child should receive the exact dispatched task and return
PONG. If the endpoint does not support the item or content-block type used by Codex, it should return an explicit400 invalid_request_errorrather than silently accepting and dropping it.Protocol analysis
With Codex MultiAgent V2, the dispatched task is carried in a
ResponseItem::AgentMessagewhose content contains:input_textrouting header ending inPayload:; andencrypted_contentblock carrying the task text.Representative shape:
The DeepSeek Responses endpoint appears to skip the unsupported
agent_messageinput item entirely. Tests reported in #335 show that replacingencrypted_contentwith plaintextinput_textinsideagent_messagestill loses the content, and even a deliberately unknown item type is accepted and skipped in the same way. This suggests the primary incompatibility is theagent_messageitem type, not only the nested content-block type.The silent acceptance is particularly harmful: it converts a protocol incompatibility into a successful-looking response whose model context is missing the task.
Suggested actions
400 invalid_request_errorfor unsupportedResponseItemor content-block types instead of silently discarding them.message,agent_message,input_text,output_text, andencrypted_content.multi_agent_version: "v2"until the transport is supported end-to-end; document the limitation and workaround.agent_messageto a model-visible user message at the DeepSeek compatibility layer.Impact
Codex multi-agent workflows are silently non-functional under the official DeepSeek Responses configuration. Because the child may fall back to visible parent context and produce a plausible but unrelated answer, this can also create incorrect results without an obvious failure signal.
Workaround
In
~/.codex/models.json, set the DeepSeek model entries to:Then fully quit all Codex CLI/Desktop processes and start a new session. In tested CLI builds, V1 sends the task as plain user input and the child receives it.
supports_search_tool: falsekeeps collaboration tools directly visible and does not disable hosted web search.Note: as discussed in #335, some Desktop alpha builds may hide collaboration tools under V1 instead of restoring task delivery, so this workaround may be client-build dependent.
References