Commit graph

945 commits

Author SHA1 Message Date
Nate Sesti
d47cbfb436
Merge pull request #10953 from continuedev/wt-6
Add smoke tests for real API connectivity
2026-03-01 12:32:31 -08:00
Nate
310ad57b9c fix: set utf8 encoding on child process streams
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>
2026-03-01 11:12:22 -08:00
Nate
4a0bc1e624 fix: eslint import order and continue-proxy model name format
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>
2026-03-01 11:00:45 -08:00
Nate
82672294bf fix: format smoke-api files with prettier
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:42:28 -08:00
Nate
25fe40a546 Add smoke tests for real API connectivity
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>
2026-03-01 10:30:41 -08:00
Nate Sesti
4c0f3b66ca
Merge branch 'main' into back-job-perm 2026-03-01 09:31:04 -08:00
Nate Sesti
b70d69ff83
Merge pull request #10845 from uinstinct/cli-quiz
feat(cli): quiz answers
2026-03-01 09:30:25 -08:00
uinstinct
9ae00f592b move QuizService to services folder 2026-02-27 09:41:47 +05:30
uinstinct
6187143567 feat: allow background job perm check by default 2026-02-27 09:24:29 +05:30
uinstinct
35725099c1 remove allowCustomAnswer
- also refine the prompt
2026-02-26 12:16:10 +05:30
uinstinct
bd5a4cad9d refine prompt 2026-02-26 12:04:00 +05:30
uinstinct
dd9177fe76 add quiz prompt component 2026-02-26 11:52:40 +05:30
uinstinct
6d082f2ff7 add quiz service 2026-02-26 11:50:47 +05:30
uinstinct
fe4ec8ebcd rename to askquestion and set permission to allow 2026-02-26 11:40:27 +05:30
uinstinct
489aa49663 add quiz tool 2026-02-26 11:40:05 +05:30
Nate
b690c89ba2 fix: address review feedback - clone messages, void async, fix test loop
- 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>
2026-02-24 18:18:40 -08:00
Nate
30406a0cda feat: add turn-level caching to systemAndTools strategy + PostHog cache metrics + live API test
- 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>
2026-02-24 17:28:06 -08:00
Nate Sesti
c1f9518574
Merge pull request #10285 from uinstinct/cli-background-bash-exec
feat: bash tool execution in background
2026-02-18 14:20:46 -08:00
Nate
87a0464416 fix: break circular dependency causing test failures
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>
2026-02-18 13:11:03 -08:00
Nate
175c95b49d fix: add src path alias to vitest config for module resolution
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>
2026-02-18 13:03:03 -08:00
Nate
9ce8788b77 fix: correct import ordering for BackgroundJobService
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 12:42:26 -08:00
Nate
fab480f495 style: fix prettier formatting in checkBackgroundJob.ts
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-18 12:36:53 -08:00
Nate
1313806901 fix: address TypeScript errors and review comments
- 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>
2026-02-18 12:35:05 -08:00
Nate Sesti
8eee3e0300
Merge pull request #10467 from uinstinct/cli-ai-sdk
feat: integrate ai-sdk provider
2026-02-17 21:23:25 -08:00
Nate
34d59b8530 fix: fix flaky TUIChat special characters test in remote mode
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>
2026-02-17 19:52:22 -08:00
Nate
54814db219 fix: update stale model name in yamlConfigUpdater test
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>
2026-02-17 19:40:08 -08:00
Dallin Romney
c006d4b231 feat: add Claude Sonnet 4.6 and Claude Opus 4.6 models
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").
2026-02-17 11:49:21 -08:00
uinstinct
e5e62aac28 revert unnecessary changes 2026-02-12 16:08:08 +05:30
uinstinct
73b5db9410 pass in the format of "provider/model" 2026-02-12 16:04:25 +05:30
uinstinct
73ee3e047a remove usage of aisdkprovider id 2026-02-12 15:52:35 +05:30
uinstinct
1d2cba889c rename background job manager to background job service 2026-02-09 19:13:05 +05:30
uinstinct
001e553722 refactor backgroundsignalmanger 2026-02-09 19:08:24 +05:30
uinstinct
c7d6a73df1 show separate screen for background jobs 2026-02-09 18:58:11 +05:30
uinstinct
5a5a90826d truncate job output to 1000 lines 2026-02-09 18:10:42 +05:30
uinstinct
f89de1b7b2 keep background job output upto 1000 lines 2026-02-09 18:00:19 +05:30
uinstinct
c1e79cd89c remove unused events in backgroundjobmanager 2026-02-09 17:55:42 +05:30
uinstinct
a87d44cf52 show terminal output during streaming 2026-02-09 17:52:25 +05:30
Nate
ff124c293e fix: extract printCheckDiff helper to satisfy max-depth lint rule
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 21:05:29 -08:00
Nate
2587e61e60 refactor: remove --diff and --json flags, always show diffs
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>
2026-02-07 20:58:58 -08:00
Nate
5a4e98f46b feat: add cn checks CLI command
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>
2026-02-07 20:29:51 -08:00
uinstinct
149a27c988 show ctrl+b to move to background 2026-02-06 19:19:12 +05:30
uinstinct
007094609f kill all background jobs on exit 2026-02-06 18:48:18 +05:30
uinstinct
60bef4b4d4 add the jobs slash command 2026-02-06 18:39:17 +05:30
uinstinct
561f85e95c move process to background
with ctrl+b
2026-02-06 18:36:45 +05:30
uinstinct
5a479ca427 added checkBackgroundJob tool 2026-02-06 18:26:09 +05:30
uinstinct
b4ae98ecc8 add background job manager and output display 2026-02-06 18:22:48 +05:30
Dallin Romney
d585c3b8e8
feat(cli): curl/irl installation scripts and docs (#9835)
* 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>
2026-02-05 19:07:57 -08:00
Nate
392a1fc42b .continue/agents 2026-02-05 11:07:47 -08:00
Dallin Romney
0397a446f3
Merge pull request #9968 from continuedev/move-token-adjustment-to-core
Move getAdjustedTokenCountFromModel from CLI to core
2026-02-03 13:31:58 -08:00
Dallin Romney
f8fa28f079
Merge pull request #10081 from continuedev/dallin/better-failed-default-config-error
fix: better failed default config error
2026-02-03 13:31:47 -08:00