Skip to content

Do not decode unknown agents as Claude - #4

Open
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:unknown-agent-not-claude
Open

Do not decode unknown agents as Claude#4
Adam-Dalloul wants to merge 2 commits into
xintaofei:mainfrom
Adam-Dalloul:unknown-agent-not-claude

Conversation

@Adam-Dalloul

@Adam-Dalloul Adam-Dalloul commented Aug 15, 2026

Copy link
Copy Markdown

AgentType used to decode any unrecognized wire value as Claude so a new server-side agent would not break list decode.

That also made Grok (on builds that shipped before the grok case) and every custom: extra account render with Claude's name and mark. A later encode then sent custom instead of custom:<id>.

Unknown built-in ids now decode as .unknown(raw) and custom: values keep the original wire token. Custom agents use the server icon_url when present. Neither case impersonates Claude.

Unknown and custom:* agents used to decode as a single case and encode
back as "custom" or, on older builds, as Claude. Keep the original wire
token, use the server icon_url when present, and never render Grok or
extra accounts as Claude.
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