Repository navigation
Conversation
Contributor
|
Thanks @koenvg for the PR. This repo needs approval before a PR. Join the #contributors channel in Discord (https://discord.gg/kvBU6tJhcJ) and explain what you want to open a PR for and why. A maintainer then adds you to the allow list. This PR now closes on its own. Reopen it or open a new one after approval. |
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.
Human comments
What was wrong
Existing-thread selection logic marked every execution setting explicit when the user changed any execution field. If speed discovery failed, the displayed speed could fall back to Default while the thread still had saved Fast. A reasoning-only edit then made that display fallback an explicit speed override. The server accepted Default and lost the saved Fast preference. Embedded thread composers also omitted the existing per-field source metadata, which caused the server to treat all supplied fields as explicit legacy input.
Source task: BBP-201. This is the host prerequisite for account-gated Codex speed controls in bb-plugins PR #215.
What changed
selection-state.tsanduseThreadCreationOptions.ts. Keep intentional same-value choices observable, including an explicit Default choice when the display already shows Default. Thread reset still clears touched state.executionInputSourcesthrough the embedded composer's shared send, queue, programmatic-submit, and steer request fields. Preserve explicit snapshot permissions and editable permission behavior.No new request field, SDK export, CLI flag, server implementation, provider implementation, or daemon protocol version is introduced. The client forwards the existing metadata contract. The provider remains responsible for rejecting an unconfirmed non-default speed before dispatch.
How you verified
The new hook cases failed before the primary fix. Five embedded boundary cases failed before metadata propagation, then all 23 embedded tests passed. The server regression checks that reasoning-only intent preserves inherited Fast and that intentional Default is accepted.
Local checks used Turbo so upstream dependencies ran first:
pnpm exec turbo run test --filter=@bb/app: 5,712 passed, 6 skipped. This full run preceded the final programmatic test fixture argument correction; the affected suites and typechecks were rerun after that correction.pnpm exec turbo run test --filter=@bb/server -- test/services/threads/thread-execution-plan.test.ts test/services/threads/thread-execution-override.test.ts test/public/public-threads.execution-override.test.ts: 27 passed across three files. The full server suite was not run.pnpm exec turbo run typecheck --filter=@bb/app --filter=@bb/server: passed.pnpm exec turbo run build --filter=@bb/app --filter=@bb/server: passed.The independent implementation review originally returned block because the embedded composer omitted source metadata. This commit includes the parent's correction and regression tests. That original verdict remains unchanged; no independent post-fix approval is claimed. Keep this PR draft for upstream review.
These are local tests, including public-boundary fixtures. No browser/live failed-discovery acceptance, installation, reload, merge, or deployment was performed. The installed BB 0.46.0 host remains affected. The companion feature stays draft until the required host behavior ships and receives installed verification. This publication does not approve activation or release.