Skip to content

chore(deps): bump @opencode-ai/plugin from 1.1.23 to 1.2.27#40

Merged
vtemian merged 2 commits intomainfrom
dependabot/npm_and_yarn/opencode-ai/plugin-1.2.27
Mar 17, 2026
Merged

chore(deps): bump @opencode-ai/plugin from 1.1.23 to 1.2.27#40
vtemian merged 2 commits intomainfrom
dependabot/npm_and_yarn/opencode-ai/plugin-1.2.27

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 16, 2026

Bumps @opencode-ai/plugin from 1.1.23 to 1.2.27.

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Summary by cubic

Upgrade @opencode-ai/plugin to 1.2.27 and adjust the mindmodel system prompt hook for compatibility. Fixes a TypeScript error introduced by the update.

  • Dependencies

    • Bump @opencode-ai/plugin from 1.1.23 to 1.2.27.
  • Bug Fixes

    • Guard sessionID before calling experimental.chat.system.transform and cast only when present (plugin 1.2.27 makes sessionID optional).

Written for commit de9db64. Summary will update on new commits.

Bumps @opencode-ai/plugin from 1.1.23 to 1.2.27.

---
updated-dependencies:
- dependency-name: "@opencode-ai/plugin"
  dependency-version: 1.2.27
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 16, 2026
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

- Regenerate bun.lock for @opencode-ai/plugin 1.2.27
- Fix TS2345: guard sessionID before passing to mindmodel hook
  (plugin 1.2.27 made sessionID optional on system.transform input)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

1 issue found across 2 files (changes from recent commits).

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="src/index.ts">

<violation number="1" location="src/index.ts:471">
P1: Skipping the mindmodel system hook when `sessionID` is absent drops the current injection and leaves stale `pendingInjection` state that can bleed into a later request.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

// Inject mindmodel patterns into system prompt (if enabled)
if (mindmodelInjectorHook) {
await mindmodelInjectorHook["experimental.chat.system.transform"](input, output);
if (mindmodelInjectorHook && input.sessionID) {
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot Mar 17, 2026

Choose a reason for hiding this comment

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

P1: Skipping the mindmodel system hook when sessionID is absent drops the current injection and leaves stale pendingInjection state that can bleed into a later request.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At src/index.ts, line 471:

<comment>Skipping the mindmodel system hook when `sessionID` is absent drops the current injection and leaves stale `pendingInjection` state that can bleed into a later request.</comment>

<file context>
@@ -468,8 +468,11 @@ IMPORTANT:
       // Inject mindmodel patterns into system prompt (if enabled)
-      if (mindmodelInjectorHook) {
-        await mindmodelInjectorHook["experimental.chat.system.transform"](input, output);
+      if (mindmodelInjectorHook && input.sessionID) {
+        await mindmodelInjectorHook["experimental.chat.system.transform"](
+          input as typeof input & { sessionID: string },
</file context>
Fix with Cubic

@vtemian vtemian merged commit 3dabc2e into main Mar 17, 2026
2 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/opencode-ai/plugin-1.2.27 branch March 17, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant