Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: normalize CRLF line endings for Windows compatibility#464

Merged
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/crlf-line-endings-463breaking-brake/cc-wf-studio:fix/crlf-line-endings-463Copy head branch name to clipboard
Jan 17, 2026
Merged

fix: normalize CRLF line endings for Windows compatibility#464
breaking-brake merged 1 commit intomainbreaking-brake/cc-wf-studio:mainfrom
fix/crlf-line-endings-463breaking-brake/cc-wf-studio:fix/crlf-line-endings-463Copy head branch name to clipboard

Conversation

@breaking-brake
Copy link
Copy Markdown
Owner

Problem

Build and CLI output processing fail on Windows due to CRLF (\r\n) line endings.

Root Cause

  • split('\n') leaves trailing \r at end of each line
  • Regex $ anchors and JSON.parse() fail due to trailing \r

Solution

Normalize CRLF to LF immediately after file reading or stream processing.

Changes

File: scripts/generate-editing-flow.ts

  • Add CRLF normalization in parseMarkdown() function

File: src/extension/services/claude-code-service.ts

  • Add CRLF normalization in streaming processing loop

Impact

  • Enables build (npm run build) on Windows
  • Enables Claude Code CLI streaming output processing on Windows
  • No impact on Unix/Mac environments (no CRLF to normalize)

Testing

  • npm run format && npm run lint && npm run check passed
  • npm run build passed
  • Verified on Windows environment

Closes #463

🤖 Generated with Claude Code

- Add CRLF normalization in parseMarkdown() for generate-editing-flow.ts
- Add CRLF normalization in streaming processing for claude-code-service.ts

Closes #463

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@breaking-brake breaking-brake merged commit d2e1c5f into main Jan 17, 2026
3 checks passed
@breaking-brake breaking-brake deleted the fix/crlf-line-endings-463 branch January 17, 2026 10:16
@breaking-brake breaking-brake mentioned this pull request Jan 17, 2026
braking-brake-semantic-release Bot pushed a commit that referenced this pull request Jan 17, 2026
## [3.15.3](v3.15.2...v3.15.3) (2026-01-17)

### Bug Fixes

* normalize CRLF line endings for Windows compatibility ([#464](#464)) ([d2e1c5f](d2e1c5f)), closes [#463](#463)
* use VSCode default terminal to find Claude CLI on Windows ([#465](#465)) ([dfa435b](dfa435b))
@braking-brake-semantic-release
Copy link
Copy Markdown

🎉 This PR is included in version 3.15.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

fix: CRLF line ending issues on Windows

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.