Repository navigation
feat: limit concurrent chat agents with pooled admission #27902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
5d336df
feat: limit concurrent chat agents with pooled admission at acquisition
ibetitsmike edb9c68
test(coderd): cover FIFO admission, interrupt claim, and concurrent a…
ibetitsmike ae0122d
refactor(coderd/database): prioritize interrupts and harden candidate…
ibetitsmike 6de8c97
chore(enterprise/coderd/x/chatd): unexport pool caps and use WaitGrou…
ibetitsmike dee72c0
chore: tighten comments on chatd admission branch
ibetitsmike 0fc32c1
fix(coderd): partition acquisition by capacity pool and add dbauthz t…
ibetitsmike c822311
fix(coderd/x/chatd): floor acquisition batch size at two
ibetitsmike 161c4bf
fix(coderd/x/chatd): clear persisted queue markers without an admissi…
ibetitsmike 89603b3
docs(coderd/x/chatd): state that runtime-hours usage is not yet popul…
ibetitsmike 1e01395
fix(site): reject stale capacity events and populate db2sdk chat fixture
ibetitsmike da90da4
fix: count queue entries on marker wins and require newer status events
ibetitsmike 819439a
docs(coderd/x/chatd): correct acquisition ticker default to 1s
ibetitsmike 64d0d69
refactor: derive chat capacity queue state instead of persisting a ma…
ibetitsmike e52a28d
chore: tighten comments and document capacity gauges
ibetitsmike b391317
test(coderd/x/chatd): deflake capacity queue event and FIFO tests
ibetitsmike 5d3c88d
fix(coderd/x/chatd): clear queued banner when a different replica admits
ibetitsmike a36eddb
refactor(coderd): merge chat capacity admission and limits into one seam
ibetitsmike f54aed7
fix(coderd): clear capacity banner on interrupt and stale capacity ev…
ibetitsmike 07e6306
fix(coderd/x/chatd): publish capacity clear regardless of current cap
ibetitsmike 49beb28
fix(coderd/x/chatd): revalidate capacity queue entry from a fresh sna…
ibetitsmike e4d3e42
fix(coderd/x/chatd): reconcile unseen capacity queue entries on all-s…
ibetitsmike ab2a43e
fix(coderd): queue chats arriving behind a full-pool backlog
ibetitsmike d6c5e60
fix(coderd): close capacity admission bypass and stuck queued banner …
ibetitsmike 6c99ae7
fix(site/src/api/queries): reconcile rejected capacity events via ent…
ibetitsmike fcefcad
chore: clean up chat capacity comments
ibetitsmike 95806a3
fix: base chat capacity on live ownership
ibetitsmike e37d268
fix(enterprise/coderd/x/chatd): enforce runtime hard limit
ibetitsmike 8676e86
refactor: simplify chat capacity admission
ibetitsmike fbb4d32
fix: enforce chat capacity across deployments
ibetitsmike 8bdcf1a
chore: clean up concurrency comments
ibetitsmike cdadc19
fix(coderd/x/chatd): address review feedback on capacity comments and…
ibetitsmike 84f6666
docs: simplify chatd limiter architecture
ibetitsmike 6d1e03e
test(enterprise/coderd/x/chatd): pin capped unlock for disabled zero-…
jaaydenh d4e2eee
fix: align pooled chat admission with current main
ibetitsmike adb7efb
fix(coderd/database): renumber migration to avoid collision with main
ibetitsmike f56a4e2
fix(site/src/pages/AgentsPage): keep running-chat poll under the bind…
ibetitsmike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: count queue entries on marker wins and require newer status events
- Loading branch information
commit da90da4cc55983152d1df272ab72fe1bb0c67a55
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.