chore: version packages#129
Merged
Merged
Conversation
7367f0c to
2672554
Compare
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.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@glrs-dev/harness-opencode@0.16.2
Patch Changes
#128
3f34e76Thanks @iceglober! - Fix pilot build stalling with "0 events" at 5min.Two independent bugs that both blocked pilot from ever running:
Pilot's opencode server had no pilot-builder / pilot-planner
agents.
opencode serve(spawned by the SDK'screateOpencodeServer) does not load external plugins — only theinteractive
opencodeTUI does. Verified viaopencode serve --print-logs --log-level DEBUG: zeroservice=pluginlines. Thepilot worker's
session.promptAsync({ agent: "pilot-builder" })was accepted by the server but the prompt went nowhere, because
no agent was registered under that name. Fix: inject the two
pilot agents into the spawned server's config via the SDK's
createOpencodeServer({ config })option (forwarded to the serveras
OPENCODE_CONFIG_CONTENTenv var).EventBus received only server-wide events (heartbeats,
file-watcher), never session-level events. opencode's SSE
/eventendpoint scopes session events (message.updated,message.part.updated, session.idle) by subscriber directory, and
the match is exact, not prefix. The EventBus was constructed
once per run without a directory, so the SSE stream dropped every
session event the server published. Verified empirically: a 15s
window over a live pilot-builder session with no directory yielded
2 events (heartbeats); with the task's exact worktree directory,
27 events including session.idle. Fix: construct a new EventBus
per task, scoped to the task's worktree.
WorkerDeps.busbecameWorkerDeps.busFactory: (directory: string) => EventBus.Also:
Default
stallMsraised from 5min to 60min. The 5min default wascalibrated against a broken stream — with events actually flowing,
legitimate inter-event gaps during deep subagent work can exceed
5min. User-override still honored.
New diagnostic: when
PILOT_EVENT_LOGenv var is set, EventBusdumps every raw SSE event (with extracted sessionID, live
subscriber IDs, and matched-subscriber count) as JSONL to that
path. Zero overhead when unset.
Regression tests:
EventBus — directory scoping(3 tests lockingthe subscribe-call contract) and
buildPilotServerConfig(4 testslocking the injected-agents contract).