Skip to content

fix(opencode): align v1 runtime contracts - #1669

Merged
kunickiaj merged 1 commit into
mainfrom
09-08-fix_opencode_align_v1_runtime_contracts
Sep 9, 2026
Merged

fix(opencode): align v1 runtime contracts#1669
kunickiaj merged 1 commit into
mainfrom
09-08-fix_opencode_align_v1_runtime_contracts

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Sep 9, 2026

Copy link
Copy Markdown
Owner

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

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • pnpm --filter codemem test:plugin -- plugin-transform-hook.test.js (349 tests)
  • pnpm --filter @codemem/opencode-plugin test (15 tests)
  • pnpm run tsc
  • pnpm run build
  • pnpm --filter codemem test:packed-artifact
  • node --check for both touched JavaScript files
  • Added/updated tests for changes

Checklist

  • Code follows project style
  • Self-review completed
  • Independent code review completed
  • Documentation not needed; public behavior and configuration are unchanged
  • No new warnings introduced

pnpm run lint completes with existing repository warnings; Biome excludes the two touched .opencode files.

kunickiaj commented Sep 9, 2026

Copy link
Copy Markdown
Owner Author

@kunickiaj
kunickiaj marked this pull request as ready for review September 9, 2026 05:23
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T15:50:10.308136Z 9549005 New commits
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread packages/opencode-plugin/.opencode/plugins/codemem.js
@kunickiaj
kunickiaj force-pushed the 09-08-chore_opencode_align_v1_compatibility_baseline branch from 018ef6c to e61572c Compare September 9, 2026 05:40
@kunickiaj
kunickiaj force-pushed the 09-08-fix_opencode_align_v1_runtime_contracts branch from 425038c to 3514db1 Compare September 9, 2026 05:40

kunickiaj commented Sep 9, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

  • Sep 9, 3:44 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Sep 9, 3:46 PM UTC: Graphite rebased this pull request as part of a merge.
  • Sep 9, 3:51 PM UTC: @kunickiaj merged this pull request with Graphite.

@kunickiaj
kunickiaj changed the base branch from 09-08-chore_opencode_align_v1_compatibility_baseline to graphite-base/1669 September 9, 2026 15:44
@kunickiaj
kunickiaj changed the base branch from graphite-base/1669 to main September 9, 2026 15:44
@kunickiaj
kunickiaj force-pushed the 09-08-fix_opencode_align_v1_runtime_contracts branch from 3514db1 to 9549005 Compare September 9, 2026 15:45
@kunickiaj
kunickiaj merged commit cb1f7fb into main Sep 9, 2026
15 checks passed
@kunickiaj
kunickiaj deleted the 09-08-fix_opencode_align_v1_runtime_contracts branch September 9, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant