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>
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>
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>
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>
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>
* Fix IntelliJ remote config sync issues
- Only schedule sync job when remote server URL is configured
- Catch all exceptions including JsonSyntaxException
- Fix logic error where configJs and configJson overwrite each other
- Properly clean up sync job when cancelled
Fixes#8769
Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
* Fix config.js and config.json file path separation
Use separate file paths for JavaScript (config.js) and JSON (config.json)
configuration files to maintain proper separation of concerns.
Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
---------
Co-authored-by: continue[bot] <continue[bot]@users.noreply.github.com>
Co-authored-by: Continue <noreply@continue.dev>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
* fix bug: set the property JS_QUERY_POOL_SIZE to use JBCefJSQuery after the browser has been created
* feat: add JCEF reload action
* fix: update reload action
* Revert "fix bug: set the property JS_QUERY_POOL_SIZE to use JBCefJSQuery after the browser has been created"
This reverts commit e998ae83b261a171b03e0473cf2b8aaeac481ed7.