Skip to content

feat: track ai seat usage#22682

Merged
Emyrk merged 1 commit into
mainfrom
stevenmasley/ai_seats_pkg
Mar 16, 2026
Merged

feat: track ai seat usage#22682
Emyrk merged 1 commit into
mainfrom
stevenmasley/ai_seats_pkg

Conversation

@Emyrk

@Emyrk Emyrk commented Mar 5, 2026

Copy link
Copy Markdown
Member

When a user uses an AI feature, we record them in the ai_seat_state as consuming a seat.

Added in debouching to prevent excessive writes to the db for this feature. There is not need for frequent updates.

Emyrk commented Mar 5, 2026

Copy link
Copy Markdown
Member Author

@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from db248e9 to 4f9dbb1 Compare March 5, 2026 20:00
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from 23f2238 to 3768574 Compare March 5, 2026 20:00
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from 4f9dbb1 to bff6613 Compare March 5, 2026 21:47
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from d1f4942 to a6a7453 Compare March 5, 2026 21:47
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from bff6613 to c629b83 Compare March 5, 2026 21:52
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch 2 times, most recently from 019545a to a5a74c3 Compare March 5, 2026 22:08
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch 2 times, most recently from d504c51 to b6d579b Compare March 5, 2026 22:34
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from a5a74c3 to e563220 Compare March 5, 2026 22:34
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from e563220 to f93a06f Compare March 5, 2026 23:09
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch 3 times, most recently from 65b1e88 to abd1bd0 Compare March 11, 2026 01:08
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from 4b4cd29 to dd4605d Compare March 11, 2026 01:08
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch 2 times, most recently from 419fa3b to 3ccda0c Compare March 11, 2026 14:48
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch 2 times, most recently from 0e275ba to 844f670 Compare March 11, 2026 14:48
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch 2 times, most recently from 2e965f9 to 653b59d Compare March 11, 2026 15:06
@Emyrk Emyrk marked this pull request as ready for review March 11, 2026 15:06
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch 2 times, most recently from ab7b461 to 8e2958f Compare March 11, 2026 15:55
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from 844f670 to fe47143 Compare March 11, 2026 17:31
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch 2 times, most recently from 13433fd to dbf8b7f Compare March 12, 2026 13:26
@Emyrk Emyrk requested a review from deansheather March 12, 2026 14:25
Comment thread enterprise/aibridgedserver/aibridgedserver.go Outdated
Comment thread coderd/aiseats/aiseats.go Outdated
Comment thread coderd/aiseats/aiseats.go Outdated
Comment thread enterprise/aiseats/tracker.go Outdated
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from dbf8b7f to 3e0460b Compare March 13, 2026 16:28
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from fe47143 to 9e07704 Compare March 16, 2026 16:26
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from 3e0460b to 9be210b Compare March 16, 2026 16:26
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_crud branch from 9e07704 to c3ce378 Compare March 16, 2026 16:27
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from 9be210b to 4aeae52 Compare March 16, 2026 16:27
@Emyrk Emyrk changed the base branch from stevenmasley/ai_seats_crud to graphite-base/22682 March 16, 2026 16:53
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from 4aeae52 to c0bcb37 Compare March 16, 2026 16:54
@Emyrk Emyrk force-pushed the graphite-base/22682 branch from c3ce378 to cabb611 Compare March 16, 2026 16:54
@graphite-app graphite-app Bot changed the base branch from graphite-base/22682 to main March 16, 2026 16:54
@Emyrk Emyrk force-pushed the stevenmasley/ai_seats_pkg branch from c0bcb37 to 80fb8ef Compare March 16, 2026 16:54
@Emyrk Emyrk requested a review from deansheather March 16, 2026 17:19
Comment thread coderd/coderd.go
@Emyrk Emyrk merged commit abf59ee into main Mar 16, 2026
22 of 23 checks passed
@Emyrk Emyrk deleted the stevenmasley/ai_seats_pkg branch March 16, 2026 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants