Skip to content

fix(antigravity): replace Set-Content with WriteAllText to avoid UTF-8 BOM (#367) - #6

Merged
NyxSpecter4 merged 1 commit into
mainfrom
fix/windows-utf8-bom
Sep 11, 2026
Merged

NyxSpecter4 merged 1 commit into
mainfrom
fix/windows-utf8-bom

Conversation

@NyxSpecter4

Copy link
Copy Markdown
Owner

Fixes monk-io#367

Root Cause: jsonc-parser v3.3.1 (used by VS Code and Antigravity) returns the parsed object but logs errors: [{ offset: 0, error:1 }] (InvalidSymbol) when Windows PowerShell writes a UTF-8 BOM (0xEF 0xBB 0xBF).

Fix: Replace Set-Content -Encoding UTF8 with [System.IO.File]::WriteAllText using (New-Object System.Text.UTF8Encoding $false) to write without BOM.

File Changed: scripts/start-monk-agent.ps1

Test: Check that offset 0 is byte 0x7B ({) not 0xEF (BOM start)

Branch: fix/windows-utf8-bom from NyxSpecter4/monk-plugin

Author: Meli (via direct commit)

@qodo-code-review

Copy link
Copy Markdown

ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: f3187eb9-00fc-49c5-862f-5e9721b03459


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NyxSpecter4
NyxSpecter4 merged commit b692d50 into main Sep 11, 2026
1 check 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.

[Bug bounty] Register-AntigravityMcp writes UTF-8 BOM into mcp_config.json on Windows PowerShell

1 participant