fix: default-cli-config not default-config
This commit is contained in:
parent
5797925c26
commit
a0c8454563
4 changed files with 10 additions and 10 deletions
|
|
@ -54,7 +54,7 @@ echo "$(git diff) Generate a conventional commit name for the current git change
|
|||
|
||||
`cn` uses [`config.yaml`](/reference), the exact same configuration file as Continue. This means that you can log in to [Continue Mission Control](/hub/introduction) or use your existing local configuration.
|
||||
|
||||
To switch between configurations, you can use the `/config` slash command in `cn`, or you can start it with the `--config` flag (e.g. `cn --config continuedev/default-config` or `cn --config ~/.continue/config.yaml`).
|
||||
To switch between configurations, you can use the `/config` slash command in `cn`, or you can start it with the `--config` flag (e.g. `cn --config continuedev/default-cli-config` or `cn --config ~/.continue/config.yaml`).
|
||||
|
||||
### How to Add Custom Models
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ This document specifies the behavior of the CLI's configuration loading system,
|
|||
3. **Default Resolution** (if no flag and no saved URI)
|
||||
- **Authenticated**: First user assistant from `listAssistants()`
|
||||
- **config.yaml**: The saved config file at `~/.continue/config.yaml`
|
||||
- **Unauthenticated**: Falls back to `continuedev/default-config`
|
||||
- **Unauthenticated**: Falls back to `continuedev/default-cli-config`
|
||||
|
||||
## Authentication State Interactions
|
||||
|
||||
|
|
@ -61,7 +61,7 @@ This document specifies the behavior of the CLI's configuration loading system,
|
|||
**Available Options:**
|
||||
|
||||
- Local YAML files only
|
||||
- Default assistant (`continuedev/default-config`)
|
||||
- Default assistant (`continuedev/default-cli-config`)
|
||||
|
||||
**Behavior:**
|
||||
|
||||
|
|
@ -121,7 +121,7 @@ This document specifies the behavior of the CLI's configuration loading system,
|
|||
**No User Assistants:**
|
||||
|
||||
- Authenticated user has no personal assistants
|
||||
- **Result**: Falls back to `continuedev/default-config`
|
||||
- **Result**: Falls back to `continuedev/default-cli-config`
|
||||
|
||||
**Default Agent Unavailable:**
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ describe("Local Config Switching Investigation", () => {
|
|||
"/absolute/path/to/config.yaml",
|
||||
],
|
||||
remoteAssistantSlugs: [
|
||||
"continuedev/default-config",
|
||||
"continuedev/default-cli-config",
|
||||
"myorg/custom-assistant",
|
||||
"user/my-assistant",
|
||||
],
|
||||
|
|
@ -43,14 +43,14 @@ describe("Local Config Switching Investigation", () => {
|
|||
const problemScenarios = [
|
||||
{
|
||||
name: "Remote to Remote switching",
|
||||
from: "continuedev/default-config",
|
||||
from: "continuedev/default-cli-config",
|
||||
to: "myorg/custom-assistant",
|
||||
works: true,
|
||||
reason: "Both are assistant slugs, normal flow works",
|
||||
},
|
||||
{
|
||||
name: "Remote to Local switching",
|
||||
from: "continuedev/default-config",
|
||||
from: "continuedev/default-cli-config",
|
||||
to: "~/.continue/config.yaml",
|
||||
works: false, // This is the reported issue
|
||||
reason: "UNKNOWN - this is what we need to debug",
|
||||
|
|
@ -58,7 +58,7 @@ describe("Local Config Switching Investigation", () => {
|
|||
{
|
||||
name: "Local to Remote switching",
|
||||
from: "~/.continue/config.yaml",
|
||||
to: "continuedev/default-config",
|
||||
to: "continuedev/default-cli-config",
|
||||
works: false, // Likely also broken
|
||||
reason: "UNKNOWN - probably same root cause",
|
||||
},
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ global.fetch = vi
|
|||
.mockImplementation(async (url: string | URL, ...args) => {
|
||||
const urlString = url.toString();
|
||||
|
||||
// Mock the default-config API call
|
||||
if (urlString.includes("get-assistant/continuedev/default-config")) {
|
||||
// Mock the default config API call
|
||||
if (urlString.includes("get-assistant/continuedev/default-cli-config")) {
|
||||
return {
|
||||
ok: true,
|
||||
status: 200,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue