Files
ECC/.opencode/plugins
haelyraandSwapnil Sharma 0269ac0605 fix(opencode): run V2 shell reminders and post-edit hooks
OpenCode 2 renamed the V1 `bash` tool to `shell`, passes `{ path }` to
`write`/`edit`, and publishes no `file.edited` event. The V2 adapter from
#3854 forwarded those names unchanged, so on OpenCode 2 the git-push and
long-running-command reminders, the PR-created log, the strict typecheck,
the strict formatter, and the console.log warning never ran.

Map `shell` to `bash` and `path` to `filePath` in the V2 tool input
normalizer, and run the shared `file.edited` hook after a completed
write/edit tool call. Failed tool calls do not trigger it.

Carried forward from #3224, which found both gaps by live testing
OpenCode 2.0.12; #3635 proposed the same edit derivation.

Co-authored-by: Swapnil Sharma <swap.sha96@gmail.com>
2026-11-16 21:19:25 -05:00
..