fix(cowork): 修复 OpenClaw 服务端代理请求缺失 session_id#1713
Closed
flowell wants to merge 1 commit intonetease-youdao:mainfrom
Closed
fix(cowork): 修复 OpenClaw 服务端代理请求缺失 session_id#1713flowell wants to merge 1 commit intonetease-youdao:mainfrom
flowell wants to merge 1 commit intonetease-youdao:mainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
当前 OpenClaw runtime 支持多个 cowork session 并发运行,但在默认的 OpenClaw +
lobsterai-server请求链路中,请求会经过openclawTokenProxy转发到 LobsterAI 服务端。此前这条链路没有把当前 cowork session id 写入请求体,导致转发到
/api/proxy/v1/chat/completions的请求缺少顶层session_id字段,服务端无法稳定识别请求来源于哪个 cowork 会话。修复内容
openclawTokenProxy转发请求前:messages中提取 cowork session id;session_id;messages[].content为字符串;messages[].content为 OpenAI array text content。