Problem
In src/status.ts, the getBus() function calls BusClient.connect() WITHOUT an onWarn callback. This means all bus warnings (stderr output, fallback messages) go to raw console.warn instead of opencode's structured app.log.
Expected
All bus warnings should be routed through _client?.app?.log with proper structured logging.
Proposed Fix
Add onWarn callback to BusClient.connect() that:
- Safely JSON-stringifies args (try/catch for circular references)
- Routes warnings through
_client?.app?.log as level: warn
Affected File
src/status.ts — getBus() function (lines ~95-106)
Problem
In
src/status.ts, thegetBus()function callsBusClient.connect()WITHOUT anonWarncallback. This means all bus warnings (stderr output, fallback messages) go to rawconsole.warninstead of opencode's structuredapp.log.Expected
All bus warnings should be routed through
_client?.app?.logwith proper structured logging.Proposed Fix
Add
onWarncallback toBusClient.connect()that:_client?.app?.logaslevel: warnAffected File
src/status.ts—getBus()function (lines ~95-106)