Skip to content

fix(terminal): redirect note output to stderr in JSON/RPC mode#25152

Open
drvoss wants to merge 1 commit intoopenclaw:mainfrom
drvoss:fix/doctor-notes-json-stderr
Open

fix(terminal): redirect note output to stderr in JSON/RPC mode#25152
drvoss wants to merge 1 commit intoopenclaw:mainfrom
drvoss:fix/doctor-notes-json-stderr

Conversation

@drvoss
Copy link
Contributor

@drvoss drvoss commented Feb 24, 2026

Summary

Makes src/terminal/note.ts write to stderr when loggingState.forceConsoleToStderr is set.

Also cherry-picks a pre-existing Windows CI test fix from PR #26049 ( est(bash-tools): fix Windows CI path prepend assertion). That fix is a prerequisite for the Windows test job to pass on any PR running the full Node test suite; it is unrelated to this feature change and was submitted as a standalone PR.

AI-assisted: This PR was prepared with GitHub Copilot assistance and reviewed by the author. All changes were verified against the existing test suite and manually inspected.

Change Type

  • Bug fix

Scope

  • Core / agents

Linked Issue

N/A

User-visible Changes

See summary above.

Security Impact (required)

No security impact. Logging output destination change only.

Repro + Verification

  1. Checkout branch and run pnpm test.
  2. Verify the relevant unit tests pass.

Evidence

Existing test suite passes on Linux and macOS.

Human Verification (required)

  • I have reviewed all changed files and confirmed the fix is correct and complete.

Compatibility

No breaking changes.

Failure Recovery

N/A

Risks

Low. Targeted single-file fix with existing test coverage.

@drvoss drvoss force-pushed the fix/doctor-notes-json-stderr branch from d5647b6 to 69335b9 Compare February 25, 2026 00:39
@openclaw-barnacle openclaw-barnacle bot added docker Docker and sandbox tooling agents Agent runtime and tooling labels Feb 25, 2026
@drvoss drvoss force-pushed the fix/doctor-notes-json-stderr branch from c9aca76 to d357bb4 Compare February 25, 2026 02:59
@openclaw-barnacle openclaw-barnacle bot added agents Agent runtime and tooling and removed docker Docker and sandbox tooling agents Agent runtime and tooling labels Feb 25, 2026
@openclaw-barnacle
Copy link

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle bot added the stale Marked as stale due to inactivity label Mar 3, 2026
@drvoss
Copy link
Contributor Author

drvoss commented Mar 3, 2026

Updating this PR to keep it active. The fix is still valid and ready for review.

@openclaw-barnacle openclaw-barnacle bot removed the stale Marked as stale due to inactivity label Mar 4, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@drvoss drvoss force-pushed the fix/doctor-notes-json-stderr branch from 53ec5ef to 975a747 Compare March 7, 2026 06:15
@openclaw-barnacle openclaw-barnacle bot removed the agents Agent runtime and tooling label Mar 7, 2026
@drvoss
Copy link
Contributor Author

drvoss commented Mar 7, 2026

Rebased onto current main with a clean single-commit branch. Guards
ote() output behind loggingState.forceConsoleToStderr to keep stdout clean in JSON/RPC mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant