- Excluded accounts no longer suppress image_safety / cyber_policy evidence,
ban counting or notifications; those are upstream verdicts, not our audit.
- Sampled multi-image inputs (more images than the audit sends) skip the clean
cache and singleflight so one clean random sample cannot pin the verdict.
- Account search truncates by rune and drops invalid UTF-8 so PG does not
reject the pattern with a 500.
- Account directory lookups are part of ContentModerationRepository instead of
a runtime type assertion; lookup errors now propagate from Get/UpdateConfig.
- Remove the never-set BodyValidated flag and the frontend id-only fallback.
Codex manifests fetched from upstream carry automatic modes such as
codex-auto-review, which upstream already hides from the model picker and
Codex uses to review approvals. The gateway removes every automatic mode the
group model list does not select, so Codex falls back to the main model for
reviews and the forwarded manifest always differs from upstream.
Add keep_hidden_auto_modes to the group Codex manifest config. When enabled,
automatic modes that upstream marks as hidden are forwarded byte-for-byte;
visible ones are still removed unless selected, and explicit selections keep
listing them in the picker. The switch is off by default, so existing groups
behave as before, and the admin group dialog exposes it next to the pinned
accounts settings.
Codex 0.17x reports `disable_response_storage` and
`windows_wsl_setup_acknowledged` as unknown configuration fields, and
rejects the top-level `network_access = "enabled"` because the key only
exists as a boolean under [sandbox_workspace_write].
Remove the two removed keys from every generated config.toml and express
the network intent with the supported sandbox table. The commented Grok
template drops the same stale lines.
HelpTooltip always centered its popup above the trigger, so on a ~375px
screen any info icon near the left or right edge (ops dashboard cards,
accounts table headers, modal fields) pushed the tooltip off screen.
Several forms also hand-rolled CSS-only hover popups that are absolutely
positioned from the icon and get cut off by the viewport and the dialog
body.
- Move the placement logic from UsageTable into a shared
getTooltipPosition helper (utils/floatingPanel.ts): prefer one side,
flip to the opposite side when it does not fit, otherwise pin to the
viewport edge; clamp the cross axis.
- HelpTooltip measures its popup and uses the helper (above, flipping
below near the top of the screen); the arrow keeps pointing at the icon.
- UsageTable token/cost tooltips use the same helper.
- Replace the hand-rolled info popups in GroupsView, Create/EditAccountModal
and the usage stats cache breakdown with HelpTooltip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The token and cost detail tooltips in the usage table were always placed
8px to the right of the info icon. On narrow (mobile) screens the cost
column sits near the right edge, so the non-wrapping tooltip was cut off.
After rendering, measure the tooltip: flip it to the left of the icon when
it does not fit on the right, pin it to the right edge when neither side
fits, and clamp it vertically to the viewport.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up:
- Stop treating parameter errors as safety rejections. The message
matcher no longer uses a bare "moderation" keyword and rejects
"unknown/unrecognized/unsupported parameter" style messages, so
Azure-style "Unrecognized request argument supplied: moderation"
(param null) and error-passthrough rewrites (which drop param/code)
are not recorded with the user's prompt.
- Check explicit safety codes before the param exclusion, so Azure
content filtering (code=content_filter, param=prompt), contentFilter
and ResponsibleAIPolicyViolation are recorded; response_incomplete is
only a 400 for content_filter/moderation reasons and counts as well.
- Show image_safety rows with the hit badge instead of the amber error
badge, and exclude them from the "error" result filter.
Review follow-up for the proxy account count refresh:
- Apply a proxy list response only if it is newer than the last applied
one. Previously a failed newer refresh also discarded a slower older
success, which could leave the selector empty.
- Refresh proxy counts on every `created` event. Batch creation can
partially succeed and keep the dialog open, so opening the dialog was
not enough.
- Test ProxySelector with the real vue-i18n and locale files instead of
a hand-written mock of the plural rule.
The proxy selector in the account dialogs showed a bare number next to
the proxy name, and AccountsView loaded the counts only once on mount,
so they went stale after accounts were created, deleted, imported or
rebound.
- Show "N 个账号" / "N account(s)" on the right of each proxy row, before
the test button, with a tooltip.
- Reload proxies with counts whenever the create, edit or bulk-edit
dialog opens. A sequence guard drops out-of-order responses and a
failed reload keeps the previous list.
Image requests rejected by the upstream safety system (for example
"Your request was rejected by the safety system") were only visible in
the ops error log. They are now also written to the risk control center
as log-only evidence (action=image_safety, mode=risk_control_log_only):
no hash blacklist, no auto-ban count, no email, response unchanged.
Detection covers HTTP 400 from the native Images API, SSE/Responses
error events, model refusal text and content_filter incompletes. 400s
carrying error.param (e.g. an invalid `moderation` value) are excluded.
The record uses the gateway request ID from context so it joins with the
ops error log; the response header may carry the upstream x-request-id.
Refs #8992
Add a channel-level toggle (features_config.expose_response_model, off by
default). When enabled, regular users see the final response model next to
the requested model in their usage records; the intermediate mapping chain
stays admin-only.
- Channel.IsResponseModelExposed + ChannelService.ResponseModelExposedChannels
read from the in-memory channel cache, so no extra DB queries
- User usage list/detail fill the new optional response_model field
(upstream_response_model -> upstream_model -> model, omitted when equal
to the requested model)
- Channel form toggle, UsageTable rendering and i18n
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Expose latency_checked_at (from cached UpdatedAt) on admin proxy list
- Show exit IP under location and last check time under created_at
- Include region/city in quality check result
- Quality check now updates row latency/IP/location on failure too,
matching the backend snapshot
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Count provider-owned, non-business-limited rows in ops_error_logs per
account (same definition as the ops dashboard) and expose them as
`upstream_errors` on today stats and per-day account usage history.
- Today stats column shows today's upstream errors (highlighted when > 0).
- Usage statistics modal adds an upstream error trend line plus today and
30-day totals; days with only errors are merged into the history.
- Counts are omitted when ops monitoring is disabled so the UI hides them
instead of showing a misleading 0. Failover intermediate attempts are
attributed only to the last failing account.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Conflict in backend/internal/service/openai_oauth_model_support_test.go:
upstream moved claude-sonnet-4-6 / claude-3-opus-20240229 into the
foreign-model list, while this branch added k3.1 / k3.1-pro-preview to the
servable list. Keep both sides: upstream's list plus the K3.1 aliases.