Commit graph

144 commits

Author SHA1 Message Date
MumuTW
bcd514aa55
fix: use config.yaml name for default Local Config profile (#11110)
* fix(core): pass config name through ConfigResult instead of re-reading file

Rework per reviewer feedback: instead of reading config.yaml separately
in LocalProfileLoader's constructor, propagate the name field through
ConfigResult from the existing config loading pipeline.

Changes:
- Add optional configName to ConfigResult interface
- Populate configName in unroll.ts where AssistantUnrolled is built
- Propagate through loadContinueConfigFromYaml → doLoadConfig
- LocalProfileLoader now reads configName from doLoadConfig result
- Remove duplicate fs.readFileSync + parseConfigYaml from constructor
- Works in WSL and other environments where file paths may differ

Addresses: https://github.com/continuedev/continue/issues/11061

* style: fix prettier formatting in doLoadConfig.ts

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 13:37:52 -07:00
shanevcantwell
4b756d32bc
fix: pass pre-read content to bypass fs.existsSync for WSL agent configs (#10451)
When VS Code runs on Windows host with a WSL remote workspace, selecting
an agent config from .continue/agents/ fails because localPathOrUriToPath
cannot resolve the vscode-remote:// URI to a local path, causing
fs.existsSync to return false and falling through to the deprecated JSON
config loader.

The fix passes pre-read content (already available in
overrideAssistantFile.content) through the PackageIdentifier, and checks
for it before the fs.existsSync gate. This reuses the content bypass
added to RegistryClient in PR #9739.

Fixes #10450

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 00:21:47 -07:00
Dallin Romney
a7a5351b9c
feat: limited MCP App support (#10132)
* feat: MCP apps part 1

* feat: MCP app support part 3

* chore: cleanup PR

* chore: clean up mcp ui app types

* fix: address cubic feedback
2026-02-05 19:07:44 -08:00
uinstinct
cef4b8ded2 get config dependent tool definitions async 2026-01-06 17:30:19 +05:30
uinstinct
b6eddec2f4 add read skill tool 2025-12-30 12:51:16 +05:30
uinstinct
207469af85 read and inject skills to system message 2025-12-29 20:04:50 +05:30
Dallin Romney
05cce29d20
fix: remove dead isTelemetryEnabled code for jetbrains (#8799) 2025-11-19 15:27:29 -08:00
Nate Sesti
bcaf5cfeff
Rename "agent" terminology to "config" throughout the codebase (#8229)
* Rename "agent" terminology to "config" throughout the codebase

* chore: bump
2025-10-13 22:25:42 -07:00
Dallin Romney
caaff16fbd Merge branch 'main' of https://github.com/continuedev/continue into dallin/con-4022-hide-empty-prompts-resources 2025-10-01 09:39:23 -07:00
Dallin Romney
4afcf200a9
feat: include mcp loading errors in config loading errors (#8017) 2025-09-30 20:03:08 -07:00
Dallin Romney
1c43796518 fix: markdown rules and top level agents 2025-09-29 17:38:49 -07:00
Nate Sesti
37a4fb7baa
Move rule-to-slash-command conversion from YAML loading to config loading (#7871)
* Move rule-to-slash-command conversion from YAML loading to config loading

* Update core/config/profile/doLoadConfig.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-09-22 16:36:10 -07:00
Dallin Romney
b842a21708
feat: global req (#7414)
* feat: yaml global requestOptions schema

* feat: merge request options

* fix: config yaml request options cleanup

* fix: mcp request options logic and tests

* feat: inject request options from unroll options

* fix: tests and new tests for merge

* feat: inject request options

* fix: prettier

* chore: package-lock

* chore: package lock

* fix: package lock

* fix: package lock
2025-09-17 10:57:40 -07:00
Dallin Romney
e1d349cad7
Merge pull request #7409 from Jazzcort/fix-ideSettings-updating
Fix: Updated ideSettings didn't get passed properly
2025-09-08 21:13:11 -07:00
Jazzcort
712b7bcfd5 Fix: Refactor dependency injection for settings and clients
This commit refactors how IdeSettings and ControlPlaneClient are accessed throughout
the configuration system to improve state management and reduce coupling.

Previously, ideSettingsPromise was passed down from the top-level ConfigHandler
through various profile loaders and clients. This created a rigid dependency chain
and required manual promise replacement when settings were updated. Similarly,
downstream components could hold onto stale instances of ControlPlaneClient after a
change in authentication state.

The key changes are:
  - Removed ideSettingsPromise prop drilling: Components that require IDE settings
    now fetch them directly from the IDE object (ide.getIdeSettings()) when
    needed.

  - Updated globalLocalProfileManager during every cascadeInit: This ensures it
    always holds the most recent ControlPlaneClient, preventing issues with stale
    client objects after re-authentication.

  - Simplified constructors: The constructors for ConfigHandler, ControlPlaneClient,
    and various loaders have been simplified to reflect these changes, primarily by
    passing the IDE object directly instead of its derived promises.
2025-09-03 09:15:47 -04:00
Dallin Romney
3bf58bd305 merge: main 2025-08-25 16:15:37 -07:00
Dallin Romney
be0c0d585b merge: main 2025-08-22 12:36:32 -07:00
Dallin Romney
8d6eed6b86
Merge branch 'main' into dallin/indexing-and-mcp-org-settings-CON-3282 2025-08-21 17:22:26 -07:00
Dallin Romney
d6ed405d0c feat: multi edit and single search and replace tools 2025-08-20 16:09:31 -07:00
Dallin Romney
50b0dec9c4 feat: org policies for indexing and mcp 2025-08-19 01:20:11 -07:00
Dallin Romney
3d942da4c2
Merge branch 'main' into dallin/context-defaults 2025-08-18 17:17:03 -07:00
Dallin Romney
73fdf19de8
feat: rebrand assistants as agents (#7227)
* feat: rebrand assistants as agents

* fix: assitant-agent cleanup part 1

* fix: file references

* fix: missing file reference in config yaml tests

* chore: assistant -> agent cleanup
2025-08-18 16:25:30 -07:00
Shawn Smith
a4c4f79fd0
fix: 🔒 Simpler fix to exclude search_web tool to signed in users (#7165)
* fix: 🔒 Simpler fix to exclude search_web tool to signed in users

* fix: 💡 Revise comment to clarify only sign in is required
2025-08-18 16:22:20 -07:00
Dallin Romney
37c1b2001f chore: hasDocs bool 2025-08-18 15:41:08 -07:00
Dallin Romney
4717677959 feat: update default-included context providers, move to util 2025-08-18 12:52:02 -07:00
Patrick Erichsen
c1a47858f3
fix: rule colocation uri logic (#7164)
* fix: rule colocation uri logic

* rename to `fileUri`

* fix: type errors

* fix test mocks

* Update slugs.test.ts
2025-08-15 10:00:17 -07:00
Patrick Erichsen
85994118e8
feat: implement Sentry error tracking with privacy-first anonymization (#6881)
* feat: add sentry to core

* feat: implement comprehensive Sentry error tracking with privacy-first anonymization

- Add Sentry ErrorBoundary components following React best practices
- Implement shared anonymization logic between core and GUI environments
- Create organized sentry directory structure with clean exports
- Add Continue team member access control (@continue.dev email check)
- Preserve node_modules package names for debugging while anonymizing user paths
- Include comprehensive test coverage for all anonymization scenarios
- Set up source maps for readable production error stack traces
- Add browser-compatible hashing without crypto module dependency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: complete Sentry integration with GUI components and tests

- Add GUI TelemetryProviders with Sentry ErrorBoundary
- Create shared isContinueTeamMember utilities for both core and GUI
- Update all imports and dependencies for new sentry structure
- Add comprehensive test coverage and fix all TypeScript issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* fix: resolve GUI build errors by removing sentry index.ts and using specific imports

- Remove problematic index.ts that was pulling Node.js-specific Sentry code into browser bundle
- Update GUI to import specifically from anonymization.ts and constants.ts files
- Update core imports to use specific SentryLogger.ts import path
- GUI build now succeeds with proper source map upload to Sentry

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: move TelemetryProviders inside AuthProvider to fix test failures

- Move TelemetryProviders from main.tsx to Layout.tsx inside AuthProvider
- Fixes "useAuth must be used within an AuthProvider" error in tests
- TelemetryProviders now has access to auth context for Continue team member check
- GUI build and functionality remain working correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* merge main

* Update package.json

* fix tests

* fix errors

* Update extension.ts

* disable sentry in tests/local dev

* add additional error handling

* Update SentryLogger.ts

* remove global try/catch

* remove test code

* linting

* Update SentryLogger.ts

* more logs

* Update core.ts

* lower sampling rate

* fix tests

* feat: use `Logger`

* Update logger.ts

* Update logger.ts

Co-Authored-By: Claude <noreply@anthropic.com>

* lint fixes

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: rename logger.ts to Logger.ts for case sensitivity

This fixes TypeScript compilation errors in CI where the file
was tracked as lowercase logger.ts but referenced as Logger.ts
in imports.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* address ting-wai's feedback

* Update core.ts

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 16:54:21 -07:00
Dallin Romney
4752d7ab96
fix: Object object in profile URI (#7156) 2025-08-14 15:05:45 -07:00
Dallin Romney
56cf2abf20
feat: Respect Org Policies (#7087)
* fix: allow no selected org, respect policy

* feat: respect policies in extension

* fix: config handler test

* fix: context providers test
2025-08-11 19:20:07 -07:00
Ting-Wai To
45214eb743 fix: skip analytics capture calls if workspaceId is undefined 2025-08-05 15:23:37 -07:00
chezsmithy
f33df88ae5 feat: ✨ MCP Prompts now display when inserted 2025-08-05 11:23:23 -07:00
uinstinct
a4e9c90978 fix 2025-07-31 08:02:00 +05:30
uinstinct
84ec609230 move the warning message from loadYaml to doLoadConfig 2025-07-31 08:01:28 +05:30
Dallin Romney
929e5deb40 merge: main 2025-07-29 01:56:42 +07:00
Dallin Romney
5b2e545ca1
Codebase/Colocated Rules Cache (#6603)
* codebase rules cache

* reload config on codebase rule update

* void codebase rule promise

* void rules cache promises part 2

* better colocated rule source label
2025-07-17 11:34:28 -07:00
Dallin Romney
eba3a3e65a remove duplicate getWorkspaceConfigs logic and only load for json 2025-07-17 16:57:38 +02:00
uinstinct
67c9ad056e avoid adding duplicate currentfilecontext 2025-07-11 10:21:04 +05:30
uinstinct
c40ab10923 add changes in doLoadConfig 2025-07-10 08:31:23 +05:30
Patrick Erichsen
87a8a35bc1
Merge pull request #6316 from continuedev/pe/search-and-replace-experiment
feat: search & replace tool experiment
2025-06-30 14:04:07 -07:00
Patrick Erichsen
bf43ec64e2 feat: search and replace tool def 2025-06-25 15:47:48 -07:00
Dallin Romney
fb5beb042e WIP: render slash commands 2025-06-23 09:26:10 -07:00
Dallin Romney
ff4dcdce73 add source to slash commands, rearrange and mark built in legacy as legacy 2025-06-20 23:39:39 -07:00
Tomasz Stefaniak
35ee97438f Merge branch 'main' into tomasz/rule-colocation 2025-06-11 15:20:08 -07:00
Nate
91ab4d2e32 include rules context provider by default 2025-06-10 14:57:11 -07:00
Tomasz Stefaniak
c7339f8aaa Merge branch 'main' into tomasz/rule-colocation 2025-06-09 10:43:19 -07:00
Tomasz Stefaniak
39dc367371 feat: rule colocation 2025-06-09 10:42:17 -07:00
Dallin Romney
fd21b80f59 Revert "BROKEN: mcp conversion utils, tool name updates"
This reverts commit cd6e2ab23f.
2025-06-04 16:52:14 -07:00
Dallin Romney
cd6e2ab23f BROKEN: mcp conversion utils, tool name updates 2025-06-04 16:48:27 -07:00
Dallin Romney
0f2cb9417c include mcp server names in tool names 2025-06-04 15:47:19 -07:00
Patrick Erichsen
fe5bcfe367
Merge pull request #5867 from continuedev/pe/agent-requested-rule
feat: `requestRule` tool
2025-05-29 09:28:23 -07:00