mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-23 16:25:30 +00:00
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>