Commit graph

58 commits

Author SHA1 Message Date
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
Nate
2884028d21 fix: address tests, add is_continue_remote 2025-09-10 10:35:35 -07:00
Nate
54cc0d8430 feat: isHeadless and isGitHubCI on cli OTel 2025-09-09 17:15:26 -07:00
uinstinct
1fa4c2f9f3 refactor: move isInHomeDirectory to a util function 2025-09-04 20:21:30 +05:30
Dallin Romney
3ec4f430d8 merge main 2025-09-03 11:02:04 -07:00
Nate
94d1d9cf3a fix: address feedback 2025-09-02 19:12:19 -07:00
Dallin Romney
111d22f630 chore: prettier 2025-09-02 18:04:40 -07:00
Dallin Romney
5fce82dfd2 feat: show git branch if available 2025-09-02 14:58:06 -07:00
Nate
f68015f6de fix: compaction and more refactoring 2025-08-26 23:03:15 -07:00
Nate
6ca57b07bc chore: lint 2025-08-23 11:30:04 -07:00
Nate
c4fed49769 chore: foramt 2025-08-23 11:28:33 -07:00
Nate
314758d040 Merge branch 'main' into nate-1 2025-08-23 11:16:17 -07:00
Nate Sesti
7e30a633b4
Merge pull request #7342 from continuedev/nate-3
Add tokenizer tests and fix auto-compact calculation to account for max_tokens
2025-08-23 11:14:09 -07:00
Nate
ea2fac7c2c feat: --prompt flag 2025-08-22 16:52:04 -07:00
Nate
b6cfc7d83d chore: format 2025-08-22 16:02:22 -07:00
Nate
feefb7d5c2 fix: address feedback 2025-08-22 15:54:31 -07:00