Skip to content

Commit 46f0fe9

Browse files
authored
Merge pull request #8808 from continuedev/dallin/configs-assistants-cleanup-7
fix: assistants -> configs -> agents
2 parents 8e888f1 + 011fdc4 commit 46f0fe9

File tree

9 files changed

+41
-41
lines changed

9 files changed

+41
-41
lines changed

.github/workflows/run-continue-agent.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ on:
44
workflow_call:
55
inputs:
66
prompt:
7-
description: "The prompt to send to the Continue agent"
8-
required: true
9-
type: string
10-
config:
11-
description: "The config to use (e.g., continuedev/default-background-agent)"
7+
description: "Additional prompting to send to the Continue agent"
128
required: false
139
type: string
14-
default: "continuedev/default-background-agent"
10+
default: ""
11+
agent:
12+
description: "The agent to use (e.g., continuedev/github-pr-agent)"
13+
required: true
14+
type: string
15+
default: "continuedev/github-pr-agent"
1516
branch_name:
1617
description: "The base branch name to work from"
1718
required: false
@@ -33,7 +34,7 @@ jobs:
3334
-H "Authorization: Bearer ${{ secrets.CONTINUE_API_KEY }}" \
3435
-d '{
3536
"prompt": "${{ inputs.prompt }}",
36-
"config": "${{ inputs.config }}",
37+
"agent": "${{ inputs.agent }}",
3738
"branchName": "${{ inputs.branch_name }}",
3839
"repoUrl": "https://github.com/${{ github.repository }}"
3940
}')

.github/workflows/tidy-up-codebase.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ jobs:
1010
run-cn-task:
1111
uses: ./.github/workflows/run-continue-agent.yml
1212
with:
13-
prompt: "Review every Markdown documentation file and verify that descriptions, examples, or behavior outlines accurately reflect the current code. Only update documentation; do not modify code. Check the corresponding code to confirm behavior before making changes. Correct any inaccuracies or outdated information in descriptions, examples, or behavior outlines. Preserve existing Markdown formatting, style, and structure. Do not add new sections, speculative explanations, or details not present in the code. Only update statements that are clearly incorrect or misleading; do not rewrite text for style or preference. Keep edits minimal and focused, ensuring that the Markdown matches what the code actually does. If verification against the code is ambiguous, leave the documentation unchanged. Use branch name bot/cleanup-<YYMMDD>-<HHMM>"
14-
config: continuedev/default-background-agent
13+
agent: continuedev/tidy-up-markdown-agent
1514
branch_name: main
1615
secrets:
1716
CONTINUE_API_KEY: ${{ secrets.CONTINUE_API_KEY }}

docs/guides/cli.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ echo "$(git diff) Generate a conventional commit name for the current git change
5454

5555
`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.
5656

57-
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-agent` or `cn --config ~/.continue/config.yaml`).
57+
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`).
5858

5959
### How to Add Custom Models
6060

extensions/cli/spec/config-loading.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This document specifies the behavior of the CLI's configuration loading system,
3737
3. **Default Resolution** (if no flag and no saved URI)
3838
- **Authenticated**: First user assistant from `listAssistants()`
3939
- **config.yaml**: The saved config file at `~/.continue/config.yaml`
40-
- **Unauthenticated**: Falls back to `continuedev/default-agent`
40+
- **Unauthenticated**: Falls back to `continuedev/default-cli-config`
4141

4242
## Authentication State Interactions
4343

@@ -61,7 +61,7 @@ This document specifies the behavior of the CLI's configuration loading system,
6161
**Available Options:**
6262

6363
- Local YAML files only
64-
- Default assistant (`continuedev/default-agent`)
64+
- Default assistant (`continuedev/default-cli-config`)
6565

6666
**Behavior:**
6767

@@ -121,7 +121,7 @@ This document specifies the behavior of the CLI's configuration loading system,
121121
**No User Assistants:**
122122

123123
- Authenticated user has no personal assistants
124-
- **Result**: Falls back to `continuedev/default-agent`
124+
- **Result**: Falls back to `continuedev/default-cli-config`
125125

126126
**Default Agent Unavailable:**
127127

extensions/cli/src/configLoader.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export type ConfigSource =
3636
| { type: "cli-flag"; path: string }
3737
| { type: "saved-uri"; uri: string }
3838
| { type: "user-assistant"; slug: string }
39-
| { type: "default-config-yaml" }
40-
| { type: "default-agent" }
39+
| { type: "local-config-yaml" }
40+
| { type: "remote-default-config" }
4141
| { type: "no-config" };
4242

4343
/**
@@ -124,16 +124,16 @@ function determineConfigSource(
124124

125125
// Priority 3: Default resolution based on auth state
126126
if (authConfig === null) {
127-
// Unauthenticated: check for default config.yaml, then fallback to default agent
127+
// Unauthenticated: check for default config.yaml, then fallback to default config
128128
const defaultConfigPath = path.join(env.continueHome, "config.yaml");
129129
if (fs.existsSync(defaultConfigPath)) {
130-
return { type: "default-config-yaml" };
130+
return { type: "local-config-yaml" };
131131
}
132-
return { type: "default-agent" };
132+
return { type: "remote-default-config" };
133133
} else {
134134
// In headless, user assistant fallback behavior isn't supported
135135
if (isHeadless) {
136-
return { type: "default-agent" };
136+
return { type: "remote-default-config" };
137137
}
138138
// Authenticated: try user assistants first
139139
return { type: "user-assistant", slug: "" }; // Empty slug means "first available"
@@ -178,16 +178,16 @@ async function loadFromSource(
178178
injectBlocks,
179179
);
180180

181-
case "default-config-yaml":
182-
return await loadDefaultConfigYaml(
181+
case "local-config-yaml":
182+
return await loadLocalConfigYaml(
183183
accessToken,
184184
organizationId,
185185
apiClient,
186186
injectBlocks,
187187
);
188188

189-
case "default-agent":
190-
return await loadDefaultAgent(
189+
case "remote-default-config":
190+
return await loadDefaultConfig(
191191
organizationId,
192192
apiClient,
193193
accessToken,
@@ -214,7 +214,7 @@ async function loadFromSource(
214214
"Failed to load user assistants, falling back to default agent",
215215
),
216216
);
217-
return await loadDefaultAgent(
217+
return await loadDefaultConfig(
218218
organizationId,
219219
apiClient,
220220
accessToken,
@@ -334,7 +334,7 @@ async function loadUserAssistantWithFallback(
334334
}
335335

336336
// No user assistants, fall back to default agent
337-
return await loadDefaultAgent(
337+
return await loadDefaultConfig(
338338
organizationId,
339339
apiClient,
340340
accessToken,
@@ -345,7 +345,7 @@ async function loadUserAssistantWithFallback(
345345
/**
346346
* Loads default config.yaml from ~/.continue/config.yaml
347347
*/
348-
async function loadDefaultConfigYaml(
348+
async function loadLocalConfigYaml(
349349
accessToken: string | null,
350350
organizationId: string | null,
351351
apiClient: DefaultApiInterface,
@@ -362,17 +362,17 @@ async function loadDefaultConfigYaml(
362362
}
363363

364364
/**
365-
* Loads the default continuedev/default-agent
365+
* Loads the default continuedev/default-config
366366
*/
367-
async function loadDefaultAgent(
367+
async function loadDefaultConfig(
368368
organizationId: string | null,
369369
apiClient: DefaultApiInterface,
370370
accessToken: string | null,
371371
injectBlocks: PackageIdentifier[],
372372
): Promise<AssistantUnrolled> {
373373
const resp = await apiClient.getAssistant({
374374
ownerSlug: "continuedev",
375-
packageSlug: "default-agent",
375+
packageSlug: "default-cli-config",
376376
organizationId: organizationId ?? undefined,
377377
});
378378

@@ -582,7 +582,7 @@ function getUriFromSource(source: ConfigSource): string | null {
582582
: `slug://${source.path}`;
583583
case "saved-uri":
584584
return source.uri;
585-
case "default-config-yaml":
585+
case "local-config-yaml":
586586
return `file://${path.join(env.continueHome, "config.yaml")}`;
587587
default:
588588
return null;

extensions/cli/src/e2e/local-config-switching.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("Local Config Switching Investigation", () => {
1111
"/absolute/path/to/config.yaml",
1212
],
1313
remoteAssistantSlugs: [
14-
"continuedev/default-agent",
14+
"continuedev/default-cli-config",
1515
"myorg/custom-assistant",
1616
"user/my-assistant",
1717
],
@@ -43,22 +43,22 @@ describe("Local Config Switching Investigation", () => {
4343
const problemScenarios = [
4444
{
4545
name: "Remote to Remote switching",
46-
from: "continuedev/default-agent",
46+
from: "continuedev/default-cli-config",
4747
to: "myorg/custom-assistant",
4848
works: true,
4949
reason: "Both are assistant slugs, normal flow works",
5050
},
5151
{
5252
name: "Remote to Local switching",
53-
from: "continuedev/default-agent",
53+
from: "continuedev/default-cli-config",
5454
to: "~/.continue/config.yaml",
5555
works: false, // This is the reported issue
5656
reason: "UNKNOWN - this is what we need to debug",
5757
},
5858
{
5959
name: "Local to Remote switching",
6060
from: "~/.continue/config.yaml",
61-
to: "continuedev/default-agent",
61+
to: "continuedev/default-cli-config",
6262
works: false, // Likely also broken
6363
reason: "UNKNOWN - probably same root cause",
6464
},

extensions/cli/src/services/ConfigService.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe("ConfigService", () => {
107107
test("should initialize with undefined config path", async () => {
108108
vi.mocked(configLoader.loadConfiguration).mockResolvedValue({
109109
config: mockConfig as any,
110-
source: { type: "default-agent" } as any,
110+
source: { type: "remote-default-config" } as any,
111111
});
112112

113113
const state = await service.doInitialize({
@@ -257,7 +257,7 @@ describe("ConfigService", () => {
257257
// Initialize without config path
258258
vi.mocked(configLoader.loadConfiguration).mockResolvedValue({
259259
config: mockConfig as any,
260-
source: { type: "default-agent" } as any,
260+
source: { type: "remote-default-config" } as any,
261261
});
262262
await service.doInitialize({
263263
authConfig: { accessToken: "token" } as any,

extensions/cli/src/services/MCPService.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe("MCPService", () => {
3636
beforeEach(() => {
3737
mcpService = new MCPService();
3838
mockAssistant = {
39-
name: "test-assistant",
39+
name: "Test Config",
4040
version: "1.0.0",
4141
mcpServers: [
4242
{
@@ -196,7 +196,7 @@ describe("MCPService", () => {
196196

197197
it("should default to stdio transport when type is not specified", async () => {
198198
const defaultAssistant: AssistantConfig = {
199-
name: "default-assistant",
199+
name: "Default Config",
200200
version: "1.0.0",
201201
mcpServers: [
202202
{

extensions/cli/vitest.setup.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ global.fetch = vi
1313
.mockImplementation(async (url: string | URL, ...args) => {
1414
const urlString = url.toString();
1515

16-
// Mock the default-agent API call
17-
if (urlString.includes("get-assistant/continuedev/default-agent")) {
16+
// Mock the default config API call
17+
if (urlString.includes("get-assistant/continuedev/default-cli-config")) {
1818
return {
1919
ok: true,
2020
status: 200,
2121
json: async () => ({
2222
configResult: {
2323
config: {
24-
name: "Default Agent",
24+
name: "Default Config",
2525
version: "0.0.1",
2626
schema: "v1",
2727
models: [

0 commit comments

Comments
 (0)