-
Notifications
You must be signed in to change notification settings - Fork 4.2k
fix(model-requirements): remove stale github-copilot from gpt-5-nano fallback (fixes #3359) #3377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ export async function loadSkillFromPath(options: { | |
| const mcpJsonMcp = await loadMcpJsonFromDir(options.resolvedPath) | ||
| const mcpConfig = mcpJsonMcp || frontmatterMcp | ||
|
|
||
| const baseName = data.name || options.defaultName | ||
| const baseName = data.name == null ? options.defaultName : String(data.name) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Converting every non-null Useful? React with 👍 / 👎. |
||
| const skillName = namePrefix ? `${namePrefix}/${baseName}` : baseName | ||
| const originalDescription = data.description || "" | ||
| const isOpencodeSource = options.scope === "opencode" || options.scope === "opencode-project" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,10 +94,10 @@ export const AGENT_MODEL_REQUIREMENTS: Record<string, ModelRequirement> = { | |
| }, | ||
| "multimodal-looker": { | ||
| fallbackChain: [ | ||
| { providers: ["openai", "opencode", "vercel"], model: "gpt-5.4", variant: "medium" }, | ||
| { providers: ["openai", "github-copilot", "opencode", "vercel"], model: "gpt-5.4", variant: "medium" }, | ||
| { providers: ["opencode-go", "vercel"], model: "kimi-k2.5" }, | ||
| { providers: ["zai-coding-plan", "vercel"], model: "glm-4.6v" }, | ||
| { providers: ["openai", "github-copilot", "opencode", "vercel"], model: "gpt-5-nano" }, | ||
| { providers: ["openai", "opencode", "vercel"], model: "gpt-5-nano" }, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Removing Useful? React with 👍 / 👎. |
||
| ], | ||
| }, | ||
| prometheus: { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using
data.name == null ? ... : String(data.name)treats empty-string frontmatter names as valid, so a skill withname: ""now gets registered with an empty command name instead of falling back to the file/directory-deriveddefaultName. This can create unnamed skills and key collisions during deduplication/lookup (skills.find(s => s.name === name)), whereas the previous||behavior safely used the inferred name for blank values.Useful? React with 👍 / 👎.