chore(deps): bump @opencode-ai/plugin from 1.1.23 to 1.2.27#40
Merged
Conversation
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>
- 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>
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps @opencode-ai/plugin from 1.1.23 to 1.2.27.
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill 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/pluginto 1.2.27 and adjust the mindmodel system prompt hook for compatibility. Fixes a TypeScript error introduced by the update.Dependencies
@opencode-ai/pluginfrom 1.1.23 to 1.2.27.Bug Fixes
sessionIDbefore callingexperimental.chat.system.transformand cast only when present (plugin 1.2.27 makessessionIDoptional).Written for commit de9db64. Summary will update on new commits.