* 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
feat: add rule scope dropdown for global rule creation
- added global mode toggle
- implemented conditional styling (white when enabled, gray when disabled)
feat: improve global rules UI and fix debug mode issues
- added dropdown button component to switch between global and workspace rule creation.
- fixed global rules creation to use nested rules/ subdir in debug mode
- prevent default glob patterns for global rules by returning undefined globs
- generate unique rule names for global rules
- added watcher for rules in global directory
* add tooltips for showing mcp connection status
* add type
* explicit message to clarify no mcps are available in chat mode
* ability to disconnect mcp server
* move buttons inside a kebab menu
* use a listbox instead
* remove server and mcp suffixes
change reconnect to reload
* add anchor
* feat: /title slash command
* fix: /title slash command should be able to be submitted with text
* test: add tests for last commit's changes
* fix: EOF in action.yml
* feat: list remote sessions in cn ls and /resume
* feat: load more sessions and make them scrollable
* chore: format
* improv: debug script builds automatically for cli
* feat: load remote session
* fix: wrap entrypoint in function so it doesn't run at import-time
* feat: /diff and /apply slash commands for cn remote
* feat: full screen diff viewer
* feat: status message for /apply slash command
* Update extensions/cli/src/ui/UserInput.tsx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* fix: remove console.logs
* Potential fix for code scanning alert no. 60: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Potential fix for code scanning alert no. 61: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* fix: build.js
* feat: list remote sessions in history of extensions
* feat: open remote agents in browser
* chore: fix tests and lint
* fix: import Text
* fix: small bug
* fix: address feedback
* fix: adjust extension gui for compatibility with cli session history
* feat: load session history from remote
* feat: open remote session in browser
* fix: tests, linting, formatting
* fix: don't use any
* address nitpicks
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* feat: add Mercury Apply endpoint support to Inception LLM
* refactor: begin to clean up the apply / streamDiff code
* fix: undo commenting out of instant apply
* fix: use underlyingProviderName