Repository navigation
Fix OpenCode free-tier one-shots with temporary sessions - #710
Open
devin-ai-integration[bot] wants to merge 3 commits into
Open
devin-ai-integration[bot] wants to merge 3 commits into
devin-ai-integration[bot] wants to merge 3 commits into
Conversation
OpenCode's free tier refuses the sessionless generate route
(`/api/experimental/generate`) with "free tier can only be used from within
OpenCode" — a policy on that endpoint, enforced by the provider gateway, not by
the model, the database, or the client. The session-scoped route
(`/api/session/{id}/generate`) returns the same `/data/text` shape and is
allowed, so one-shots now create a throwaway session, generate on it, and
delete it. Servers that predate the session route keep using the sessionless
one.
This fixes titles, starter prompts, skill-import screening, and compaction
summaries for anyone whose chat model is a free-tier OpenCode model.
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
Contributor
[Medium impact] The PR appears safe to merge; the previous error-reporting issue is fixed. SummaryRuns V2 one-shot requests through temporary sessions so free-tier models can answer.
The previous finding is fixed. No new issues were found. Tests were not run during this review.
|
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
Author
|
@greptileai Please review latest head |
This branch has not been deployed
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.
Closes #702
Fixes OR-549.
Summary
70511760093de1b8456f00b9c4bd10ca1474daec, preserving the original commit and author. Original PR remains open.Merge policy: preserve imported contributor history with a merge commit; do not squash or rebase. No merge authorized.
Test plan
6285fee7on Ubuntu 22.04.5 x86_64 with genuine OpenCode v2.0.32 andopencode/nemotron-3.5-super-vl-free: live dashboard chat succeeds, skill-import screening returns the reported 503.915071862de0748ecfdd74699da74969847397ea: 15 focused V2 tests; full Rust suite (1113 unit and 18 integration tests passed, 3 ignored); formatting, all-target clippy with warnings denied, and style lint. Full-suite execution isolates test Git configuration from VM identity/URL rewriting without changing commit configuration.The skill received a legitimate false/excluded classification, not an accepted import. The persisted decision matched its genuine metadata digest. Older-server fallback, timeout/error cleanup and other one-shot callers are covered by regression tests/code review, not independent live UI runs.
Recordings
Bug reproduction on main — Linux
Post-fix functionality — Linux
Human review
Yes. The shared harness serves several background operations and retains older-server fallbacks; Daniel Kim has the closest surrounding implementation history. Leave open for review and explicit merge approval.
Automation improvements
@opencode/cli@2.0.32installation and exact-model live preflight for OpenCode issues. Blueprint write permission was unavailable, so this remains a recommendation.Link to Devin session: https://app.devin.ai/sessions/c58486dd1dfe40bcaf8c08954ccdcfc3
Open in Devin Desktop: https://app.devin.ai/desktop/session/c58486dd1dfe40bcaf8c08954ccdcfc3?variant=devin