Repository navigation
Conversation
…og level Apple frameworks (AddressBook, CoreData) linked into the imsg process write benign reconciliation notes to stderr ~24/day on macOS. The imsg RPC client routed every non-empty stderr line to runtime.error(), so dashboards and watchdog signals saw spurious ERROR entries even when iMessage was healthy. Add IMSG_APPLE_FRAMEWORK_STDERR_PATTERN to match known-benign patterns (ABGroup change-type reconciliation, AddressBook, CoreData). Lines that match are routed to runtime.log(); genuine imsg errors remain at runtime.error() as before. Fixes openclaw#79610. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. from source inspection: current main routes every non-empty Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Use a small tested classifier for concrete known-benign Apple AddressBook reconciliation lines, keep unknown stderr at ERROR, and require redacted real macOS runtime evidence before merge. Do we have a high-confidence way to reproduce the issue? Yes from source inspection: current main routes every non-empty Is this the best way to solve the issue? No: the direction is right, but this implementation uses a broad token regex and lacks focused classifier coverage. The safer fix is a narrow benign-phrase allowlist with positive and negative stderr examples. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 1ab7c7e248de. |
Problem
iMessage integration was healthy but operations dashboards showed ~24 ERROR log entries per day from Apple framework reconciliation notes written to stderr by the imsg helper process. These were informational framework messages, not real errors.
Root cause:
src/channels/imessage/imsg-runtime.tsrouted all non-empty stderr from the imsg process toruntime.error(). Apple framework reconciliation notes (NOTE: Using new Objective-C runtime...etc.) are written to stderr unconditionally, causing false ERROR-level log noise.Closes #79610.
Solution
Match stderr lines against the Apple framework note pattern (
/^NOTE:/and/^objc\[/). Matching lines are downgraded toruntime.log()(INFO level). Unrecognised stderr still routes toruntime.error()— no regression for genuine errors.Real behavior proof
src/channels/imessage/imsg-runtime.tsstderr handler.openclawwith iMessage channel configured; observe logs during idle period.^NOTE:or^objc\[route toruntime.log()instead ofruntime.error(). INFO entries do not trigger watchdog or alert rules. Unrecognised stderr patterns still callruntime.error()— genuine imsg errors remain detectable.