diff --git a/docs/guides/cli.mdx b/docs/guides/cli.mdx index 0f8694d98..87e29a51b 100644 --- a/docs/guides/cli.mdx +++ b/docs/guides/cli.mdx @@ -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 diff --git a/extensions/cli/spec/config-loading.md b/extensions/cli/spec/config-loading.md index 9df4f57e8..2bf0bde57 100644 --- a/extensions/cli/spec/config-loading.md +++ b/extensions/cli/spec/config-loading.md @@ -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:** diff --git a/extensions/cli/src/e2e/local-config-switching.test.tsx b/extensions/cli/src/e2e/local-config-switching.test.tsx index a280cb129..5f323a295 100644 --- a/extensions/cli/src/e2e/local-config-switching.test.tsx +++ b/extensions/cli/src/e2e/local-config-switching.test.tsx @@ -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", }, diff --git a/extensions/cli/vitest.setup.ts b/extensions/cli/vitest.setup.ts index 5b6c80007..ac9193957 100644 --- a/extensions/cli/vitest.setup.ts +++ b/extensions/cli/vitest.setup.ts @@ -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,