Skip to content

fix(opencode): install v1 when opencode.json has comments - #372

Merged
umputun merged 1 commit into
masterfrom
opencode-v1-jsonc-install
Oct 6, 2026
Merged

umputun merged 1 commit into
masterfrom
opencode-v1-jsonc-install

Conversation

@umputun

@umputun umputun commented Oct 6, 2026

Copy link
Copy Markdown
Owner

the v1 install stopped with "Invalid opencode.json or plugin array." and copied nothing when opencode.json had a comment or a trailing comma. OpenCode reads that file as JSONC, so the config is valid, and the installer before #370 updated the files there.

install_v1 now copies the files, leaves the config byte-identical and prints a notice to check the registration by hand. A parseable config of the wrong shape still fails before any copy.

also adds app/ptybridge and an OpenCode section to CLAUDE.md, and the package to the list in docs/ARCHITECTURE.md.

Related to #370

the v1 install stopped with "Invalid opencode.json or plugin array." and copied nothing when opencode.json had a comment or a trailing comma. OpenCode reads that file as JSONC, so the config is valid. The installer now copies the files, leaves the config byte-identical and prints a notice to check the registration by hand. A parseable config of the wrong shape still fails before any copy.

also documents app/ptybridge and the OpenCode plugin in CLAUDE.md and docs/ARCHITECTURE.md.

Related to #370
Copilot AI balanced review requested due to automatic review settings October 6, 2026 16:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@umputun
umputun merged commit d2e4a78 into master Oct 6, 2026
7 checks passed
@umputun
umputun deleted the opencode-v1-jsonc-install branch October 6, 2026 17:09
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.

2 participants