报错信息如下:
Failed to reset session: create new session: agent error: Invalid request: unknown variant session/new, expected one of initialize, thread/start, thread/resume, thread/fork, thread/archive, thread/unsubscribe, thread/increment_elicitation, thread/decrement_elicitation, thread/name/set, thread/metadata/update, thread/unarchive, thread/compact/start, thread/backgroundTerminals/clean, thread/rollback, thread/list, thread/loaded/list, thread/read, skills/list, plugin/list, plugin/read, app/list, fs/readFile, fs/writeFile, fs/createDirectory, fs/getMetadata, fs/readDirectory, fs/remove, fs/copy, skills/config/write, plugin/install, plugin/uninstall, turn/start, turn/steer, turn/interrupt, thread/realtime/start, thread/realtime/appendAudio, thread/realtime/appendText, thread/realtime/stop, review/start, model/list, experimentalFeature/list, collaborationMode/list, mock/experimentalMethod, mcpServer/oauth/login, config/mcpServer/reload, mcpServerStatus/list, windowsSandbox/setupStart, account/login/start, account/login/cancel, account/logout, account/rateLimits/read, feedback/upload, command/exec, command/exec/write, command/exec/terminate, command/exec/resize, config/read, externalAgentConfig/detect, externalAgentConfig/import, config/value/write, config/batchWrite, configRequirements/read, account/read, getConversationSummary, gitDiffToRemote, getAuthStatus, fuzzyFileSearch, fuzzyFileSearch/sessionStart, fuzzyFileSearch/sessionUpdate, fuzzyFileSearch/sessionStop
AI解答如下:
这个报错不是你会话本身坏了,是 weclaw 调错了接口。
核心问题:
• weclaw 在执行 /new 时发了 session/new
• 但你连接的这个 Codex 端根本不认识 session/new
• 它现在支持的是 initialize、thread/start、thread/resume 这一套
所以本质上是:
• weclaw 的 Codex 适配层过期了
• 或者它其实按另一套协议在调用,而不是当前 Codex 协议
从报错看,/new 正确应该做成:
- 如果还没初始化,先 initialize
- 新建对话用 thread/start
- 如果要“重置当前会话”,通常是归档旧线程再 thread/start
报错信息如下:
Failed to reset session: create new session: agent error: Invalid request: unknown variant session/new, expected one of initialize, thread/start, thread/resume, thread/fork, thread/archive, thread/unsubscribe, thread/increment_elicitation, thread/decrement_elicitation, thread/name/set, thread/metadata/update, thread/unarchive, thread/compact/start, thread/backgroundTerminals/clean, thread/rollback, thread/list, thread/loaded/list, thread/read, skills/list, plugin/list, plugin/read, app/list, fs/readFile, fs/writeFile, fs/createDirectory, fs/getMetadata, fs/readDirectory, fs/remove, fs/copy, skills/config/write, plugin/install, plugin/uninstall, turn/start, turn/steer, turn/interrupt, thread/realtime/start, thread/realtime/appendAudio, thread/realtime/appendText, thread/realtime/stop, review/start, model/list, experimentalFeature/list, collaborationMode/list, mock/experimentalMethod, mcpServer/oauth/login, config/mcpServer/reload, mcpServerStatus/list, windowsSandbox/setupStart, account/login/start, account/login/cancel, account/logout, account/rateLimits/read, feedback/upload, command/exec, command/exec/write, command/exec/terminate, command/exec/resize, config/read, externalAgentConfig/detect, externalAgentConfig/import, config/value/write, config/batchWrite, configRequirements/read, account/read, getConversationSummary, gitDiffToRemote, getAuthStatus, fuzzyFileSearch, fuzzyFileSearch/sessionStart, fuzzyFileSearch/sessionUpdate, fuzzyFileSearch/sessionStop
AI解答如下:
这个报错不是你会话本身坏了,是 weclaw 调错了接口。
核心问题:
• weclaw 在执行 /new 时发了 session/new
• 但你连接的这个 Codex 端根本不认识 session/new
• 它现在支持的是 initialize、thread/start、thread/resume 这一套
所以本质上是:
• weclaw 的 Codex 适配层过期了
• 或者它其实按另一套协议在调用,而不是当前 Codex 协议
从报错看,/new 正确应该做成: