Local fork of continuedev/continue for auto-approve and full-access mode experiments
* fix: update existing model API key instead of creating duplicate when re-adding When a user enters an invalid API key for a provider (e.g. xAI or Gemini) and later tries to add the same model again with a correct key, the addModel function previously either skipped (exact match) or created a duplicate with a numbered suffix. Now it detects models with the same provider and model name and updates the existing entry in-place, allowing users to correct their API key by re-adding the model. Closes #9995 * fix: update existing provider models in setupProviderConfig instead of appending duplicates When re-entering an API key through the onboarding flow, setupProviderConfig previously appended new model entries without removing the old ones with the invalid key. Now it filters out existing models with the same hub slug before adding the new ones, ensuring the user ends up with a single set of correctly-configured models. * fix: narrow addModel update to only change apiKey on existing models Avoid overwriting user-customized fields (apiBase, completionOptions, title, etc.) when updating an existing model. Only the apiKey is changed. * fix: merge API key into existing models instead of replacing or duplicating Address review feedback: update only the API key on existing model entries to preserve user-customized fields (roles, options, etc.). - setupProviderConfig: merge `with` into existing hub-slug models, only append entries for slugs not yet in config - addModel: narrow update to only set apiKey on matching provider+model * fix: resolve TS2339 error for apiKey on YAML config model union type The YAML config model type is a union that includes uses-based models without an apiKey property. Use 'provider' in m guard and cast to any for the assignment. * style: fix prettier formatting * fix: show toast and open config when model already exists, merge API keys in onboarding When a user tries to add a model that already exists (e.g. after entering an invalid API key), show a warning toast and open the config file so they can update the key directly. Also fix setupProviderConfig to merge API keys into existing models instead of creating duplicates. Closes #9995 * refactor: remove all :any type annotations from changed code Use 'uses' in m type guards to narrow the union type instead of casting to any. * fix: use modelsByRole instead of non-existent models property on ContinueConfig |
||
|---|---|---|
| .claude/skills/docs-style | ||
| .continue | ||
| .github | ||
| .husky | ||
| .idea | ||
| .vscode | ||
| actions | ||
| binary | ||
| core | ||
| docs | ||
| eval | ||
| extensions | ||
| gui | ||
| manual-testing-sandbox | ||
| media | ||
| packages | ||
| scripts | ||
| skills | ||
| sync | ||
| .continueignore | ||
| .eslintrc.shared.json | ||
| .gitignore | ||
| .node-version | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| CLA.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| SECURITY.md | ||
| tsconfig.json | ||
| worktree-config.yaml | ||
Continue
Getting started
Paste this into your coding agent of choice:
Help me write checks for this codebase: https://continue.dev/walkthrough
How it works
Continue runs agents on every pull request as GitHub status checks. Each agent is a markdown file in your repo at .continue/checks/. Green if the code looks good, red with a suggested diff if not. Here is an example that performs a security review:
---
name: Security Review
description: Review PR for basic security vulnerabilities
---
Review this PR and check that:
- No secrets or API keys are hardcoded
- All new API endpoints have input validation
- Error responses use the standard error format
Install CLI
AI checks are powered by the open-source Continue CLI (cn).
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iex
Or with npm (requires Node.js 20+):
npm i -g @continuedev/cli
Then run:
cn
Looking for the VS Code extension? See here.
Contributing
Read the contributing guide, and join the GitHub Discussions.
