Skip to content

fix(cli): preserve line breaks in runner output - #291

Merged
Exeloo merged 1 commit into
NanoForge-dev:mainfrom
arpanjot-coding:fix/runner-captured-line-breaks
Nov 22, 2026
Merged

Exeloo merged 1 commit into
NanoForge-dev:mainfrom
arpanjot-coding:fix/runner-captured-line-breaks

Conversation

@arpanjot-coding

Copy link
Copy Markdown
Contributor

What does this PR do?

Collect subprocess output without stripping line breaks from individual stream chunks or inserting breaks between them. The runner removes one final line ending after assembly and uses the same text in failure logs.

Closes #283.

How do you test this PR?

  • Confirmed the multiline runner test fails on the original code and passes with the fix.
  • Ran pnpm repo:lint, pnpm repo:build, and pnpm repo:test in a Node 26 Docker container.

@arpanjot-coding

Copy link
Copy Markdown
Contributor Author

The Tests workflow for current head 963d6ca01e07 is waiting for maintainer approval (action_required).

Please approve this external-contributor workflow run so the repository checks can verify the current changes.

@Exeloo
Exeloo merged commit c0f4569 into NanoForge-dev:main Nov 22, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runner drops only the first line break of each output chunk

2 participants