feat: implement AI Bridge client table column#22228
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f1f9a87675
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
site/src/pages/AIBridgePage/RequestLogsPage/RequestLogsRow/RequestLogsRow.tsx
Outdated
Show resolved
Hide resolved
<AIBridgeClientIcon />
This stack of pull requests is managed by Graphite. Learn more about stacking. |
pawbana
left a comment
There was a problem hiding this comment.
LGTM (although I don't feel confident approving frontend changers, I've mostly just manually checked if it works/looks ok)
site/src/pages/AIBridgePage/RequestLogsPage/icons/AIBridgeClientIcon.tsx
Show resolved
Hide resolved
site/src/pages/AIBridgePage/RequestLogsPage/icons/AIBridgeClientIcon.tsx
Outdated
Show resolved
Hide resolved
| const iconClassName = "flex-shrink-0"; | ||
| // This should be kept in sync with the client names in | ||
| // the AI Bridge bridge.go file. | ||
| // https://github.com/coder/aibridge/blob/main/bridge.go#L31-L32 |
There was a problem hiding this comment.
If we move aibridge inside coder/coder we should definitely look to having types generated for this.
There was a problem hiding this comment.
We're looking at a generated types similar to API Keys. Watch this space for future improvements 🙂

Closes #22144
Add client information column to AI Bridge request logs, showing which coding tool initiated each request with matching icons.
Clientcolumn to request logs table header and row, displaying client name with icon badgeAIBridgeClientIconcomponent mapping backend client constants to their icons (Claude Code, Codex, Kilo Code, Roo Code, Zed, Cursor, GitHub Copilot) (ref.)AIBridgeModelIconandAIBridgeProviderIconintoicons/subdirectory and clean upprops.className→classNamepropgithub-copilot.svg,kilo-code.svg,roo-code.svgwith entries inicons.jsonandexternalImages.tsexternalImages.tsmap alphabetically