Commit graph

890 commits

Author SHA1 Message Date
ian
0b6937a3b8
fix(cli): add SSL verification option for client transports (#9551)
* fix(mcp): add SSL verification option for client transports

Add support for disabling SSL verification when verifySsl flag is false by providing a custom HTTPS agent. This allows connections to servers with self-signed certificates or in development environments where SSL verification needs to be bypassed.

* Add tests for SSL verification handling in MCPService

* refactor: reorder imports in MCPService.ts

* chore: pull transport construction into new file

* fix: linting complexity

* fix: complexity for linting

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-02-02 22:18:39 -08:00
Partha
9ac154d2a0
feat: Add OpenRouter Provider Support with Dynamic Model Loading (#8738)
* Add OpenRouter provider configuration to Add Model Form

* feat: add search functionality to model selection listbox

* Update gui/src/components/modelSelection/ModelSelectionListbox.tsx

ai suggestion

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

* fix: update isOpenSource determination based on hugging_face_id

* Trigger CI/CD

* refactor: propery cleanup openrouter

* feat: add initialization function for OpenRouter models

- Replaced the import of openRouterModelsList with getOpenRouterModelsList.
- Added a new function `initializeOpenRouterModels` to fetch and initialize OpenRouter models from the API.
- Updated the providers object with the fetched models upon successful retrieval.
- Added error handling to reset the models list in case of a fetch failure.

* feat: enhance OpenRouter model initialization with loading placeholder and effect hook

* fix: openrouter model fetching cleanup

* fix: open router model fetching cleanup

* lint: cli

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-02-02 21:59:44 -08:00
shanevcantwell
d80845c403
feat: add tool prompt override support in .continuerc.json (#9314)
* feat: add tool prompt overrides support in YAML model config

Adds per-model tool prompt overrides under chatOptions in YAML config:

```yaml
models:
  - name: my-model
    chatOptions:
      toolPromptOverrides:
        run_terminal_command:
          description: "Custom description"
        view_diff:
          disabled: true
```

This replaces the JSON-only implementation with YAML-only support as
requested by maintainers. The JSON implementation is preserved on the
`feature/tool-prompt-overrides-json` branch for reference.

Changes:
- Add toolOverrideSchema to chatOptionsSchema (packages/config-yaml)
- Add ToolOverride interface and toolPromptOverrides to LLMOptions (core)
- Store and apply overrides in BaseLLM.streamChat()
- Add applyToolOverrides utility with comprehensive tests

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

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

* feat(cli): add tool prompt overrides support for CLI parity

Apply toolPromptOverrides from YAML model config in CLI,
ensuring feature parity with VS Code extension.

- Add applyChatCompletionToolOverrides helper for CLI tool format
- Apply overrides in streamChatResponse before LLM calls
- Support description changes and disabling tools
- Add unit tests for override logic

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

* chore: package lock update

* ci: retrigger after hub 502

* refactor: rename toolPromptOverrides to toolOverrides

- Rename property across core, config-yaml, and CLI
- Consolidate ToolOverride type to extend ToolOverrideConfig from
  config-yaml instead of duplicating 7 fields
- Inline record-to-array conversion to match file patterns

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

* chore: retrigger CI (clean run)

* chore: revert gui package-lock to main

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

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-02-02 21:55:21 -08:00
Nate
eb7062f364 Rename cn check to cn review with UX improvements
- Rename command, files, types, functions, variables, and user-facing strings
  from "check" to "review" throughout the CLI
- Mount Ink progress UI immediately with a loading spinner instead of
  printing sequential "Computing diff..." / "Resolving reviews..." lines
- Switch worktree creation from execSync to async exec so reviews start
  concurrently instead of sequentially
- Fix timer regression where final duration jumped backward (use
  orchestrator wall-clock time instead of worker-internal duration)
- Tighten review agent prompt to strictly scope analysis to changed lines
  only, preventing agents from scanning/reporting on the entire codebase
- Remove redundant "# Review Results" / "All N reviews passed" text output
  when everything passes (already shown in the table)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 11:17:32 -08:00
Nate
c09caac71a Fix empty chat history in cn check workers
The worker built a local chatHistory array, but streamChatResponse
replaced it with the ChatHistoryService's empty history via
refreshChatHistoryFromService(). Use ChatHistoryService.addUserMessage()
so the messages are available when streamChatResponse reads them.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 02:11:57 -08:00
Nate
5534789dc0 Fix cn check workers exiting with code 1
Intercept --internal-check-worker flag before program.parse() so forked
worker subprocesses route to runCheckWorker() instead of hitting the
unknown command handler.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 01:58:11 -08:00
Nate
46b04cad4e Fix defunct hub.continue.dev URLs to point to continue.dev
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 01:56:19 -08:00
Nate
1eb4e36d61 Fix import order for check command
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 01:12:27 -08:00
Nate
8c4e140485 Register cn check as a CLI subcommand
The check command implementation existed but was never registered with
Commander.js, causing it to fall through to the default chat command.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 01:09:11 -08:00
Nate Sesti
a230e224f0
Merge pull request #10111 from continuedev/nate/cn-check-skill
Add cn-check skill for AI agent code checks
2026-02-02 00:48:50 -08:00
Nate
6c2dabe7de Fix lint errors in cn check command
- Reorder imports to satisfy import/order rule
- Prefix unused `reject` param with underscore
- Extract mountProgressUI and outputResultsAndExit to reduce check()
  complexity below threshold
- Replace != with strict equality and remove negated conditions
- Remove unused CheckResult import from checkWorker

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 00:38:25 -08:00
Nate
9b92973956 Add cn check command with live progress UI
Adds the full `cn check` CLI command for running AI agent checks
locally against working tree changes. Includes:

- check.ts: Main orchestrator — resolves checks, forks workers,
  mounts live Ink progress UI, renders final report
- CheckProgress.tsx: Ink component showing live table with status,
  braille loading animation, and elapsed timer per check
- checkWorker.ts: Forked worker process that runs an agent in an
  isolated worktree and captures its diff as a patch
- diffContext.ts: Computes git diff against base branch
- resolveChecks.ts: Discovers checks from Hub API, --agent flags,
  or local .continue/agents/*.md files
- worktree.ts: Creates/cleans up temporary git worktrees
- renderReport.ts: Formats results as text or JSON

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-02 00:27:40 -08:00
Dallin Romney
807d95dd3f
Merge pull request #9568 from yumosx/fix-lsof
fix(resource-monitoring): fix lsof file descriptor leak
2026-01-31 15:33:39 -08:00
Dallin Romney
03e5fc3b92 chore: hub.continue.dev -> continue.dev 2026-01-30 15:47:00 -08:00
uinstinct
2fb88307ca fix(cli): flaky hub loader tests 2026-01-26 21:21:32 +05:30
Nate
737ac6fc7b Add detailed logging for metadata endpoint requests
Improves debugging capabilities for the metadata endpoint by logging
at info level with full URL, timing, request body, and response status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 23:22:20 -08:00
Dallin Romney
62235c10bf
Merge pull request #9810 from uinstinct/cli-terminal-wsl
feat(cli): detect wsl and spawn appropriate shell
2026-01-25 21:53:31 -08:00
Nate
ebc81a6228 Fix: Set isComplete=true after agent turn ends without tool calls
When an agent completes a turn with a final response (no tool calls), we now
correctly set isComplete=true in the metadata. Previously, isComplete was only
set when Exit, ReportFailure, or Status tools were called, or when the server
shut down. This caused agents that gave final responses to remain in 'running'
state indefinitely.

The fix checks the last message in history after each turn - if it's from the
assistant and has no tool_calls, the agent is marked as complete.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 20:19:06 -08:00
Nate
b65f44027a fix: Replace console.debug with logger in exit tool
Addresses code review feedback to use shared logger instead of console.debug
2026-01-25 16:07:54 -08:00
Nate
d865b5c4b6 Remove debug logging from serve.ts 2026-01-25 15:57:19 -08:00
Nate
65a1e1500b fix: Set isComplete metadata when agents finish execution
Fixes issue where agent sessions stay stuck in "running" state forever
because the isComplete metadata field is never set.

Changes:
- Status tool now calls updateAgentMetadata({ isComplete: true }) when
  status is "DONE" or "FAILED"
- reportFailure tool now marks agent as complete before reporting failure
- exit tool now marks agent as complete before exiting
- Added debug logging to track inactivity timeout progress and lastActivity
  updates

This ensures the UI can properly detect when an agent has finished and
display the correct state instead of showing "running" indefinitely.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-25 15:47:56 -08:00
uinstinct
a9ae4205e1 feat(cli): detect wsl and spawn appropriate shell 2026-01-23 11:56:56 +05:30
dependabot[bot]
9adf4220d9
chore(deps): bump lodash from 4.17.21 to 4.17.23 in /extensions/cli
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-22 22:58:08 +00:00
Dallin Romney
7a368da606
Merge pull request #9774 from continuedev/dependabot/npm_and_yarn/extensions/cli/lodash-es-4.17.23
chore(deps-dev): bump lodash-es from 4.17.21 to 4.17.23 in /extensions/cli
2026-01-22 14:31:59 -08:00
Nate Sesti
29aa68275e
Merge pull request #9567 from continuedev/dallin/compaction-fixes-2 2026-01-22 13:15:07 -08:00
Dallin Romney
c0a930919f fix: linting issue mising parallel count 2026-01-22 11:21:30 -08:00
Dallin Romney
30d7fe75dd test: fix comapction tests etc 2026-01-21 18:31:02 -08:00
Dallin Romney
f1527e761c chore: remove error message part explaining env vars 2026-01-21 17:54:56 -08:00
Dallin Romney
1d8aa4b1e4 test: fix tests for change from 20k to 15k autocompaction buffer 2026-01-21 17:42:48 -08:00
Dallin Romney
c754289118 feat: proportional output truncation for read and bash 2026-01-21 17:37:17 -08:00
Dallin Romney
b4bc3aedaa fix: account for different tokenizers 2026-01-21 16:35:52 -08:00
Dallin Romney
8494a27b0e Merge branch 'main' of https://github.com/continuedev/continue into dallin/compaction-fixes-2 2026-01-21 16:13:24 -08:00
dependabot[bot]
01e2535cba
chore(deps-dev): bump lodash-es in /extensions/cli
Bumps [lodash-es](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash-es
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-21 23:53:02 +00:00
uinstinct
a3b085c7c7 add tests for skill.ts 2026-01-20 13:41:25 +05:30
uinstinct
62a287894c add tests for loadMarkdownSkill 2026-01-20 13:34:44 +05:30
uinstinct
3ab5b5992b feat(cli): agent skills 2026-01-20 13:25:56 +05:30
alanw
056622faa0 fix: simplify file descriptor count calculation 2026-01-19 01:46:26 +00:00
Dallin Romney
ccd0b74dc5 fix: eslint import unresolved 2026-01-16 18:11:39 -08:00
Dallin Romney
77a2f1274a fix: duplicate tool messages 2026-01-16 17:49:21 -08:00
alanw
676e31d28e fix(ResourceMonitoringService): prevent negative file descriptor counts and remove test cases 2026-01-16 05:17:39 +00:00
alanw
df83e66d5c fix(ResourceMonitoringService): initialize fd check time and count on start 2026-01-16 04:20:46 +00:00
alanw
a99288f25a fix(resource-monitoring): prevent file descriptor count leak by adding caching 2026-01-16 03:27:48 +00:00
Dallin Romney
59826dad6c Merge branch 'main' of https://github.com/continuedev/continue into dallin/compaction-fixes-2 2026-01-15 18:53:00 -08:00
Dallin Romney
0f48341e27
Merge pull request #9538 from continuedev/allow-mcp-tools-headless
Allow MCP/Bash tools by default in headless mode
2026-01-15 14:42:06 -08:00
Dallin Romney
710f67569f
Merge pull request #9070 from continuedev/nate/refactor-info-screen-extract-functions
Refactor info command into separate functions and add usage statistics
2026-01-15 14:37:48 -08:00
Dallin Romney
963d1ebfc6 merge: main 2026-01-15 14:00:36 -08:00
Nate Sesti
4110496b22
Merge pull request #9128 from uinstinct/sub-agents
feat: subagents
2026-01-14 20:38:00 -08:00
Dallin Romney
50adea309b fix: eslint 2026-01-14 19:05:23 -08:00
Dallin Romney
998cb76a71 fix: tool permissions for MCP and bash in headless 2026-01-14 18:57:11 -08:00
Dallin Romney
d18c6f04ad fix: compaction updates part 2 2026-01-14 17:51:10 -08:00