Skip to content

fix: remove inflight interceptions from aibridge returned values - #20852

Merged
jakehwll merged 13 commits into
mainfrom
jakehwll/remove-inflight-interceptions
Nov 24, 2025
Merged

jakehwll merged 13 commits into
mainfrom
jakehwll/remove-inflight-interceptions

Conversation

@jakehwll

Copy link
Copy Markdown
Contributor

Addresses aibridge#54

When querying against the values in the database for /api/experimental/aibridge/interceptions we found strange behaviour wherein there was interceptions that lacked prompting and other various fields we want. Generally this was as a result of the data not actually existing for these values (as they were inflight).

The simple solution to this was to hide them if they didn't exist. This PR addresses that.

Comment thread coderd/database/queries/aibridge.sql Resolved
Comment thread coderd/database/queries/aibridge.sql Resolved

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jakehwll we never make changes without tests to validate.
Please can you add some to cover each query?

Comment thread coderd/database/queries/aibridge.sql Resolved
Comment thread coderd/database/queries/aibridge.sql Resolved
@jakehwll

Copy link
Copy Markdown
Contributor Author

@jakehwll we never make changes without tests to validate.

Please can you add some to cover each query?

Yeah this was meant to Draft PR oops

@jakehwll
jakehwll marked this pull request as draft November 23, 2025 22:53
@jakehwll
jakehwll marked this pull request as ready for review November 24, 2025 12:18

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good, a couple small things to fix

Comment thread coderd/database/queries/aibridge.sql Resolved
Comment thread enterprise/coderd/aibridge_test.go Resolved
Comment thread enterprise/coderd/aibridge_test.go Resolved
Comment thread enterprise/coderd/aibridge_test.go Resolved

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@mtojek mtojek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ship it 👍

@jakehwll
jakehwll merged commit ca560d3 into main Nov 24, 2025
25 checks passed
@jakehwll
jakehwll deleted the jakehwll/remove-inflight-interceptions branch November 24, 2025 23:23
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants