Changesets · Branches · Tags · Compare
| Changeset | 6976d4a8b38899db7d94326fb6cd4f383c7a57ee9140c0fb2cc13f319add2db0 |
|---|---|
| Author | Dallin Romney <dallinromney@gmail.com> · 2025-09-09 20:27 -07:00 |
| Committer | Dallin Romney <dallinromney@gmail.com> · 2025-09-09 20:27 -07:00 |
| Parents | 5b8450706049 |
9 files changed
modified core/config/createNewAssistantFile.ts +18 −21
| @@ -1,32 +1,32 @@ | ||
| 1 | 1 | import { IDE } from ".."; |
| 2 | 2 | import { joinPathsToUri } from "../util/uri"; |
| 3 | 3 | |
| 4 | -const DEFAULT_ASSISTANT_FILE = `# This is an example assistant configuration file | |
| 5 | -# It is used to define custom AI assistants within Continue | |
| 6 | -# Each assistant file can be accessed by selecting it from the assistant dropdown | |
| 4 | +const DEFAULT_ASSISTANT_FILE = `# This is an example agent configuration file | |
| 5 | +# It is used to define custom AI agents within Continue | |
| 6 | +# Each agent file can be accessed by selecting it from the agent dropdown | |
| 7 | 7 | |
| 8 | -# To learn more, see the full assistant reference: https://docs.continue.dev/reference | |
| 8 | +# To learn more, see the full config.yaml reference: https://docs.continue.dev/reference | |
| 9 | 9 | |
| 10 | -name: Example Assistant | |
| 10 | +name: Example Agent | |
| 11 | 11 | version: 1.0.0 |
| 12 | 12 | schema: v1 |
| 13 | 13 | |
| 14 | -# Models define which AI models this assistant can use | |
| 14 | +# Models define which AI models this agent can use | |
| 15 | +# https://docs.continue.dev/customization/models | |
| 15 | 16 | models: |
| 16 | 17 | - name: my gpt-5 |
| 17 | 18 | provider: openai |
| 18 | 19 | model: gpt-5 |
| 19 | - apiKey: YOUR_API_KEY_HERE | |
| 20 | + apiKey: YOUR_OPENAI_API_KEY_HERE | |
| 21 | + - uses: ollama/qwen2.5-coder-7b | |
| 22 | + - uses: anthropic/claude-4-sonnet | |
| 23 | + with: | |
| 24 | + ANTHROPIC_API_KEY: \${{ secrets.ANTHROPIC_API_KEY }} | |
| 20 | 25 | |
| 21 | -# Context providers define what information the assistant can access | |
| 22 | -context: | |
| 23 | - - provider: code | |
| 24 | - - provider: docs | |
| 25 | - - provider: diff | |
| 26 | - - provider: terminal | |
| 27 | - - provider: problems | |
| 28 | - - provider: folder | |
| 29 | - - provider: codebase | |
| 26 | +# MCP Servers the agent can use | |
| 27 | +# https://docs.continue.dev/customization/mcp-tools | |
| 28 | +mcpServers: | |
| 29 | + - uses: anthropic/memory-mcp | |
| 30 | 30 | `; |
| 31 | 31 | |
| 32 | 32 | export async function createNewAssistantFile( |
| @@ -42,7 +42,7 @@ | ||
| 42 | 42 | |
| 43 | 43 | const baseDirUri = joinPathsToUri( |
| 44 | 44 | workspaceDirs[0], |
| 45 | - assistantPath ?? ".continue/assistants", | |
| 45 | + assistantPath ?? ".continue/agents", | |
| 46 | 46 | ); |
| 47 | 47 | |
| 48 | 48 | // Find the first available filename |
| @@ -50,10 +50,7 @@ | ||
| 50 | 50 | let assistantFileUri: string; |
| 51 | 51 | do { |
| 52 | 52 | const suffix = counter === 0 ? "" : `-${counter}`; |
| 53 | - assistantFileUri = joinPathsToUri( | |
| 54 | - baseDirUri, | |
| 55 | - `new-assistant${suffix}.yaml`, | |
| 56 | - ); | |
| 53 | + assistantFileUri = joinPathsToUri(baseDirUri, `new-agent${suffix}.yaml`); | |
| 57 | 54 | counter++; |
| 58 | 55 | } while (await ide.fileExists(assistantFileUri)); |
| 59 | 56 |
modified extensions/vscode/e2e/actions/GUI.actions.ts +22 −3
| @@ -136,10 +136,22 @@ | ||
| 136 | 136 | toolName: string, |
| 137 | 137 | desiredState: number | string, |
| 138 | 138 | ) { |
| 139 | - const toolButton = await TestUtils.waitForSuccess(() => | |
| 140 | - GUISelectors.getToolButton(view), | |
| 139 | + // Navigate to config page | |
| 140 | + | |
| 141 | + const settingsButton = await TestUtils.waitForSuccess(() => | |
| 142 | + GUISelectors.getSettingsNavButton(view), | |
| 143 | + ); | |
| 144 | + await settingsButton.click(); | |
| 145 | + await TestUtils.waitForTimeout(500); | |
| 146 | + | |
| 147 | + // Click on tools tab | |
| 148 | + const toolsTab = await TestUtils.waitForSuccess(() => | |
| 149 | + GUISelectors.getToolsTab(view), | |
| 141 | 150 | ); |
| 142 | - await toolButton.click(); | |
| 151 | + await toolsTab.click(); | |
| 152 | + await TestUtils.waitForTimeout(500); | |
| 153 | + | |
| 154 | + // Find and click the tool policy button | |
| 143 | 155 | const toolPolicyButton = await TestUtils.waitForSuccess(() => |
| 144 | 156 | GUISelectors.getToolPolicyButton(view, toolName), |
| 145 | 157 | ); |
| @@ -181,5 +193,12 @@ | ||
| 181 | 193 | `Failed to set tool policy to ${targetStates.join(" or ")} after 5 attempts`, |
| 182 | 194 | ); |
| 183 | 195 | } |
| 196 | + | |
| 197 | + // Navigate back to chat | |
| 198 | + const backButton = await TestUtils.waitForSuccess(() => | |
| 199 | + GUISelectors.getBackButton(view), | |
| 200 | + ); | |
| 201 | + await backButton.click(); | |
| 202 | + await TestUtils.waitForTimeout(500); | |
| 184 | 203 | } |
| 185 | 204 | } |
modified extensions/vscode/e2e/selectors/GUI.selectors.ts +10 −5
| @@ -47,11 +47,12 @@ | ||
| 47 | 47 | return SelectorUtils.getElementByDataTestId(view, "tool-call-title"); |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - public static getToolButton(view: WebView) { | |
| 51 | - return SelectorUtils.getElementByDataTestId( | |
| 52 | - view, | |
| 53 | - `block-settings-toolbar-icon-tools`, | |
| 54 | - ); | |
| 50 | + public static getToolsTab(view: WebView) { | |
| 51 | + return SelectorUtils.getElementByDataTestId(view, "tab-tools"); | |
| 52 | + } | |
| 53 | + | |
| 54 | + public static getBackButton(view: WebView) { | |
| 55 | + return SelectorUtils.getElementByDataTestId(view, "tab-back"); | |
| 55 | 56 | } |
| 56 | 57 | |
| 57 | 58 | public static getToolPolicyButton(view: WebView, toolName: string) { |
| @@ -150,6 +151,10 @@ | ||
| 150 | 151 | return SelectorUtils.getElementByAriaLabel(view, "View History"); |
| 151 | 152 | } |
| 152 | 153 | |
| 154 | + public static getSettingsNavButton(view: WebView) { | |
| 155 | + return SelectorUtils.getElementByAriaLabel(view, "Open Settings"); | |
| 156 | + } | |
| 157 | + | |
| 153 | 158 | public static getNewSessionNavButton(view: WebView) { |
| 154 | 159 | return SelectorUtils.getElementByAriaLabel(view, "New Session"); |
| 155 | 160 | } |
modified extensions/vscode/e2e/tests/Edit.test.ts +1 −1
| @@ -76,7 +76,7 @@ | ||
| 76 | 76 | return codeLens; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - it.only("Accepts an Edit in the GUI", async () => { | |
| 79 | + it("Accepts an Edit in the GUI", async () => { | |
| 80 | 80 | ({ view } = await GUIActions.switchToReactIframe()); |
| 81 | 81 | |
| 82 | 82 | await EditActions.acceptEditInGUI(view); |
modified extensions/vscode/e2e/tests/GUI.test.ts +1 −1
| @@ -16,7 +16,7 @@ | ||
| 16 | 16 | import { GUISelectors } from "../selectors/GUI.selectors"; |
| 17 | 17 | import { TestUtils } from "../TestUtils"; |
| 18 | 18 | |
| 19 | -describe("GUI Test", () => { | |
| 19 | +describe.skip("GUI Test", () => { | |
| 20 | 20 | let view: WebView; |
| 21 | 21 | let driver: WebDriver; |
| 22 | 22 |
modified gui/src/components/mainInput/TipTapEditor/utils/resolveEditorContent.ts +1 −1
| @@ -196,7 +196,7 @@ | ||
| 196 | 196 | ); |
| 197 | 197 | if (currentFileResponse.status === "success") { |
| 198 | 198 | const currentFile = currentFileResponse.content[0]; |
| 199 | - if (currentFile.uri?.value) { | |
| 199 | + if (currentFile?.uri?.value) { | |
| 200 | 200 | currentFile.id = { |
| 201 | 201 | providerTitle: "file", |
| 202 | 202 | itemId: currentFile.uri.value, |
modified gui/src/components/ui/TabButton.tsx +9 −1
| @@ -5,9 +5,16 @@ | ||
| 5 | 5 | icon: React.ReactNode; |
| 6 | 6 | isActive: boolean; |
| 7 | 7 | onClick: () => void; |
| 8 | + tabId?: string; | |
| 8 | 9 | } |
| 9 | 10 | |
| 10 | -export function TabButton({ label, icon, isActive, onClick }: TabButtonProps) { | |
| 11 | +export function TabButton({ | |
| 12 | + label, | |
| 13 | + icon, | |
| 14 | + isActive, | |
| 15 | + onClick, | |
| 16 | + tabId, | |
| 17 | +}: TabButtonProps) { | |
| 11 | 18 | return ( |
| 12 | 19 | <ToolTip content={label} place="right" className="text-xs md:!hidden"> |
| 13 | 20 | <div |
| @@ -17,6 +24,7 @@ | ||
| 17 | 24 | : "text-description px-2 py-2" |
| 18 | 25 | }`} |
| 19 | 26 | onClick={onClick} |
| 27 | + data-testid={tabId ? `tab-${tabId}` : undefined} | |
| 20 | 28 | > |
| 21 | 29 | {icon} |
| 22 | 30 | <span className="text-description hidden md:inline">{label}</span> |
modified gui/src/pages/config/components/ToolPoliciesGroup.tsx +0 −1
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | import { Card } from "../../../components/ui"; |
| 6 | 6 | import { useAppDispatch } from "../../../redux/hooks"; |
| 7 | 7 | import { toggleToolGroupSetting } from "../../../redux/slices/uiSlice"; |
| 8 | -import { fontSize } from "../../../util"; | |
| 9 | 8 | import { ToolPolicyItem } from "./ToolPolicyItem"; |
| 10 | 9 | |
| 11 | 10 | interface ToolPoliciesGroupProps { |
modified gui/src/redux/thunks/updateFileSymbols.ts +1 −1
| @@ -84,7 +84,7 @@ | ||
| 84 | 84 | |
| 85 | 85 | const uniqueUris = new Set( |
| 86 | 86 | contextItems |
| 87 | - .filter((item) => item.uri?.type === "file" && item?.uri?.value) | |
| 87 | + .filter((item) => item?.uri?.type === "file" && item?.uri?.value) | |
| 88 | 88 | .map((item) => item.uri!.value), |
| 89 | 89 | ); |
| 90 | 90 |