fix(opencode): align v1 runtime contracts - #1669
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 425038cca9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
018ef6c to
e61572c
Compare
425038c to
3514db1
Compare
Merge activity
|
3514db1 to
9549005
Compare

Description
Align the OpenCode V1 adapter with the installed 1.18.29 SDK contract. This fixes nested application-log requests, current session and token event shapes, successful tool-hook output, and failed tool-part capture with deduplication. Legacy token fields remain covered explicitly.
Stacked on #1666.
Type of Change
Testing
pnpm --filter codemem test:plugin -- plugin-transform-hook.test.js(349 tests)pnpm --filter @codemem/opencode-plugin test(15 tests)pnpm run tscpnpm run buildpnpm --filter codemem test:packed-artifactnode --checkfor both touched JavaScript filesChecklist
pnpm run lintcompletes with existing repository warnings; Biome excludes the two touched.opencodefiles.