kimi-code/apps/vscode/docs
liruifengv 86e653bbb9 refactor(oauth): make X-Msh-Platform an explicit host identity field
X-Msh-Platform was hardcoded to kimi_code_cli in createKimiDeviceHeaders,
so non-CLI hosts could not state their own platform and the desktop had
to patch the header after the fact. KimiHostIdentity now carries a
required platform (every host declares its own value; the CLI constant
stays the fallback only for direct createKimiDeviceHeaders callers), and
userAgentProduct is renamed to productName so the transport identity
uses one name everywhere.

All in-repo identity constructions pass platform explicitly; the wire
value for CLI and VS Code hosts is unchanged (kimi_code_cli).
2026-07-30 01:17:03 +08:00
..
node-sdk-migration.md refactor(oauth): make X-Msh-Platform an explicit host identity field 2026-07-30 01:17:03 +08:00