fix: brain never reaches 'ready' status + console.warn → app.log#150
Merged
Conversation
|
No actionable comments were generated in the recent review. 🎉 Recent review infoRun configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Files selected for processing (3)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughWalkthroughThe plugin's startup sequence is fixed so ChangesStatus and bus logging fixes
Package version bump
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Tip: You can configure your own custom pre-merge checks in the settings. Finishing TouchesGenerate docstrings
Generate unit tests (beta)
Simplify code
Comment |
4067a9f to
8e0f0ef
Compare
This was referenced Jun 15, 2026
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.
Closes #149
Changes
1.
src/status.ts— Replaceconsole.warnwithapp.logconsole.warn→_client?.app?.log(...)for BusClient connect failuresconsole.warn→_client?.app?.log(...)for bus publish failures2.
src/four-opencode-brain.ts— Always callupdateStatus("ready")at init endif (!autoIngest)guard so the plugin always reaches"ready"statusbusy→readytransitions3.
src/status.ts— Test helpers +_sessionIdfallbackresetBusConnection()andsetProjectIdForTest()exports for test isolationwrite()now falls back to_sessionIdwhen no ALS context exists4.
package.json— Patch bump 1.7.6 → 1.7.7Verification
bun run buildsucceedsbun test— 254 pass, 0 failSummary by cubic
Ensures the brain reaches "ready" after init (fixes #149) and routes warnings through app logging. Also hardens status publish logic and adds small test helpers.
Bug Fixes
Dependencies
Written for commit 8e0f0ef. Summary will update on new commits.
Summary by CodeRabbit
Chores
Bug Fixes