ToolPermissionService imported ALL_BUILT_IN_TOOLS from allBuiltIns.ts,
which imports runTerminalCommand.ts, which imports services/index.ts,
which imports ToolPermissionService.ts - creating a circular dependency.
This caused "ToolPermissionService is not a constructor" errors in tests
because the module wasn't fully initialized when services/index.ts tried
to instantiate it.
Fix: Extract a lightweight builtInToolNames.ts with just the string names
(no heavy imports) and use that in ToolPermissionService instead. Also add
a vitest resolve alias for "src/" paths to match tsconfig baseUrl.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The tsconfig uses baseUrl: "." which allows imports like "src/..." to
resolve correctly for tsc, but vitest doesn't read tsconfig paths by
default. This adds a resolve.alias to map "src" to the actual source
directory so tests can resolve these imports.
Fixes ToolPermissionService test failures (TypeError: ToolPermissionService
is not a constructor) caused by failed module resolution of "src/..." paths.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add missing import for backgroundJobService in services/index.ts
- Add explicit type annotation for BackgroundJob parameter in checkBackgroundJob.ts
- Fix stale closure in JobsSelector useEffect by adding viewMode/selectedJob to deps
- Truncate stdout when moving command to background to prevent context overflow
- Detach stdout/stderr listeners after backgrounding to prevent memory growth
- Use setEncoding('utf8') on streams to prevent multi-byte character corruption
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
In remote mode, the component connects to a non-existent server, so
typed text may not appear in the rendered frame. Only assert text
content in local mode; the crash-safety check still runs in both modes.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The regex was checking for claude-sonnet-4-5 but the source code
uses claude-sonnet-4-6, causing a null match and test failure.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add claude-sonnet-4-6 and claude-opus-4-6 as the new default Sonnet and
Opus models across providers, GUI configs, schemas, cost calculation,
and CLI defaults. Update display names for all >= 4.5 models to use
name-first format (e.g. "Claude Sonnet 4.5" not "Claude 4.5 Sonnet").
Diffs are now always included in the output for checks with commits.
Removes unnecessary --json and --diff flags to keep the CLI simple.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds a new command to view CI check statuses, suggested diffs, and
accept/reject pending suggestions for a PR directly from the terminal.
Usage:
cn checks [pr-url] # List checks
cn checks --diff [pr-url] # Show diffs inline
cn checks accept [pr-url] # Accept pending suggestions
cn checks reject [pr-url] # Reject pending suggestions
Auto-detects PR from current git branch when no URL is given.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* feat: curl/irl scripts for installing Continue CLI
* fix: address code review comments for installation scripts
- Fix CLEANUP_FNM to only mark for cleanup if fnm dir doesn't pre-exist
- Guard FNM_DIR expansion with parameter substitution to avoid set -u errors
- Persist fnm PATH to user environment in PowerShell for future sessions
- Persist npm global bin PATH to user environment in PowerShell
Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
* feat: use CLIInstall component throughout guides and docs
* fix: cubic feedback typo
* docs: move node installation path into tab
* docs: move node installation path into tab
* fix: address cubic feedback
---------
Co-authored-by: RomneyDa <RomneyDa@users.noreply.github.com>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
* 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>
* 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>
* 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>
- 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>
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>
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>
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>
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>