Skip to content

fix(responses): restore function namespace identities end to end - #191

Merged
caigee-cmd merged 2 commits into
caigee-cmd:mainfrom
gruffwy:fix/responses-namespace-roundtrip
Sep 18, 2026
Merged

caigee-cmd merged 2 commits into
caigee-cmd:mainfrom
gruffwy:fix/responses-namespace-roundtrip

Conversation

@gruffwy

@gruffwy gruffwy commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • 补齐 feat(translate): expand namespace tools and carry reasoning in compat adapters #186 的普通 function namespace 往返:声明展平后,上游返回 mcp__fastctx__glob,客户端实际需要 namespace=mcp__fastctx, name=glob,否则 Codex Desktop 返回 unsupported call。Related to codex中使用workbuddy的dsf v4.1工具调用有问题 #183
  • 根据真实声明保存请求级映射,在非流式响应、SSE item/arguments 事件和 completed 输出中还原身份;历史 function_call 和明确指定的 function tool_choice 使用相同命名规则。
  • 复用现有 namespace 解析,检查展平名称冲突;映射不发送给供应商,顶层平名工具保持原样。包含两轮 HTTP handler 回归和中英文 changelog。
  • 本 PR 独立基于 main,不包含 custom 工具、供应商档位、图片或个人部署流程。namespace 类型的 tool_choice 行为保持上游现状。

Test plan

  • go test ./...(Linux 容器,独立分支)
  • go vet ./...(Linux 容器)
  • cd worker && npm test
  • release-notes.py self-test / validate;git diff --check
  • cd frontend && npm run build && npm run lint(未改前端,留给上游 CI)
  • 差异人工检查及凭据模式扫描:无 token、认证数据、原始抓包或主机详情

集成版本已实测 WorkBuddy/Qoder 流式和非流式工具两轮往返,以及 Codex Desktop 的真实 FastCtx 调用;独立贡献分支通过模拟上游的确定性回归,未单独部署此分支。测试无需真实凭据。

@caigee-cmd
caigee-cmd merged commit ce56840 into caigee-cmd:main Sep 18, 2026
4 of 6 checks passed
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.

2 participants