What's Changed
Security
- OpenCode import path traversal fixed. Importing
opencode.json(c)with inlineagent/commandentries no longer writes outside.rulesync/. Keys with../.segments, a leading/, backslashes, colons or control characters are refused with a warning. Applies to theopencode,opencodev1andmimocodetargets. (#4098) - Curated command bodies can no longer become frontmatter. If a source-installed command's cleaned frontmatter is empty and its body opens with a
---block, rulesync now writes an explicit empty frontmatter block, so the body's block cannot bypass the curation allowlist. (#4098)
Fixes
- Antigravity (
antigravity-ide,antigravity-cli): project-scope generate warns once per target when a hook command uses a relative path such asnode scripts/check.mjs. Antigravity documents no project-directory variable, and agy CLI runs hooks from.agents/, so such paths do not resolve against the project root. Commands written in anantigravity-cli/antigravity-ideoverride block are not warned about. (#4099, closes #4090) - Codex CLI (
codexcli): whenrulesync generateruns on Windows, a permission profile with a filesystemdenyentry now triggers a warning. Codex has been seen to hang indefinitely on Windows with such a profile, likely openai/codex#53537. The warning lists the denied paths and the workarounds. (#4101, closes #4089)
Tests
- Pin the Freebuff regex-matcher passthrough on import, and assert that the
commandRegexwarning is emitted exactly once per target. (#4100, closes #4087)
Dependencies
Contributors
Full Changelog: v43.20.0...v43.20.1