Commit graph

709 commits

Author SHA1 Message Date
uinstinct
7598da04be Merge branch 'main' into retry-cli-tests 2025-12-02 17:08:30 +05:30
Nate Sesti
b91c7a6b2d
Merge pull request #8955 from continuedev/nate/system-message-token-accounting
Improve system message token accounting in compaction and context validation
2025-12-01 15:16:38 -08:00
continue[bot]
14dd72eb21 Fix compaction and token counting issues from Cubic review
Address code review feedback:
1. Add fallback to use compacted history directly when ChatHistoryService
   is unavailable (fixes P1 issue in handlePostToolValidation and
   handleNormalAutoCompaction)
2. Prevent double-counting of system message tokens by checking if
   system message is already in history before subtracting tokens
3. Remove tool output name from token count since it's not sent to model

This ensures compaction works correctly in headless contexts and provides
more accurate token estimation.

Co-authored-by: nate <nate@continue.dev>
2025-12-01 23:03:38 +00:00
continue[bot]
e86bb5a3db Add blank line between parent and sibling imports
ESLint import/order rule requires a blank line between different
import groups (parent vs sibling).

Co-authored-by: nate <nate@continue.dev>
2025-12-01 22:42:38 +00:00
continue[bot]
ab9f37db38 Fix import order in streamChatResponse.systemMessage.test.ts
Reorder imports to comply with ESLint import/order rules:
- Move vitest imports after core imports
- Add empty line between import groups
- Move services import before local imports

Co-authored-by: nate <nate@continue.dev>
2025-12-01 22:37:21 +00:00
continue[bot]
7e6095d58f Fix TypeScript errors in streamChatResponse tests
Add required systemMessage parameter to all processStreamingResponse calls
in the test file to match the updated interface signature.

Co-authored-by: nate <nate@continue.dev>
2025-12-01 22:34:19 +00:00
dependabot[bot]
d972bfae37
chore(deps-dev): bump express from 5.1.0 to 5.2.1 in /extensions/cli
Bumps [express](https://github.com/expressjs/express) from 5.1.0 to 5.2.1.
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](https://github.com/expressjs/express/compare/v5.1.0...v5.2.1)

---
updated-dependencies:
- dependency-name: express
  dependency-version: 5.2.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 22:31:30 +00:00
Nate
0d25d2e70d Improve system message token accounting in compaction and context validation 2025-12-01 14:25:50 -08:00
Nate
24f5859924 feat(mcp): add Supabase-specific OAuth scopes to mcp-remote fallback 2025-12-01 08:31:37 -08:00
Nate Sesti
e12ecadf01
Merge pull request #8838 from continuedev/nate/agent-metadata-tracking
Add agent session metadata tracking and reporting to control plane
2025-11-30 18:00:27 -08:00
continue[bot]
10ae310c77 Fix calculateDiffStats to correctly handle code with ++ or -- operators
The function was incorrectly treating lines like '+++counter;' or '---counter;'
as diff file headers and skipping them. This happened when code containing
++ or -- operators at the start of a line was added or removed.

Fixed by checking that file header lines (--- a/file, +++ b/file) contain
a space after the --- or +++ prefix, distinguishing them from code changes.

Added test cases to verify the fix handles these edge cases correctly.

Co-authored-by: nate <nate@continue.dev>
2025-12-01 01:44:46 +00:00
Nate
02c3cc3786 Add URL refresh strategy for storage sync pre-signed URLs 2025-11-28 13:47:00 -08:00
uinstinct
f3daebf49f chore: retry cli tests on macos 2025-11-27 16:08:50 +05:30
Aditya Mitra
9a333f5809
feat(cli): add grep/find/findstr as alternative search strategy (#8616)
* feat(cli): add grep/find/findstr as alternative search strategy

* use -path instead of -name

* add dependent packages

* fix export

* include negated patterns

* Revert "include negated patterns"

This reverts commit 53e16aa6f70438bdd21d69c4cf7a403f43d6143c.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2025-11-27 01:47:37 -08:00
Nate
2a81f4d146 fix: lint 2025-11-26 12:31:01 -08:00
Nate
b7a2799964 Add agent error reporting to API in serve mode 2025-11-26 12:25:34 -08:00
Nate
15fb54cfb5 Merge branch 'nate/cn-mcp-fixes' of https://github.com/continuedev/continue into nate/cn-mcp-fixes 2025-11-26 11:46:18 -08:00
Nate
4ec2b1bcb4 fix: no duplicate sentry error 2025-11-26 11:46:12 -08:00
continue[bot]
9e1412c484 docs: document MCP secret resolution fallback behavior
Adds documentation explaining how the CLI resolves secrets for MCP servers,
including the fallback from org/package secrets to local environment variables.
This documents the fix from PR #8899 that allows env vars to override
inaccessible org secrets in devboxes and restricted environments.

Co-authored-by: nate <nate@continue.dev>

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

Co-Authored-By: Continue <noreply@continue.dev>
2025-11-26 19:13:31 +00:00
Nate
63489e9dd6 fix: mcp secret loading bug 2025-11-26 11:07:48 -08:00
Nate
fa96e30a3a fix: improved unhandled error logging 2025-11-26 11:03:48 -08:00
Nate
1f44a3de34 fix: fall back to env vars 2025-11-26 11:03:28 -08:00
Dallin Romney
08853527c5
Merge pull request #8691 from chezsmithy/feat-ttyless-cli
feat: ✨ Remove TTY requirement for the cli in headless mode
2025-11-25 20:02:36 -08:00
Dallin Romney
3b7b21b45a
Merge pull request #8831 from uinstinct/grok-4.1-support
chore: add support for grok 4.1 fast
2025-11-25 12:01:09 -08:00
uinstinct
082af4ccc5 Merge branch 'main' into docs-hub-links 2025-11-24 19:26:22 +05:30
uinstinct
0129d85b96 add support for grok 4.1 in the cli 2025-11-24 18:58:37 +05:30
Nate
a1f1d55de3 Add agent session metadata tracking and reporting to control plane 2025-11-21 16:19:21 -08:00
Dallin Romney
011fdc44b6 fix: default-cli-config 2025-11-20 12:33:17 -08:00
Dallin Romney
a0c8454563 fix: default-cli-config not default-config 2025-11-20 11:42:09 -08:00
uinstinct
ec9629307e docs: correct /explore page links to /hub 2025-11-20 17:37:53 +05:30
Dallin Romney
bc69693ffc fix: assistants -> configs -> agents 2025-11-19 17:29:07 -08:00
Dallin Romney
2c539ddafe
Merge pull request #8795 from uinstinct/cli-plan-mode-switch
fix: plan mode system message should ask user to switch mode
2025-11-19 10:55:01 -08:00
Nate Sesti
465ca6293d
Merge pull request #8656 from continuedev/dallin/error-untemplated-mcp-secrets
fix: warnings and errors for unresolved MCP secrets
2025-11-19 10:43:49 -08:00
uinstinct
7decd43d1c fix: plan mode system message should ask user to switch mode 2025-11-19 19:22:29 +05:30
Shawn Smith
ad283ee46e fix: 🐛 More fixes to tests 2025-11-18 19:59:43 -08:00
Shawn Smith
0a04fa8672 fix: 🐛 More fixes 2025-11-18 19:59:36 -08:00
Shawn Smith
a39b2db833 fix: 🐛 More fixes 2025-11-18 19:59:27 -08:00
Shawn Smith
82768aefc2 fix: ⚡ More fixes 2025-11-18 19:59:20 -08:00
Shawn Smith
e0da466987 Update extensions/cli/src/commands/chat.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-11-18 19:58:24 -08:00
Shawn Smith
c081764e0c fix: 🔥 Additional fixes based on commnets 2025-11-18 19:58:04 -08:00
Shawn Smith
68c463b7ae feat: ✨ Remove TTY requirement for the cli in headless mode 2025-11-18 19:56:30 -08:00
Shawn Smith
f608296d55 fix: 🐛 More fixes 2025-11-18 19:46:05 -08:00
Shawn Smith
63e6e0bafc fix: ⚡ More fixes 2025-11-18 19:45:56 -08:00
Shawn Smith
ce1b27e7a7 Update extensions/cli/spec/tty-less-support.md
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-11-18 19:45:49 -08:00
Shawn Smith
f2f4c36cfa Update extensions/cli/src/commands/chat.ts
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2025-11-18 19:45:41 -08:00
Shawn Smith
7a3cf36bb8 fix: 🔥 Additional fixes based on commnets 2025-11-18 19:45:34 -08:00
Shawn Smith
3463f79883 fix: 🎨 Fix typescript errors 2025-11-18 19:45:21 -08:00
Shawn Smith
888a5ba37d feat: ✨ Remove TTY requirement for the cli in headless mode 2025-11-18 19:45:15 -08:00
Dallin Romney
4a353b21fa
Merge pull request #8745 from continuedev/dallin/agent-md-files
feat(cli): support paths/URIs for --agent
2025-11-18 18:57:14 -08:00
Dallin Romney
521480e029
Merge pull request #8567 from uinstinct/cli-ripgrep-installed
fix(cli): check ripgrep search tool before using
2025-11-18 17:49:54 -08:00