Skip to content

Conversation

@jakehwll
Copy link
Contributor

@jakehwll jakehwll commented Dec 15, 2025

Addressing feedback found in #21252

Important

This pull-request removes endpoints from ExperimentalHandler from coderd.go and promotes the endpoints within the frontend. This means that we will no longer be serving AI Bridge under the /api/experimental/ prefix now that things reached release in v2.29.0.

Migration

The /api/experimental/aibridge prefix has been removed. Any clients, scripts, or integrations that previously called AI Bridge endpoints under /api/experimental/aibridge must be updated to use the /api/v2/aibridge stable API routes introduced in v2.29.0.

Position Pull-request
fix: improve AI Bridge request logs UI/UX
feat: add AI Bridge request logs model filter
chore!: promote AIBridge from ExperimentalHandler
feat: implement request log collapsing prompt (<RequestLogsPrompt />)
feat: add <SyntaxHighlighter /> for AI Bridge Token Usages Metadata

@matifali
Copy link
Member

Should this be marked as a breaking change?

@jakehwll jakehwll changed the title fix: promote AIBridge from ExperimentalHandler fix!: promote AIBridge from ExperimentalHandler Dec 16, 2025
@matifali matifali added the release/breaking This label is applied to PRs to detect breaking changes as part of the release process label Dec 16, 2025
Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not in the scope of this PR, but just to confirm: should /api/experimental/mcp/http be promoted to /api/v2 as well, or is MCP intentionally staying experimental?

@jakehwll jakehwll marked this pull request as ready for review December 16, 2025 13:32
@jakehwll
Copy link
Contributor Author

Probably not in the scope of this PR, but just to confirm: should /api/experimental/mcp/http be promoted to /api/v2 as well, or is MCP intentionally staying experimental?

Its to my understanding that we are promoting AI Bridge and not the MCP server just yet 🙂

@matifali
Copy link
Member

matifali commented Dec 16, 2025

@jakehwll should this be instead a chore:? We use these labels to generate a changelog, and it will come up as a bug fix. Is it?

Also, can you add two lines to the PR body describing what is breaking and how to migrate? We can then copy those to ChangeLog as it is.

@jakehwll jakehwll changed the title fix!: promote AIBridge from ExperimentalHandler chore!: promote AIBridge from ExperimentalHandler Dec 17, 2025
@jakehwll
Copy link
Contributor Author

@jakehwll should this be instead a chore:? We use these labels to generate a changelog, and it will come up as a bug fix. Is it?

Also, can you add two lines to the PR body describing what is breaking and how to migrate? We can then copy those to ChangeLog as it is.

Thats a very good point, this was a "fix" in my mind as its something we were supposed to do in v2.29.0. I've updated and given a migration path 🙂

Copy link
Contributor

@dannykopping dannykopping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there

@ssncferreira
Copy link
Contributor

The /api/experimental/aibridge prefix has been removed. Any clients, scripts, or integrations that previously called AI Bridge endpoints under /api/v2/aibridge must be updated to use the /api/v2/aibridge stable API routes introduced in v2.29.0.

I think there is a small typo in the PR description for the migration, should be /api/experimental/aibridge:
...called AI Bridge endpoints under /api/experimental/aibridge must be updated to use the /api/v2/aibridge stable API routes...

Copy link
Contributor

@ssncferreira ssncferreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jakehwll jakehwll merged commit dceecec into jakehwll/ai-bridge-request-logs-model Dec 17, 2025
37 checks passed
@jakehwll jakehwll deleted the jakehwll/ai-bridge-experimentalhandler branch December 17, 2025 17:28
jakehwll added a commit that referenced this pull request Dec 18, 2025
Closes #21052 and is related to #21218 

This pull request implements a bunch of changes the team requested to
improve the overall user experience when navigating to the Request Logs
page. Since these are mostly UI changes, screenshots do a much better
job of showing what's different than me trying to explain everything in
words, so I've included them below.

> [!WARNING]  
> More globally we've changed how we're rendering `<PaginationHeader
/>`, therefore we've renamed it to `<PaginationAmount />`. This will
effect multiple layouts however its a global improvement we're
intentionally looking to make.

### Preview 


![ai-bridge-improvements](https://github.com/user-attachments/assets/ce92852e-d0fc-4268-b52b-9aefd431033b)

### Changes

1. Date formatting set to a standardised way including the month as a
`MMM` (i.e `Dec`)
2. Names and avatars are now rendered larger, furthermore they render
the `.name` field falling back on `.username`.
3. Font-size increased from `text-xs` to `text-sm` to increase overall
legibility globally.
4. Initiator is now rendered inside of a `<Badge />` and gives longer
names a chance to render.
5. Models are now rendered in a `<Badge />` alongside their icons.
6. Input/Output tokens are in a shared `<Badge />`-group alongside
truncation (when necessary).
7. Badge from `5` is rendered with the proper name being visible on
hover (for use if truncated).
8. Move globally the `Showing X of X` counts to the bottom of the tables
(effects other components outside of AI Bridge).
9. Icons are now included within the dropdown for the `Provider` filter.
10. Truncation of elements is now handled so larger prompts don't cause
the table to require further scrolling.
11. New merged Input/Output `<dt>` element with the badge 

| Position | Pull-request |
| -------- | ------------ |
| ✅ | [fix: improve AI Bridge request logs
UI/UX](#21252) |
| | [feat: add AI Bridge request logs model
filter](#21259) |
| | [chore!: promote AIBridge from
`ExperimentalHandler`](#21278) |
| | [feat: implement request log collapsing prompt (`<RequestLogsPrompt
/>`)](#21313) |

---------

Co-authored-by: ケイラ <mckayla@hey.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/breaking This label is applied to PRs to detect breaking changes as part of the release process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants