Skip to content

CLI: codexbar prints ungated [codex notify] debug lines to stderr #2952

Description

@urda

Running any codexbar command that probes Codex prints this to stderr:

[codex notify] remoteControl/status/changed

It comes from debugWriteStderr in Sources/CodexBarCore/UsageFetcher.swift:848, which despite the name has no debug gate. It fires on every JSON-RPC notification (line 995) and every child stderr line (line 946).

Harmless (the branch continues, stdout is untouched), just noisy.

Fix: route both to Self.log.debug. The CLI already defaults to log level .error with a stderr destination (CLIEntry.swift:416-421), so the lines would disappear by default and return under --verbose. That also drops the #if !os(Linux) compile guard and routes untrusted child stderr through LogRedactor.

CodexBar 0.50.0, Codex CLI 0.147.0, macOS 26.6.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal priority bug or improvement with limited blast radius.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.no-staleExempts this issue from stale automation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions