Repository navigation
stewards: write init's files on the thread's machine - #21
Merged
trotterdylan merged 1 commit intoOct 18, 2026
Merged
trotterdylan merged 1 commit into
trotterdylan merged 1 commit into
Conversation
`bb stewards init` read the thread's machine from a top-level `environmentHostId` that the SDK's thread does not have (it is `environment.hostId`), so it always left the write to core, which picks the server's own daemon. bb-gate's servers have none, and init failed with "Local host daemon is not initialized". Read `environment.hostId`, and fall back to the project's machine as spawns already do. Co-Authored-By: Claude Opus 5.5 <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 stewards initfailed on bb-gate servers withHTTP 502: Local host daemon is not initialized.It looked up the thread's machine as a top-level
environmentHostId, which the SDK's thread doesn't have. The SDK keeps it atenvironment.hostId, asworkstreamsalready reads it. So the lookup always came back empty,files.writewent out without ahostId, and core sent the write to the server's own daemon. bb-gate's servers don't have one.threadInfonow readsenvironment.hostId.initfalls back toprojectHost(projectId), the same machine that steward spawns already use.Two regression tests cover the thread's machine and the project fallback. Both fail without the fix, and the stewards suite passes with it (81 tests).
Merging restarts every developer's server when the new bb-server image rolls out.
🤖 Generated with Claude Code
— from bb thread thr_5qzqtic3f9