Commit graph

73 commits

Author SHA1 Message Date
Nate Sesti
29aa68275e
Merge pull request #9567 from continuedev/dallin/compaction-fixes-2 2026-01-22 13:15:07 -08:00
Dallin Romney
30d7fe75dd test: fix comapction tests etc 2026-01-21 18:31:02 -08:00
Dallin Romney
1d8aa4b1e4 test: fix tests for change from 20k to 15k autocompaction buffer 2026-01-21 17:42:48 -08:00
Dallin Romney
c754289118 feat: proportional output truncation for read and bash 2026-01-21 17:37:17 -08:00
Dallin Romney
b4bc3aedaa fix: account for different tokenizers 2026-01-21 16:35:52 -08:00
uinstinct
62a287894c add tests for loadMarkdownSkill 2026-01-20 13:34:44 +05:30
uinstinct
3ab5b5992b feat(cli): agent skills 2026-01-20 13:25:56 +05:30
Nate Sesti
4110496b22
Merge pull request #9128 from uinstinct/sub-agents
feat: subagents
2026-01-14 20:38:00 -08:00
Dallin Romney
fa5bea1241 chore: remove any type 2026-01-13 12:25:34 -08:00
Dallin Romney
1bfb72edf3 fix: context length error detection 2026-01-13 12:23:33 -08:00
Dallin Romney
d7b91f884c fix: tests and cubic feedback 2026-01-09 16:07:33 -08:00
Dallin Romney
34537d926f feat: CLI tool truncation and docs 2026-01-09 15:57:28 -08:00
Dallin Romney
9a630a025d feat: refined cli bash tool truncation 2026-01-09 15:13:22 -08:00
Dallin Romney
613ffb8ca9 fix: context length fixes, truncation, etc 2026-01-09 14:28:59 -08:00
uinstinct
8381812d92 allow escaping of subagent tool using event emit 2026-01-07 19:50:09 +05:30
Nate
ca702415e6 Refactor metadata updates to track completion state and changes 2025-12-23 21:39:44 -05:00
Nate
635aa42811 fix circular dependency 2025-12-23 13:19:42 -05:00
Nate
d31d6b6fc4 Handle unhandled errors by exiting with non-zero code 2025-12-23 13:00:23 -05:00
Nate
92bfa6d277 Merge branch 'nate/track-session-cost-and-usage' of https://github.com/continuedev/continue into nate/track-session-cost-and-usage 2025-12-05 15:30:00 -08:00
Nate
7db744db5b send full usage to /metadata 2025-12-05 15:29:57 -08:00
continue[bot]
bfd2f016c0 fix: Replace console.log with logger.info in exit.ts
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>
2025-12-05 23:29:43 +00:00
Nate
da147f9d0a Add comprehensive cost tracking with OpenAI pricing and session usage display 2025-12-05 15:23:21 -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
Nate
0d25d2e70d Improve system message token accounting in compaction and context validation 2025-12-01 14:25:50 -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
fa96e30a3a fix: improved unhandled error logging 2025-11-26 11:03:48 -08:00
Nate
a1f1d55de3 Add agent session metadata tracking and reporting to control plane 2025-11-21 16:19:21 -08:00
Shawn Smith
0a04fa8672 fix: 🐛 More fixes 2025-11-18 19:59:36 -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
7a3cf36bb8 fix: 🔥 Additional fixes based on commnets 2025-11-18 19:45:34 -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
bce188c70a fix: logger mock and error message 2025-11-18 17:00:04 -08: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
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
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
Patrick Erichsen
4903f3ab94 add tool call policy evaluation 2025-10-16 15:56:31 -07:00
Dallin Romney
e6ee11b9c2 fix: tests, lint, workflow model name logic 2025-10-02 17:16:08 -07:00
Dallin Romney
779ad18c42 fix: tests and remove parsed args 2025-10-02 16:37:46 -07:00
Nate Sesti
2d50cfde3d
feat: status tool for cn (#8007)
* feat: status tool

* feat: status tool call endpoint

* fix: type errors

* fix: tests
2025-10-01 08:44:34 -07:00
Nate Sesti
9cb27661b1
fix: multiple cn nitpicks (#8049)
* fix: refresh ui on model change

* feat: handle cmd+backspace as only single line

* fix: model selection persistence

* fx: test

* fix: tests

* fix: tests
2025-10-01 00:06:15 -07:00
Nate Sesti
d135140fb9
feat: cn serve boolean (#8005)
* feat: cn serve boolean

* capture sessionStart for cn serve
2025-09-26 17:31:57 -07:00
Nate Sesti
d368529cb2
ci: fix release workflows to block if version check fails (#7350)
* ci: fix release workflows to block if version check fails

* fix: better readline for cli

* fix: npm run lint fixes
2025-09-22 14:34:38 -07:00
Nate Sesti
1c11f61407
feat: --id flag for cn serve (#7884)
* feat: --id flag for cn serve

* fix: lint

* fix: address feedback
2025-09-21 13:24:39 -07:00
Nate Sesti
b12499cb0e
feat: show remote sessions in cn ls (#7694)
* 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>
2025-09-19 22:44:26 -07:00
Ting-Wai
61b525e36a
feat: add more robust context length validation (#7817) 2025-09-17 16:03:53 -07:00
Nate
9b0367fc28 fix: graceful exit instead of process.exit(1) in cli 2025-09-12 14:51:19 -07:00
Nate
5232855433 Merge branch 'main' into nate/filter-by-headless-or-ci 2025-09-10 14:40:30 -07:00
Ting-Wai
b53ee61340
Merge pull request #7580 from uinstinct/cli-skip-index-home
fix(cli): skip indexing when in home directory
2025-09-10 10:48:35 -07:00