Repository navigation
slack: start a conversation's thread on the project's connected machine (BB-38) - #67
Merged
trotterdylan merged 1 commit intoOct 23, 2026
Conversation
…ne (BB-38)
The first real DM to the bb app answered "HTTP 502: Local host daemon is
not initialized". The plugin spawned the thread with
`environment: { type: "project-default" }`, which a plugin cannot use
the way the composer does: nothing resolves the default, so bb fell back
to the server's own local host, and on a bb-gate pod that daemon never
exists.
Pick the machine the way stewards does, and the environment the way the
developer does: replay the provider and inputs of the project's newest
active environment on its machine when that machine is connected; else
the project's checkout (personal workspace for the personal project) on
the default source's connected machine; and leave it to bb only when the
project has no connected machine at all.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
BB-38 (https://linear.app/bit-complete/issue/BB-38). With bb-gate#30 in, a DM now routes and wakes the right server, but the first reply was the backstop:
Cause.
spawnThreadpassedenvironment: { type: "project-default" }. Per the SDK that seeds nothing and expects the composer to resolve the default; from a plugin nobody does, so bb fell back to the server's own local host, which on a bb-gate pod has no daemon.Fix.
environmentFor(project)chooses a concrete environment on a connected machine, in order:{ type: "provider", environmentProviderId, inputs, machine: { type: "existing", hostId } }). This follows whatever the developer actually uses (multi-repo workspaces here).project-checkout, orpersonal-workspacefor the personal project) on the default source's machine, skipping a default source whose machine is off for one that is on, as stewards'projectHostdoes.project-defaultonly when the project has no connected machine at all.Tests: the harness now stubs
hosts.list,projects.getandenvironments.list; the first-wake test asserts the replayed provider, and three new cases cover the checkout fallback, the off-machine default source, and the no-machine case.tsc --noEmitandvitest rungreen (37 tests).Lane: no-review. A narrow bug fix making the plugin do what it was meant to do; no contract, setting or identity change.
On merge: the
bb-gatebb-serverworkflow re-pinsbb-pluginsmain within ten minutes and builds a new image; the router stages it on every developer's server, picked up on Restart now or in the quiet window. Do not press Restart now from a thread you still need.🤖 Generated with Claude Code