Repository navigation
improve(ui): rebuild agent GitHub identity panel on settings primitives - #125472
Conversation
The panel from #125199 rendered raw wire enums in code tags, used form-grid/field markup whose styles the agents page never loads (bare unstyled inputs outside the card), referenced non-existent avatar classes, and put callouts inside the settings group. Rebuild it on the canonical settings primitives: status rows with dot status and friendly source/evidence labels, a System/This Agent segmented scope control, the settings secret input (gains a disabled prop), a danger status row for errors, and a quiet-inherit + primary-save action row. Retitle to "GitHub Identity" and move it below Tool Access and Available Right Now. Add a .settings-account primitive for the 20px round avatar. Live-tested on an isolated dev gateway: native-credential verify via the GitHub API, segmented scope switching, and the empty-token error row. Controller behavior unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 8:31 PM ET / August 18, 2026, 00:31 UTC. ClawSweeper reviewWhat this changesThis PR rebuilds the per-agent GitHub identity panel with shared settings rows, friendly status labels, disabled secret inputs, and an updated documentation label. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessKeep open: current main still renders the raw-enum, bespoke GitHub identity panel, while this PR moves that presentation onto the established settings system without changing Gateway or credential-controller behavior. No actionable patch defect found; the maintainer label and current base drift require normal maintainer landing review. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI requests GitHub identity status from the Gateway and lets an operator configure system-wide or per-agent credentials. This panel translates that closed status into settings controls while the existing controller sends mutations back to the Gateway. flowchart LR
Gateway[Gateway GitHub status] --> Controller[Identity controller]
Controller --> Panel[Agent Tools panel]
Panel --> Settings[Shared settings primitives]
Settings --> Operator[Operator actions]
Operator --> Gateway
Before merge
Agent review detailsSecurityNone. PR surfaceSource +141, Tests +39, Docs 0. Total +180 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase and validate the exact head, then retain the shared status/input primitives and unchanged credential-controller boundary when landing. Do we have a high-confidence way to reproduce the issue? Yes: current-main source directly renders raw protocol values and unsupported bespoke form markup; the focused browser fixture exercises the repaired rendering path. Is this the best way to solve the issue? Yes: reusing the existing settings primitives is the narrowest maintainable repair, while changing the controller or Gateway would unnecessarily expand the credential boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7e998a367f6a. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready verification for
ClawSweeper found no actionable patch defect. Its three pre-merge items are handled as follows:
|
|
Merged via squash.
|
…es (openclaw#125472) The panel from openclaw#125199 rendered raw wire enums in code tags, used form-grid/field markup whose styles the agents page never loads (bare unstyled inputs outside the card), referenced non-existent avatar classes, and put callouts inside the settings group. Rebuild it on the canonical settings primitives: status rows with dot status and friendly source/evidence labels, a System/This Agent segmented scope control, the settings secret input (gains a disabled prop), a danger status row for errors, and a quiet-inherit + primary-save action row. Retitle to "GitHub Identity" and move it below Tool Access and Available Right Now. Add a .settings-account primitive for the 20px round avatar. Live-tested on an isolated dev gateway: native-credential verify via the GitHub API, segmented scope switching, and the empty-token error row. Controller behavior unchanged.
What Problem This Solves
The per-agent GitHub identity panel that landed in #125199 broke the Control UI settings design language. It rendered raw wire enums (
system-detected,rate_limited,github-api; write permissions are not remotely verified) in<code>tags, used bespokeform-grid/field/form-controlmarkup whose styles the agents page never loads (the scope select, PAT input, and author fields rendered as bare, unstyled full-width inputs outside the card surface), referenced non-existentavatar avatar--smclasses (unconstrained avatar<img>), placed callouts inside the settings group, and led the Tools tab with the identity section ahead of Tool Access.Why This Change Was Made
Rebuilds the section on the canonical settings primitives (
ui/docs/design-system/settings-design.md, connection-page precedent):@login, with a friendly source description), Status (dot status — Verified / Not verified / Rate limited / No credentials / Configured, but unavailable — with the evidence detail as row description), and Git Author (Not setfallback instead of— · —).System | This Agentsegmented control whose row description explains the active scope.disabledprop, the one primitive extension); author fields are standard input rows.Use Native Credentials/Remove Overrideplus primarySave Identity, with the remote-credentials note as the row description (the old two-sentence broker paragraph is trimmed).docs/gateway/config-tools.md)..settings-accountprimitive insettings.csssizes the avatar (20px, round).No controller/RPC behavior changes;
github-identity-controller.tsis untouched.User Impact
Operators configuring per-agent GitHub identities get a panel that reads like the rest of Settings: human labels instead of wire enums, working form styling, a visible verification status, and clearer save/inherit actions.
Evidence
pnpm test ui/src/pages/agents/panels-tools-skills.browser.test.ts(10 passed, incl. new settings-language assertions: noform-grid, no callouts in the group, no raw enums, dot status, avatar class),pnpm test ui/src/pages/agents/github-identity-controller.test.ts(15 passed).pnpm check:changedgreen;pnpm ui:i18n:baselineregenerated.OPENCLAW_STATE_DIR, port 19097, realghcredentials in the gateway env): auto-verify resolved the native account via the GitHub API (Verified + @steipete + avatar), segmented scope switch updates description and inherit button label, empty-token Save surfaces the inline danger error row, scope switch back restores the system description. Script: Playwright against the served production bundle (asset hash verified changed afterpnpm ui:build).Before
After