Skip to content

fix(workbuddy): align chat identity with CodeBuddy CLI 2.168.2 - #488

Merged
caigee-cmd merged 1 commit into
mainfrom
fix/workbuddy-cli-identity
Nov 11, 2026
Merged

caigee-cmd merged 1 commit into
mainfrom
fix/workbuddy-cli-identity

Conversation

@caigee-cmd

Copy link
Copy Markdown
Owner

Summary

  • WorkBuddy chat now presents CodeBuddy CLI 2.168.2 (User-Agent, X-IDE-Version) instead of 2.161.0. The official package no longer sends X-Product-Version or X-Session-ID; those are dropped, and the CLI adds X-Agent-Purpose, X-Agent-Runtime, and X-Root-Request-ID.
  • Chat also sends the OpenAI Node SDK 6.25.0 fingerprint shipped with that CLI (x-stainless-*, Node v22.21.1). OS and architecture stay fixed at MacOS/arm64 so the gateway host does not leak into the fingerprint.
  • A chat body without cache_retention gets long, matching the official CLI. An explicit caller value is kept.
  • Desktop catalog identity is unchanged: Global stays WorkBuddy/5.9.4 … CLI/2.165.0. The CN desktop UA no longer borrows the chat CLI version; it keeps its own bundled 2.161.0, which has not been re-verified.

Test plan

  • go test ./internal/providers/workbuddy/ -count=1
  • One Global and one CN chat turn still complete with tool calls after the identity change
  • Global /v3/config catalog still returns the desktop model set (UA unchanged)

Chat still advertised CLI 2.161.0 and omitted the OpenAI Node SDK
fingerprint the official package sends. Send 2.168.2, the SDK headers,
and cache_retention=long when the caller did not set one. Desktop catalog
identity stays on its own bundled versions.
@caigee-cmd
caigee-cmd merged commit a304a22 into main Nov 11, 2026
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.

1 participant