fix: restore compatibility with OpenCode ≥1.15 and update models#97
Merged
Conversation
Contributor
Author
|
This was added primarily to fix #76 and update the included models to match latest from the kiro docs: https://kiro.dev/docs/models/ Tested on OpenCode v1.15.5, plugin version 1.10.1. I bumped the version without really thinking about it. My apologies if that was out of pocket. |
Owner
Merge notesMerged this PR after applying maintainer adjustments on top of the original branch. Adjustments included:
Local verification before merge:
Remote PR check before merge:
|
RvVeen
pushed a commit
to Servoy/opencode-kiro-auth
that referenced
this pull request
Jun 1, 2026
…ckernelz#97) Merge PR tickernelz#97 with maintainer adjustments:\n\n- Align default plugin provider id with the new kiro provider id.\n- Harden OpenCode auth bootstrap so malformed auth.json files are not overwritten and restrictive file permissions are preserved.\n- Add regression tests for auth bootstrap, provider id, Zod enum compatibility, and empty OpenAI-compatible stream chunks.\n- Bump @opencode-ai/plugin to 1.15.11 and align docs/model context examples.
RvVeen
added a commit
to Servoy/opencode-kiro-auth
that referenced
this pull request
Jun 1, 2026
…a cherry-pick) PR tickernelz#97's changes are already in this branch (cherry-picked into 5703be6 with conflict resolution). This -s ours merge records upstream/master as an ancestor so the fork is purely ahead of upstream — making the PR diff clean and auto-mergeable — without changing our tree.
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.
kiro-authbut config useskiro; OpenCode silently skipped the auth loader entirelyundefined/chat/completionsURL error — OpenCode ≥1.15 readsmodel.api.urlbeforeoptions.baseURL; field was empty for custom providers, fixed by settingprovider.apiin the config hookauth.jsonentry exists; added auto-bootstrap to write a placeholder on first runchoicesarrays;@ai-sdk/openai-compatibletreated the stream as empty, fixed by filtering unmappable eventsglm-5andclaude-opus-4-7, corrected Sonnet 4.6 and Opus 4.6 context limits from 200K to 1MBump to version
1.11.0and fix #76