GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||
GeezerVison is showing github.com — fix(core): apply Selection segment rules in v1 model migration by dezren39 · Pull Request #511 · developing-today-forks/opencode Conversation
|
|
This PR doesn't fully meet our contributing guidelines and PR template. What needs to be fixed:
Please edit this PR description to address the above within 72 hours, or it will be automatically closed. If you believe this was flagged incorrectly, please let a maintainer know. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 19 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
The following comment was made by an LLM, it may be inaccurate: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 483bbee05b
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| if (!providerPattern.test(provider) || !segmentsPattern.test(model)) return undefined | ||
| if (variant !== undefined && variant.length > 0 && !variant.includes("#") && !segmentsPattern.test(variant)) | ||
| return undefined |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Diagnose selections rejected by the new segment checks
For legacy agent, mode, or command entries with values such as model: "openai//gpt-4" or variant: "a//b", these checks now omit the entire model selection, but diagnoseSelection() in packages/core/src/config/normalize.ts still uses the old loose model regex and only checks variants for emptiness or #. Consequently, these inputs normalize successfully with no diagnostic explaining that their configured model was discarded. Update the diagnostic predicates alongside the migration checks so users can identify and repair the rejected setting rather than silently losing their model override.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
fix(core): v1 config migration modelSelection kept the pre-tightening loose pattern — migrated small_model bypasses the #459/#466 segment rules (and agent/command paths now throw)
There was an error while loading. Please reload this page.