feat: add --client flag to list interceptions command#21951
feat: add --client flag to list interceptions command#21951pawbana wants to merge 3 commits intopb/aibridge-user-agent-recordingfrom
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
524db0c to
7c672c5
Compare
301135c to
ea4184e
Compare
7c672c5 to
63f0a27
Compare
ea4184e to
9a23b1c
Compare
63f0a27 to
3d8e453
Compare
9a23b1c to
fe9202a
Compare
3d8e453 to
670801f
Compare
dannykopping
left a comment
There was a problem hiding this comment.
LGTM with minor notes
| }, | ||
| Handler: func(inv *serpent.Invocation) error { | ||
| client, err := r.InitClient(inv) | ||
| serpetClient, err := r.InitClient(inv) |
There was a problem hiding this comment.
Nit
| serpetClient, err := r.InitClient(inv) | |
| apiClient, err := r.InitClient(inv) |
| Flag: "client", | ||
| Description: `Only return interceptions from this client.`, | ||
| Default: "", | ||
| Value: serpent.StringOf(&client), |
There was a problem hiding this comment.
We should probably support multiple clients, but that can be implemented in a follow-up.
| <summary>Possible <code>client</code> values</summary> | ||
|
|
||
| > [!NOTE] | ||
| > AI tools are not setting user agent reliably. Client classification is done on best effort basis. |
There was a problem hiding this comment.
| > AI tools are not setting user agent reliably. Client classification is done on best effort basis. | |
| > Client classification is done on best effort basis using the `User-Agent` header; not all clients send these headers in an easily-identifiable manner. |
| - `Claude Code` | ||
| - `Codex` | ||
| - `Zed` | ||
| - `GitHub Copilot (VS Code)` | ||
| - `GitHub Copilot (CLI)` | ||
| - `Kilo Code` | ||
| - `Roo Code` | ||
| - `Cursor` | ||
| - `Unknown` |
There was a problem hiding this comment.
I'm a little worried about this list going stale.
Documentation CheckUpdates Needed
Note The monitoring.md documentation comprehensively documents the Automated review via Coder Tasks |
|
Merged in: #21839 |

No description provided.