Skip to content

fix(ui): tolerate missing user-agent client hints - #1195

Merged
qwqcode merged 1 commit into
masterfrom
codex/fix-user-agent-hints
Oct 11, 2026
Merged

qwqcode merged 1 commit into
masterfrom
codex/fix-user-agent-hints

Conversation

@qwqcode

@qwqcode qwqcode commented Oct 11, 2026

Copy link
Copy Markdown
Member

Privacy extensions can omit platformVersion from User-Agent client hints, causing comment submission to reject before the API request. Fall back to the original User-Agent when the hints API is unavailable, the request fails, or the returned version is missing or malformed. Valid Windows and macOS version correction is preserved.

Adds 20 regression cases, including the comment submission path with an omitted version. Eight cases fail against the original implementation and all pass with this change.

Validation: all 83 frontend tests pass; pnpm build:all, ESLint, Prettier, and git diff --check pass.

Refs #1116.

@qwqcode
qwqcode merged commit 26181d1 into master Oct 11, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant