Skip to content

fix “Failed to get agent_messages from the codex session”#24

Merged
GuDaStudio merged 2 commits into
GuDaStudio:mainfrom
Cosr-Backup:main
Dec 1, 2025
Merged

fix “Failed to get agent_messages from the codex session”#24
GuDaStudio merged 2 commits into
GuDaStudio:mainfrom
Cosr-Backup:main

Conversation

@Silentely
Copy link
Copy Markdown
Contributor

claude调用时会报

"result": {

        "success": false,

        "error": "Failed to get `agent_messages` from the codex session. \n\n You can try to set

    `return_all_messages` to `True` to get the full reasoning information. \n\n 2025-11-28T12:23:06.643222Z ERROR

    rmcp::transport::async_rw: Error reading from stream: serde error data did not match any variant of untagged

    enum JsonRpcMessage"

因为有一段数据混入,导致直接返回False并中断

2025-11-28T11:20:00.13432Z ERROR rmcp::transport::async_rw: Error reading from stream: serde error data did not match any variant of untagged enum JsonRpcMessage

Improve error handling for non-JSON lines by printing to stderr instead of breaking the flow.
@sczheng189
Copy link
Copy Markdown

有用

@GuDaStudio
Copy link
Copy Markdown
Owner

感谢contribution,非常有洞察力的发现,帮助定位了长久以来困扰我们的问题!但当我合并了 #23 后,这里有一些小冲突,可以帮忙rebase一下吗?😀

@GuDaStudio GuDaStudio merged commit e6931e6 into GuDaStudio:main Dec 1, 2025
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.

3 participants