This repository was archived by the owner on May 9, 2026. It is now read-only.
feat: agent 0.12.13 (wizard: saved-key chip, OpenRouter label, fix empty-string key wipe)#96
Merged
Merged
Conversation
…pty-string key wipe) - OpenRouter provider option is just "OpenRouter" now, not "(100s of models)" which was misleading after 0.12.12's curated-top-10 trim. - Populated API-key fields show a green "saved" chip + tinted input, so the eye can scan which providers already have a key without reading every hint line. Empty slots stay neutral. - saveConfig() no longer wipes shared-keys.json with empty-string defaults. When a caller passed a full Config (notably loadConfig's fresh-install branch) through saveConfig, every empty-string shared key field was routed into saveSharedKeys and silently overwrote the user's real keys. Now empty strings are filtered out of the split; callers that legitimately need to clear a key must call saveSharedKeys directly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
saveConfig()no longer wipes shared-keys.json. Latent bug: when a caller passed a full Config through saveConfig (notably loadConfig's fresh-install branch, which parses schema defaults likeanthropicApiKey: ''), every empty-string shared-key field was routed into saveSharedKeys and silently overwrote any real keys on disk. Now empty strings are filtered out of the split. Callers that legitimately need to clear a key should callsaveSharedKeysdirectly.Test plan
pnpm run typecheckcleanpnpm run buildcleannode scripts/smoke-normalize-model.mjs23/23 pass/, verify 2.row.is-set+ 2<span class="badge-set">appear andOpenRouter (100s of models)no longer in output🤖 Generated with Claude Code