Commit graph

803 commits

Author SHA1 Message Date
Dallin Romney
d87dd573ef feat: error for large files with informative message rather than truncating 2026-01-14 16:23:15 -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
6b3c0be2f1 fix: env stubs for cli platform tests 2026-01-12 20:09:08 -08:00
Dallin Romney
219f5661c9 fix: inject blocks tests for cli secret resolution 2026-01-12 19:44:16 -08:00
Dallin Romney
91ddbb8c2e fix: use proxy for unrendered injected block secrets 2026-01-12 19:33:55 -08:00
Dallin Romney
d7b91f884c fix: tests and cubic feedback 2026-01-09 16:07:33 -08:00
Dallin Romney
5d7327f8e0 chore: update read file truncation limit to 25k tokens ish 2026-01-09 16:01:07 -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
RomneyDa
c1e466836a fix: change 'Agent:' to 'Config:' in intro message and update tests
- Update IntroMessage.tsx to display 'Config:' instead of 'Agent:'
- Update IntroMessage.test.tsx to match new label
- Update ServiceDebugger.tsx to use consistent 'Config:' label

This change provides clearer terminology for users.

Co-authored-by: dallin <dallin@continue.dev>
Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2026-01-06 18:20:36 +00:00
Dallin Romney
f904a1ab2e
Merge pull request #9345 from uinstinct/cli-run-update
fix(cli): restart cli for manual update
2026-01-06 12:14:09 -05:00
Dallin Romney
b24adaaf83
Merge pull request #9270 from continuedev/dallin/relative-path-fallback-cli
fix: re-throw hub error for non-markdown hub slugs
2026-01-05 14:30:08 -05:00
uinstinct
595986a6fb fix(cli): restart cli for manual update 2025-12-29 17:48:44 +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
f644c8873e fix: re-throw hub error for non-markdown hub slugs
When hub loading fails for a path that looks like a hub slug (owner/agent)
and is NOT a markdown file, re-throw the hub error instead of showing
"Not a markdown file". This preserves the actual error from the hub
(e.g., network error, auth error, not found) instead of a confusing
generic message.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 16:45:48 -05:00
Nate
53a9fa4cb3 fix: add missing hub mock rejection in test
Add mockLoadPackageFromHub.mockRejectedValue() to test that verifies
file reading failure for markdown paths. Without this, the hub would
succeed and the file reading code wouldn't be exercised.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 15:34:38 -05:00
Nate
4c0c53257b fix: fix lint error and update tests for markdown-only fallback
- Remove unused variable 'e' in catch block
- Update tests to use .md extensions for file path loading tests
- Add test for non-markdown paths throwing errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-22 15:29:23 -05:00
Dallin Romney
d93b4321a5 fix: don't fallback to relative path if not markdown file 2025-12-22 10:47:28 -08:00
Dallin Romney
e3a4f77e9f
Merge pull request #9083 from svarlamov/feat/cli-git-ai-integration
feat: Continue CLI Git AI integration for tracking AI-authored code
2025-12-15 19:55:48 -08:00
Dallin Romney
121988335c
Merge pull request #9111 from continuedev/snyk-upgrade-8e3d5e462b3584de0b8d109421a2aa54
[Snyk] Upgrade mocha from 11.7.1 to 11.7.5
2025-12-15 17:05:43 -08:00
continue[bot]
ba750e4f78 Fix flaky slash command test on Windows
The test was timing out on Windows CI due to slower rendering.
Increased the timeout from 2000ms to 5000ms and interval from 50ms to 100ms
to give more time for the UI to render the /title command.

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

Co-Authored-By: Continue <noreply@continue.dev>
Co-authored-by: nate <nate@continue.dev>
2025-12-10 23:20:29 +00:00
Nate
536bc769ea vercel ai sdk, feature-flagged by env var 2025-12-10 00:46:22 +00:00
continue[bot]
2ae2f80af6 fix: refactor handleToolCalls to use options object to satisfy max-params lint rule
- Grouped function parameters into HandleToolCallsOptions interface
- Reduced parameter count from 6 to 1 (options object)
- Updated call site in streamChatResponse.ts to use new signature

Co-authored-by: nate <nate@continue.dev>
2025-12-09 22:59:03 +00:00
Nate
7f9ef3694d feat: capture and attach usage metadata to assistant messages
Add per-message cost tracking by capturing usage data from LLM API
responses and attaching it to assistant messages when saved to session.

- Update addAssistantMessage to accept usage parameter
- Modify handleToolCalls to pass usage to message creation
- Enhance processStreamingResponse to return usage with model and cost
- Calculate cost in cents and include model name in usage metadata

This enables the control plane cost analysis page to display accurate
per-message costs without client-side token estimation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 14:36:24 -08:00
Sasha Varlamov
f3668adba9 fix formatting 2025-12-09 11:51:41 -05:00
Sasha Varlamov
8114909af4 add tests, fix lints 2025-12-09 11:47:23 -05:00
Sasha Varlamov
32d3368ea7 tidy git ai integration 2025-12-09 11:47:22 -05:00
Sasha Varlamov
d4fd449906 clean up imports in git ai integration service 2025-12-09 11:47:22 -05:00
Sasha Varlamov
b587fe7d13 fix lints 2025-12-09 11:47:22 -05:00
Sasha Varlamov
7b2beb5f04 initial git ai integration 2025-12-09 11:47:20 -05:00
Nate
cd538eb230 update tool description 2025-12-08 22:24:30 -08:00
Nate
b5da44ddd6 fix(cli): resolve circular dependency in uploadArtifact tool
The uploadArtifact tool was importing services at the module level,
creating a circular dependency:
services/index.ts -> ToolPermissionService -> allBuiltIns -> uploadArtifact -> services/index.ts

This caused ToolPermissionService to be undefined when instantiated,
resulting in "ToolPermissionService is not a constructor" errors
in all ToolPermissionService tests.

The fix moves the services import inside the run() function where
it's actually used, breaking the circular dependency while
maintaining the same functionality.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-08 20:32:14 -08:00
continue[bot]
3875a472fc Fix ToolPermissionService mock to avoid constructor error
Replaces 'vi.mocked(new ToolPermissionService())' with a plain mock object
containing the necessary methods. This fixes the 'ToolPermissionService is
not a constructor' error that was causing all tests to fail.

Also adds getState method to artifactUpload mock for completeness.

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:51:45 +00:00
continue[bot]
f02a8bc8eb Move betaUploadArtifactTool to BaseCommandOptions
Fixes TypeScript error: 'Property betaUploadArtifactTool does not exist on type BaseCommandOptions'

ServiceInitOptions.options is typed as BaseCommandOptions, so betaUploadArtifactTool
needs to be in BaseCommandOptions rather than ExtendedCommandOptions.

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:43:08 +00:00
continue[bot]
5920c66ea3 Add artifactUpload service to test mocks
- Adds artifactUpload mock to services object with uploadArtifact and uploadArtifacts methods
- Adds ARTIFACT_UPLOAD to SERVICE_NAMES mock

This ensures tests that import services or SERVICE_NAMES don't fail due to missing mock definitions.

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:33:38 +00:00
continue[bot]
7123eef807 Fix ArtifactUploadService to extend BaseService
- Makes ArtifactUploadService extend BaseService<ArtifactUploadServiceState>
- Implements doInitialize() instead of initialize()
- Uses currentState instead of private state field
- Removes custom setState method in favor of BaseService's setState

This aligns the service with the architecture pattern used by other services
in the CLI (UpdateService, ConfigService, etc.)

Co-authored-by: nate <nate@continue.dev>
2025-12-09 00:21:34 +00:00
Nate
85a4a69ebe Add artifact upload feature to CLI for agent sessions 2025-12-08 16:01:13 -08:00
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