Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
3db08de to
e86601f
Compare
1f6e9da to
498272d
Compare
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
bff1cbf to
f91aa3a
Compare
dannykopping
commented
Mar 5, 2026
ssncferreira
approved these changes
Mar 5, 2026
Contributor
ssncferreira
left a comment
There was a problem hiding this comment.
LGTM 👍 just a few comments
Signed-off-by: Danny Kopping <danny@coder.com>
ssncferreira
approved these changes
Mar 6, 2026
Contributor
ssncferreira
left a comment
There was a problem hiding this comment.
LGTM 🥇 Thanks for addressing the comments
Collaborator
Author
Merge activity
|
dannykopping
added a commit
to coder/coder
that referenced
this pull request
Mar 6, 2026
This change adds support for tracking client session IDs in AI Bridge interceptions to enable better session-based auditing. Depends on coder/aibridge#198 Fixes coder/internal#1337 The session ID field is optional and not universally supported by all clients.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Refactor client detection and add session tracking
This change extracts client detection logic into a dedicated module and introduces session tracking capabilities for AI bridge interceptions.
Closes #166
Required for coder/internal#1336
Changes
guessClientfunction and client constants frombridge.goto newclient.gofileClienttype alias for better type safety and renameClientClaudetoClientClaudeCodeguessSessionIDfunction insession.goto extract session identifiers from requestsClientSessionIDfield toInterceptionRecordand call session detection before creating interceptorsThe session detection supports as many of our supported clients as possible.