Replace console.log calls with logger.info in displaySessionUsage function
for consistency with codebase logging patterns.
Co-authored-by: nate <nate@continue.dev>
Generated with [Continue](https://continue.dev)
Co-Authored-By: Continue <noreply@continue.dev>
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>
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>
* 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
* fix: refresh ui on model change
* feat: handle cmd+backspace as only single line
* fix: model selection persistence
* fx: test
* fix: tests
* fix: tests
* feat: /title slash command
* fix: /title slash command should be able to be submitted with text
* test: add tests for last commit's changes
* fix: EOF in action.yml
* feat: list remote sessions in cn ls and /resume
* feat: load more sessions and make them scrollable
* chore: format
* improv: debug script builds automatically for cli
* feat: load remote session
* fix: wrap entrypoint in function so it doesn't run at import-time
* feat: /diff and /apply slash commands for cn remote
* feat: full screen diff viewer
* feat: status message for /apply slash command
* Update extensions/cli/src/ui/UserInput.tsx
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
* fix: remove console.logs
* Potential fix for code scanning alert no. 60: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Potential fix for code scanning alert no. 61: Uncontrolled command line
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* fix: build.js
* feat: list remote sessions in history of extensions
* feat: open remote agents in browser
* chore: fix tests and lint
* fix: import Text
* fix: small bug
* fix: address feedback
* fix: adjust extension gui for compatibility with cli session history
* feat: load session history from remote
* feat: open remote session in browser
* fix: tests, linting, formatting
* fix: don't use any
* address nitpicks
---------
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>