Use setEncoding("utf8") on stdout/stderr streams instead of
per-chunk Buffer.toString() to avoid breaking multi-byte characters
at chunk boundaries.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move execa type import before vitest to satisfy eslint import/order.
Require SMOKE_PROXY_MODEL env var for continue-proxy test since the
proxy needs a 4-part model name (owner/package/provider/model) that
depends on org-specific configuration.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add a new smoke-api test suite that proves the CLI can complete real LLM
round-trips against the Anthropic API. Tests cover headless mode,
serve mode, and all-tools execution. Runs sequentially to avoid rate
limits, skips gracefully when API keys are missing (fork PRs), and
is wired into CI as a required check with allowed-skips.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Clone message content blocks before mutating for cache_control
(prevents mutation of original input body)
- Add `void` prefix to async posthogService.capture call
- Fix duplicate assistant messages in Scenario 3 test loop
- Add unit test verifying original body is not mutated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add addCacheControlToLastTwoUserMessages call in systemAndToolsStrategy
so the CLI path caches conversation turns (matching VS Code extension behavior)
- Report prompt_cache_metrics to PostHog with cache_read/write tokens and hit rate
- Add live API integration test validating cache writes on turn 1 and 99%+ hit
rates on subsequent turns (guarded by ANTHROPIC_API_KEY env var)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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>