diff options
| author | Drew Ritter <drew@ritter.dev> | 2026-11-02 13:38:19 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-02 13:38:19 -0800 |
| commit | ca5ba4e5c9aaba36f411b830542453f5cfd3c713 (patch) | |
| tree | 335eecee026317ef5699bf6f0a0da7104cffed7b /docs/README.opencode.md | |
| parent | 587f04636d67a32d2edf65550085cdf2d70260a4 (diff) | |
| parent | 38fd8323e43f4b13e8bdc9d62b85ca1ed524a3f8 (diff) | |
Merge pull request #2601 from obra/fix/2391-opencode-compaction-bootstrap
fix(opencode): inject the V2 bootstrap on compaction and generate requests
Diffstat (limited to 'docs/README.opencode.md')
| -rw-r--r-- | docs/README.opencode.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/README.opencode.md b/docs/README.opencode.md index f907374..252e2b5 100644 --- a/docs/README.opencode.md +++ b/docs/README.opencode.md @@ -126,7 +126,7 @@ The plugin does two things, using host-flavor-specific APIs: - **V2:** via the `setup()` function using `ctx.skill.transform()` (V2 native API, confirmed active at runtime) 2. **Injects bootstrap context** with a flavor-specific tool mapping: V1 sessions get the V1 tool names below, and V2 sessions get the V2 names. - **V1:** via `experimental.chat.messages.transform` hook - - **V2:** via `ctx.session.hook("context")` — the V2 equivalent (confirmed active at runtime) + - **V2:** via `ctx.session.hook()` on `context`, `compaction`, and `generate` — the V2 equivalent (confirmed active at runtime). Registering on all three keeps compaction requests on the same cached prompt prefix as normal turns. Controller sessions receive the using-superpowers bootstrap in transient model context. Delegated child sessions keep access to native skills but do not receive @@ -234,7 +234,7 @@ package name, not a local directory. ### Bootstrap not appearing - **V1:** Check OpenCode version supports `experimental.chat.messages.transform` hook. Restart OpenCode after config changes. -- **V2:** The plugin uses `ctx.session.hook("context")` for bootstrap injection. Verify the plugin loaded via `opencode api get /api/plugin`. Restart with `opencode service restart` after config changes. The `opencode2` command may be available as an alias. +- **V2:** The plugin uses `ctx.session.hook()` on `context`, `compaction`, and `generate` for bootstrap injection. Verify the plugin loaded via `opencode api get /api/plugin`. Restart with `opencode service restart` after config changes. The `opencode2` command may be available as an alias. ## Getting Help |
