Reload a thread's provider session from current config - #2445
Open
SawyerHood wants to merge 1 commit into
Open
Conversation
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
Changing a provider's configuration (pi extensions, AGENTS.md, skills, plugin agent config, dynamic tools) needed a new thread; an idle thread's provider session could not be rebuilt in place.
What changed
AgentRuntime.reloadThread→ daemonthread.reload(stop with intentrelease, then resume the sameproviderThreadId, no timeline events) →POST /api/v1/threads/:id/reload→sdk.threads.experimental_reload→bb thread reload [id] [--self]→useReloadThread. Both composers treat an exact/reloadas the operation, not model input.idleanderrorthreads may reload.HOST_DAEMON_PROTOCOL_VERSION170 → 171 (new daemon command). Guide (bb guide threads),bb-cliskill, anddocs/api_to_audit.mdupdated.Prerequisite: #2444 (stack order; shares
routes/threads/actions.tscontext only).How you verified
turbo run typecheck;turbo run testfor@bb/server(public-thread-reload.test.ts),@bb/host-daemon(thread-dispatch.test.ts, dispatch/runtime-manager mocks),@bb/agent-runtime,@bb/cli,@bb/app(thread-detail, embedded-chat),@bb/host-daemon-contract,@bb/server-contract,@bb/sdk.Fixes: none (upstream stack split).