Repository navigation
Queue sends during provider-owned compaction turns - #6381
Closed
bb-slop-cop[bot] wants to merge 1 commit into
Closed
bb-slop-cop[bot] wants to merge 1 commit into
bb-slop-cop[bot] wants to merge 1 commit into
Conversation
Collaborator
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.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
The server's manual-compaction wait gate recognized bb
/compactrequests but not an open root compaction item in a provider-owned maintenance turn. Sends during those turns could reach Pi while its manual compaction rejects prompts instead of remaining queued.Reproduction and root-cause report.
What changed
Keep the existing command-request guard and also recognize an open root compaction item in an active turn with no accepted bb request. Ordinary requested turns, completed compaction items, previous turns, and nested items retain their previous steering behavior.
The change stays within server thread admission: two files, 242 additions and 6 deletions, 248 changed text lines against
origin/main. No dependency, generated artifact, schema, stored-data, public API, or daemon-protocol change.How you verified
b6743a36bd9eae1408c35cfc2c7ab1d2419dc79d, it fails becausedeliveryissentinstead ofqueued. Repeated the corrected active-thread fixture in a second clean worktree: the same failure, with all 16 controls passing in each run.pnpm exec turbo run test --filter=@bb/server -- test/public/public-thread-compaction.test.ts test/services/threads/thread-events.test.ts test/threads/thread-send-dispatch.test.ts test/threads/requested-queue-drain.test.ts test/threads/queue-drain-failure.test.ts test/public/public-thread-offline-followup.test.ts: 102 tests pass across six files.pnpm exec turbo run typecheck --filter=@bb/serverpasses.pnpm exec turbo run build --filter=@bb/serverpasses.git diff --checkpasses; no binary changes. The server has no lint task.Fixes #6379