Commit graph

762 commits

Author SHA1 Message Date
continue[bot]
00b665f089 fix(cli): use logger.info instead of console.log for consistency
Replace console.log with logger.info for initial prompt messages to
maintain consistency with codebase logging practices.

Co-authored-by: nate <nate@continue.dev>
2025-12-07 19:15:08 +00:00
Nate
2e2fc51082 feat(cli): prevent initial prompt replay on devbox resume 2025-12-07 11:10:53 -08:00
Nate
09deed45dd feat(cli): add session ID support for serve command to persist chat history 2025-12-07 10:10:53 -08:00
Nate Sesti
15651c93f8
Merge pull request #9034 from continuedev/nate/track-session-cost-and-usage
Add comprehensive cost tracking with OpenAI pricing and session usage display
2025-12-05 19:59:57 -08:00
Nate
1929275938 update tool prompt 2025-12-05 18:08:45 -08:00
Nate
2441b0fecc Add configurable timeout parameter to runTerminalCommand tool 2025-12-05 18:07:50 -08:00
continue[bot]
5c50e911d2 fix: Initialize usage field in createSession and startNewSession
Ensures all new sessions have the usage tracking structure initialized
to prevent undefined field errors.

Co-authored-by: nate <nate@continue.dev>
2025-12-06 01:52:23 +00:00
continue[bot]
dd053ba124 test: Update session tests to include usage field
Added usage field expectations to session creation tests to match
the new session structure that includes cost tracking.

Co-authored-by: nate <nate@continue.dev>
2025-12-06 01:05:27 +00:00
continue[bot]
32326ebf1e fix: Regenerate CLI package-lock.json to resolve dependency mismatches
Updated extensions/cli/package-lock.json to sync with package.json changes
for react and testing-library dependencies.

Co-authored-by: nate <nate@continue.dev>
2025-12-06 00:59:50 +00:00
continue[bot]
499b672d7e fix: Use named import for find-up v8
The find-up@8 package uses named exports, not default export.
Fixed the import statement to use the correct named import syntax.

Co-authored-by: nate <nate@continue.dev>
2025-12-06 00:51:29 +00:00
Nate
63ddba2cd2 ship it 2025-12-05 16:36:25 -08:00
Nate
85e30d20ac fix lint 2025-12-05 16:02:24 -08:00
continue[bot]
657c5fe023 fix: Correct import order for eslint compliance
- Move sentry import before session import in exit.ts
- Move session import before posthogService import in helpers
- Move services/types import before session import in TUIChat

Co-authored-by: nate <nate@continue.dev>
2025-12-05 23:58:22 +00:00
Nate
79737daba8 fix failing checks 2025-12-05 15:52:22 -08:00
Nate
e34ace263e 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:39:48 -08:00
continue[bot]
2e9a0f0b91 fix: Remove invalid totalCost property and update test mocks
- Remove totalCost property from Session objects (should be in usage object)
- Add trackSessionUsage to test mocks for streamChatResponse tests
- Fixes TypeScript compilation errors and test failures

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

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

Co-Authored-By: Continue <noreply@continue.dev>
2025-12-05 23:34:39 +00: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
Aaron Lippold
528a8abceb
fix(cli): expand model capability detection to include Llama, Nemotron, and Mistral (#8845)
* fix(cli): expand model capability detection to include Llama, Nemotron, and Mistral models

The isModelCapable function was showing false warnings for Llama, Nemotron,
and Mistral models, claiming they had "limited reasoning and tool calling
capabilities" when they actually have excellent capabilities.

**Changes:**
- Added /llama/, /nemotron/, /mistral/ patterns to capability detection regex
- Updated tests to reflect that these model families ARE capable
- All tests passing (26/26)

**Research validation:**
- Llama 3.3/Nemotron: #1 on alignment benchmarks, Arena Hard 85.0
- Mistral: 81.2% MMLU, supports function calling and JSON mode
- Both families widely used for agent workflows with proven tool calling

**Impact:**
- Removes false warnings for users of these popular model families
- Enables proper multiEdit tool usage for capable models
- Aligns detection with real-world model capabilities

Tested with nvidia/Llama-3_3-Nemotron-Super-49B-v1 on MITRE AIP endpoints.

Authored by: Aaron Lippold <lippold@gmail.com>

* fix: missing comma after grok

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2025-12-05 12:14:00 -08:00
Dallin Romney
ad057ec20e
Merge pull request #8928 from uinstinct/cli-single-submit
feat: submit slash command in one enter
2025-12-05 09:51:37 -08:00
Dallin Romney
10b9513fe7
Merge pull request #9018 from uinstinct/cli-wait-for-tests
chore: update slashCommands tests with waitForCondition
2025-12-05 09:25:45 -08:00
uinstinct
bf2a8a4add chore: update slashCommands tests with waitForCondition 2025-12-05 13:48:49 +05:30
Dallin Romney
34fdeb8398
Merge pull request #8925 from uinstinct/renamed-envvars
fix: use more intuitive envvars to manage OTLP and PostHog telemetry settings
2025-12-04 19:46:52 -08:00
Nate Sesti
7060687f99
Merge pull request #8965 from continuedev/dallin/path-uri-cli
fix(cli): path to uri and vice versa conversion
2025-12-04 14:05:27 -08:00
Dallin Romney
80a33ef162
chore: mcp 1.24.0 (#8974)
* chore: bump mcp

* chore: update mcp

* fix: linting
2025-12-04 12:58:28 -08:00
Dallin Romney
a080b635b4 docs: remove legacy env var notes 2025-12-04 12:10:35 -08:00
Dallin Romney
6419b44029 fix: tests for windows 2025-12-04 12:07:44 -08:00
uinstinct
6d0d6e67fd revert a comment 2025-12-04 18:26:42 +05:30
uinstinct
8502fab7f6 update cli/spec 2025-12-04 18:26:30 +05:30
uinstinct
ce193de1c7 Merge branch 'main' into renamed-envvars 2025-12-04 18:14:59 +05:30
uinstinct
4cf337448d Merge remote-tracking branch 'fork/cli-single-submit' into cli-single-submit 2025-12-04 18:10:09 +05:30
uinstinct
b0386085ac enqueue when generating response 2025-12-04 18:09:19 +05:30
uinstinct
b4cd212942 Merge branch 'main' into cli-single-submit 2025-12-04 17:58:23 +05:30
Dallin Romney
3adcac22bb fix: lint and tests 2025-12-03 15:01:01 -08:00
Dallin Romney
b6cc868eed Merge branch 'main' of https://github.com/continuedev/continue into dallin/path-uri-cli 2025-12-03 14:59:37 -08:00
uinstinct
3db6091dc5 update lastFrame 2025-12-03 18:41:19 +05:30
uinstinct
50f38286c2 update with waitForCondition 2025-12-03 18:21:46 +05:30
uinstinct
c1ac9fc845 refactor waitForCondition into file 2025-12-03 18:14:27 +05:30
continue[bot]
28d3374f38 docs: Update terminal command timeout from 30s to 120s in shell-mode.md
Co-authored-by: nate <nate@continue.dev>

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

Co-Authored-By: Continue <noreply@continue.dev>
2025-12-03 02:34:32 +00:00
Nate
d83a2c55c5 Increase terminal command timeout from 30s to 120s 2025-12-02 18:32:16 -08:00
continue[bot]
3ccaa092e6 fix(cli): fix test expectations and import path for uriUtils
- Add .js extension to import for ES modules compatibility
- Fix Windows UNC path test (file:// not file:///)
- Fix Windows path separator expectation (single backslash)
- Make Unix-only tests conditional on platform
- Handle platform-specific URI parsing differences
- Remove tautological test assertion

Addresses cubic code review feedback

Co-authored-by: nate <nate@continue.dev>
2025-12-02 21:28:57 +00:00
Dallin Romney
c1c885e8ca
Merge pull request #8909 from uinstinct/retry-cli-tests
fix(cli): wait for tui to update in test
2025-12-02 11:10:14 -08:00
uinstinct
163b004ce0 Revert "chore: retry cli tests on macos"
This reverts commit f3daebf49f.
2025-12-02 19:16:02 +05:30
uinstinct
12040b609f fix(cli): wait for tui to update in test 2025-12-02 19:15:49 +05:30
uinstinct
7598da04be Merge branch 'main' into retry-cli-tests 2025-12-02 17:08:30 +05:30
Dallin Romney
d09b3e2126 fix(cli): path to uri and vice versa conversion 2025-12-01 22:20:06 -08:00
Nate
0ec0249a02 add a test 2025-12-01 16:10:13 -08:00
Nate
ba603e8b48 Add auto-continuation after compaction in chat streaming 2025-12-01 15:54:21 -08:00