Repository navigation
fix(queen): bees keep their context and survive a release - #526
Merged
dmitrii-f-t27 merged 1 commit intoOct 3, 2026
Merged
dmitrii-f-t27 merged 1 commit into
dmitrii-f-t27 merged 1 commit into
Conversation
Summaries: of 245 compactions on the runners in fifty minutes 194 came back empty, 158 of them at the fixed 60 s abort. TRIOS_COMPACTION_SUMMARIZER_MODELS lets a fast model on the bee's own key write the summary first (the bee's own model still gets its turn), and TRIOS_COMPACTION_SUMMARIZATION_TIMEOUT_MS names a longer wait (10 s..10 min, default 60 s). Drain: the server left ~2 s after SIGTERM and took every bee with it. With TRIOS_BEE_RUNNER_DRAIN_SECONDS a runner takes no new orders and waits for its bees; at the deadline it salvages and stores the branch of each one still running. The entrypoint now waits for a draining server instead of leaving at the first TERM.
✅ Tests passed — 2496/2556
|
dmitrii-f-t27
merged commit Oct 3, 2026
a61ed7c
into
fix/queen-worker-provider-and-prompt-size
20 of 21 checks passed
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.
Why
What
TRIOS_COMPACTION_SUMMARIZER_MODELS, e.g.openai-compatible=nvidia/nemotron-3-super-120b-a12b.TRIOS_COMPACTION_SUMMARIZATION_TIMEOUT_MS: 10 s..10 min. The default stays 60 s.TRIOS_BEE_RUNNER_DRAIN_SECONDS: 0..3600. The default 0 keeps the old behaviour.docker-entrypoint.shnow waits for a draining server. A trapped TERM used to endwaitat once and take the container down.Tests
bun test tests/api/queen-*.test.ts tests/agent: 1007 pass, 0 fail.Dmitrii Fedorov (@dmitrii-f-t27)