Commit graph

620 commits

Author SHA1 Message Date
Dallin Romney
7c5dd3f0e6
Merge pull request #8563 from uinstinct/cli-context-percentage
feat(cli): always show context percentage
2025-11-03 18:16:32 -08:00
Dallin Romney
acf624ff19
Merge pull request #8420 from continuedev/continuebot/con-4530
fix: CLI context pollution between sessions
2025-11-03 15:19:39 -08:00
Dallin Romney
bbd7e6f331
Merge pull request #8564 from uinstinct/cli-skip-update-dev
feat(cli): skip checking for updates in dev mode
2025-11-03 15:02:44 -08:00
continue[bot]
794de1b197
Throw error and exit on MCP failure in headless mode (#8559)
In headless/CLI mode, when an MCP server fails to load, the process now
throws an error and exits rather than silently continuing. This provides
clear feedback to users about configuration issues.

Changes:
- Track headless mode flag in MCPService
- Throw errors on MCP connection failures in headless mode
- Throw errors when MCP tools/prompts fail to load in headless mode
- Aggregate and report all MCP failures after connection attempts

Fixes CON-4568


Generated with [Continue](https://continue.dev)

Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: Continue <noreply@continue.dev>
2025-11-03 14:46:03 -08:00
Dallin Romney
be07af5d0c
Merge pull request #8172 from continuedev/nate/truncate-slash
Add description truncation for slash commands in CLI UI
2025-11-03 11:04:57 -08:00
uinstinct
28e09e1c71 feat(cli): skip checking for updates in dev mode 2025-11-03 18:22:38 +05:30
uinstinct
9548d05537 only show when above 0 2025-11-03 17:51:59 +05:30
uinstinct
bc146457b6 feat(cli): always show the context percentage 2025-11-03 17:49:55 +05:30
Nate Sesti
c3c5224340
Add User-Agent headers to Continue Proxy and CLI requests (#8532)
* Add User-Agent headers to Continue Proxy and CLI requests

* fix: tests
2025-11-02 20:33:06 -08:00
continue[bot]
39921eeeda
Make account level MCPs generally available (#8493)
Remove @continue.dev filter for account level MCPs

- Made remote sessions (account-level MCPs) generally available to all authenticated users
- Removed email domain restriction from shouldEnableRemoteSessions() and listRemoteSessions() in ControlPlaneClient
- Removed email domain restriction from getRemoteSessions() in CLI session management

Generated with [Continue](https://continue.dev)

Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: Nate <nate@continue.dev>
2025-10-31 11:52:08 -07:00
Patrick Erichsen
67033627b3
feat: impl Responses API in oai-adapters (#8417)
* feat: add GPT-5 Codex model support

- Add GPT-5 Codex to llm-info package with 500k context and 150k max tokens
- Add model definition to models.ts for UI configuration
- Include GPT-5 Codex in OpenAI provider packages list
- Model supports chat and edit roles with tool_use capability

* feat: impl Responses API in oai-adapters

* fix chat describer

* Update openai.ts

* fix llm-info

* address dallin's feedback
2025-10-29 13:17:32 -07:00
Dallin Romney
20a8e6c292
Merge pull request #8411 from continuedev/nate/fix-tool-call-title-truncation
fix: improve tool call display truncation and update fetch dependency
2025-10-29 11:05:51 -07:00
Ross Golder
bb361ecf14
Merge branch 'continuedev:main' into feature/disable-commit-signature-envvar 2025-10-29 07:08:44 +07:00
Ross Golder
efdc8fcb93
Add CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE env var to disable commit signature
- Add environment variable check in systemMessage.ts
- Update README.md with documentation
- Allows users to disable the Continue commit signature in generated commits
2025-10-29 06:51:55 +07:00
Dallin Romney
de62515ffd
Merge pull request #8488 from continuedev/dallin/fix-cli-agent-no-tools-policies
fix: allow all tools if not specified when using --agent
2025-10-28 16:47:54 -07:00
Dallin Romney
f50a80bc6d test: add tests for agent file tool permissions 2025-10-28 15:56:22 -07:00
Dallin Romney
c1f1513c55 fix: allow all agent tools if not specified 2025-10-28 15:51:16 -07:00
Aditya Mitra
22016af4ec
fix(cli): unskip first slash command output (#8482) 2025-10-28 10:45:27 -07:00
Aditya Mitra
ab214e3abc
refactor(cli): throw tool error instead of returning and matching error strings (#8432)
* fix: prevent string error matching throwing errors

- added ToolResultWithStatus

* add throwing of errors in search code tool

* throw errors in cli fetch tool

* throw errors in writeFile tool

* throw error in status tool

* throw errors in listFiles tool

* throw error in readfile tool

* fix no matches for pattern searchCode

* update tests

* use continueerror writeFile

---------

Co-authored-by: Nate <sestinj@gmail.com>
2025-10-27 16:43:05 -07:00
Brian 'bdougie' Douglas
9c3f250009 Remove unnecessary code changes, keep only tests
The tests are sufficient to verify the bug exists. The code changes
were treating symptoms rather than fixing the root cause. Each CLI
invocation should be a fresh Node.js process, so state pollution
shouldn't occur between separate 'cn' commands in the first place.

The added tests will catch when the actual architectural issue
gets properly fixed.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2025-10-27 15:20:11 -07:00
Brian 'bdougie' Douglas
ee4d4ccbdc fix: remove unused SessionManager import in session.test.ts
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2025-10-24 06:50:41 -07:00
Continue Agent
5c958828a3 Remove unnecessary 'as any' casts from uuidv4 mocks
The vi.mock setup already properly types the uuid v4 function to return
string, so the 'as any' type assertions are unnecessary and were
creating TypeScript smell in the test file.

This change improves type safety while maintaining the same test behavior.

Co-authored-by: Username <nate@continue.dev>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2025-10-24 05:16:37 +00:00
Continue Agent
5e944a04f9 Fix CLI context pollution between sessions
Resolves context pollution issue where CLI sessions would retain
state from previous invocations, causing responses to reference
conversations that should have been isolated.

Changes:
- Added SessionManager.reset() static method for proper cleanup
- Updated initializeChatHistory() to create new session by default
- Clear undo/redo stacks in ChatHistoryService on initialization
- Added comprehensive session isolation tests

Fixes CON-4530

Co-authored-by: Username <nate@continue.dev>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2025-10-24 05:07:27 +00:00
Dallin Romney
20886604d8
fix(cli): exclude ask first tools in headless (#8416)
* fix: permissions cleanup
:

* fix: remove unused test
2025-10-23 19:12:47 -07:00
Nate
9a270d8344 fix: improve tool call display truncation and update fetch dependency 2025-10-23 10:52:30 -07:00
Dallin Romney
43053580ef
fix: prepend agent prompt in serve mode (#8393)
* fix: prepend agent prompt in serve mode

* fix: prompt prepending and tests

* fix: lint and format prepend prompt
2025-10-22 15:47:47 -07:00
Dallin Romney
5fa2415e9b
fix: mcp agent policies and deduplicate blocks when merging unrolled assistants (#8376)
* fix: deduplicate blocks when merging config yaml

* fix: tool policies for mcp servers in agent mode

* fix: syntax error

* fix: cli tests

* fix: don't log

* fix: lint/format

* fix: better comments for tool policies

* fix: one test left

* fix: failing services test

* fix: lint and format
2025-10-22 14:41:41 -07:00
Dallin Romney
6098fbf585
fix(cli): agent injected blocks ignored (#8361) 2025-10-20 21:20:44 -07:00
Dallin Romney
e52a225971 fix: tests 2025-10-20 15:26:39 -07:00
Dallin Romney
5e55466695 fix: linting 2025-10-20 15:19:02 -07:00
Dallin Romney
777b472ff5 fix: catch invalid saved config file uri 2025-10-20 15:12:05 -07:00
Dallin Romney
73fd44f7ff fix: saved uri exists logic for slugs 2025-10-20 15:10:31 -07:00
Dallin Romney
16a5c09430 fix: lint 2025-10-20 14:44:26 -07:00
Dallin Romney
d97a1aed33 fix: tweak error message 2025-10-20 14:41:08 -07:00
Dallin Romney
f6db75a503 fix: HOTFIX allow default config fallback for headless 2025-10-20 14:38:22 -07:00
Aditya Mitra
3b074e6565
style(cli): adding loading animation when updating version (#8285) 2025-10-20 12:23:42 -07:00
Dallin Romney
1d15c7c3df
Merge pull request #8298 from continuedev/pe/read-file-errs
feat: allow file reads outside IDE workspace (w/ permission)
2025-10-20 10:50:38 -07:00
continue[bot]
1c067901a9
feat: Add preview panel to session selector (cn ls / /resume) (#8231)
* feat: Add preview panel to session selector for chat history

- Created SessionPreview component to display chat history
- Updated SessionSelector to show two-column layout with preview on right
- Preview shows first 10 messages with truncation for long content
- Preview only displays when terminal width > 100 columns
- Automatically loads and displays session history as cursor moves

Fixes CON-3892

Generated with Continue(https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: Username <nate@continue.dev>

* chore: Adjust session selector layout to 30/70 split

- Changed list width from 45% to 30% of terminal width
- Preview panel now takes up 70% of the right side
- Provides more space for chat history preview

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: Username <nate@continue.dev>

* fix lint

* preview pane takes full width

* check terminal height and skip empty messages

---------

Co-authored-by: Continue Agent <agent@continue.dev>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: Username <nate@continue.dev>
Co-authored-by: Ting-Wai To <40179554+tingwai@users.noreply.github.com>
2025-10-17 14:24:36 -07:00
Patrick Erichsen
acad86f263
Apply suggestion from @cubic-dev-ai[bot]
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-10-17 10:19:15 -07:00
Nate
80f9b49491 chore: format 2025-10-17 09:38:53 -07:00
Dallin Romney
7cadef6265
Merge pull request #8271 from uinstinct/cli-print-mode
fix(cli): exit after printing response when using -p
2025-10-16 19:57:59 -07:00
Patrick Erichsen
ad2fd48124 Merge main branch and resolve conflicts
- Combined resolveInputPath approach with new ContinueError system
- Updated error handling to use ContinueError with appropriate error reasons
- Maintained improved error messages from pe/read-file-errs branch
2025-10-16 16:00:29 -07:00
Patrick Erichsen
4903f3ab94 add tool call policy evaluation 2025-10-16 15:56:31 -07:00
Dallin Romney
579bcbfcdd
Merge pull request #8259 from continuedev/dallin/agent-file-model-fixes
fix: loading of blocks with inputs. in CLI flags
2025-10-16 00:36:17 -07:00
Dallin Romney
619dd126d6
Merge pull request #8268 from continuedev/dependabot/npm_and_yarn/extensions/cli/happy-dom-20.0.2
chore(deps-dev): bump happy-dom from 20.0.0 to 20.0.2 in /extensions/cli
2025-10-15 23:18:16 -07:00
uinstinct
5aa4537ac3 fix(cli): exit after printing response when using -p 2025-10-16 08:51:55 +05:30
Dallin Romney
9bec1f0a4a fix: tests with new default model 2025-10-15 19:07:09 -07:00
Dallin Romney
9b2d211ef3 Merge branch 'main' of https://github.com/continuedev/continue into dallin/agent-file-model-fixes 2025-10-15 19:03:40 -07:00
Dallin Romney
760d370edf fix: load default model if no models, only option in headless 2025-10-15 19:02:53 -07:00
Dallin Romney
2854b139ca fix: cn remote command
use agent option for cn remote
2025-10-15 17:26:29 -07:00