Commit graph

441 commits

Author SHA1 Message Date
Shawn Smith
d1973e3a6a
fix: HOTFIX 🚑 Fix crypto error (#7938)
* fix: 🚑 Fix crypto error

* fix: 🎨 Prettier

* fix: 🐛 Fix broken test
2025-09-24 13:06:58 -07:00
Nate
da2e31694a fix: cleanup of render debug 2025-09-15 20:11:48 -07:00
Nate
931afc63aa follow up to userenderdebug 2025-09-15 14:22:29 -07:00
Nate
144445bd7c feat: useRenderDebug hook for debugging react rerenders 2025-09-15 14:12:55 -07:00
Fred Bricon
14e84c909c refactor: rename modelSupportsThinking to modelSupportsReasoning and update related usages
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2025-09-03 10:29:02 +02:00
Fred Bricon
0b4e31a059 feat: enable reasoning toggle for ollama models
Signed-off-by: Fred Bricon <fbricon@gmail.com>
2025-09-03 09:36:16 +02:00
Nate
ced972d1ea fix: reinstate gui telemetry for non-continue users by separating sentry and posthog logic 2025-08-25 13:51:29 -07:00
Dallin Romney
941da91784 fix: cleanup 2025-08-20 23:20:04 -07:00
Dallin Romney
281ed6aeee fix: handle apply errors for tools 2025-08-20 22:22:05 -07:00
Ting-Wai
43465c13be
fix Typescript errors (#7261)
fix: Typescript errors
2025-08-20 11:23:33 -07:00
Patrick Erichsen
85994118e8
feat: implement Sentry error tracking with privacy-first anonymization (#6881)
* feat: add sentry to core

* feat: implement comprehensive Sentry error tracking with privacy-first anonymization

- Add Sentry ErrorBoundary components following React best practices
- Implement shared anonymization logic between core and GUI environments
- Create organized sentry directory structure with clean exports
- Add Continue team member access control (@continue.dev email check)
- Preserve node_modules package names for debugging while anonymizing user paths
- Include comprehensive test coverage for all anonymization scenarios
- Set up source maps for readable production error stack traces
- Add browser-compatible hashing without crypto module dependency

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

Co-Authored-By: Claude <noreply@anthropic.com>

* feat: complete Sentry integration with GUI components and tests

- Add GUI TelemetryProviders with Sentry ErrorBoundary
- Create shared isContinueTeamMember utilities for both core and GUI
- Update all imports and dependencies for new sentry structure
- Add comprehensive test coverage and fix all TypeScript issues

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

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* fix: resolve GUI build errors by removing sentry index.ts and using specific imports

- Remove problematic index.ts that was pulling Node.js-specific Sentry code into browser bundle
- Update GUI to import specifically from anonymization.ts and constants.ts files
- Update core imports to use specific SentryLogger.ts import path
- GUI build now succeeds with proper source map upload to Sentry

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

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: move TelemetryProviders inside AuthProvider to fix test failures

- Move TelemetryProviders from main.tsx to Layout.tsx inside AuthProvider
- Fixes "useAuth must be used within an AuthProvider" error in tests
- TelemetryProviders now has access to auth context for Continue team member check
- GUI build and functionality remain working correctly

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

Co-Authored-By: Claude <noreply@anthropic.com>

* prettier

* merge main

* Update package.json

* fix tests

* fix errors

* Update extension.ts

* disable sentry in tests/local dev

* add additional error handling

* Update SentryLogger.ts

* remove global try/catch

* remove test code

* linting

* Update SentryLogger.ts

* more logs

* Update core.ts

* lower sampling rate

* fix tests

* feat: use `Logger`

* Update logger.ts

* Update logger.ts

Co-Authored-By: Claude <noreply@anthropic.com>

* lint fixes

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: rename logger.ts to Logger.ts for case sensitivity

This fixes TypeScript compilation errors in CI where the file
was tracked as lowercase logger.ts but referenced as Logger.ts
in imports.

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

Co-Authored-By: Claude <noreply@anthropic.com>

* address ting-wai's feedback

* Update core.ts

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-08-14 16:54:21 -07:00
uinstinct
070ea430e1 chore: remove submit message listener 2025-08-05 19:08:47 +05:30
Ting-Wai To
4d44234855 feat: add editOutcome logging for Agent Mode
• Add editOutcome.jsonl logging for Agent Mode accept / rejects
• Capture original file content before applying changes to enable proper diff tracking
• Fix newline handling in IntelliJ and VS Code to prevent line count discrepancies, was causing lineChange count to be off by one
2025-07-24 14:38:04 -07:00
Nate
0453d2acf5 Merge branch 'main' into nate/anthropic-usage-oai-adapters 2025-07-17 19:45:42 -07:00
Dallin Romney
e60cd53cca remove extraneous console log 2025-07-16 14:30:48 +02:00
Dallin Romney
f7e2c0f3b3 merge-main 2025-07-15 18:49:34 +02:00
Patrick Erichsen
cd6ceebcbf fix: render all pending apply states 2025-07-13 18:41:56 -07:00
Dallin Romney
2da461e110 reload config logs, await cascade init, cascade abort controller, client signals 2025-07-12 00:40:44 -07:00
Patrick Erichsen
f573597b44 Fix parallel tool calls accept/reject issue and refactor selectors
- Fixed utility functions to find tool calls in correct assistant message instead of last history item
- Enhanced PendingToolCallToolbar to handle individual tool call actions properly
- Added comprehensive tests for multiple tool call scenarios
- Consolidated tool call selectors into single file with cleaner naming
- Added mock support for tools/call endpoint to enable proper testing
- Fixed streamResponseAfterToolCall to wait for all parallel tool calls before continuing

This resolves the issue where accepting/rejecting one tool call would cause other pending tool calls to disappear from the UI.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-10 11:25:59 -07:00
Patrick Erichsen
a9e3a56a61 Fix parallel tool calls core processing and Claude API compatibility
## Key Issues Fixed

### 1. Tool Output Matching Error
- **Problem**: `compileChatMessages` only processed the last tool message, causing "no tool call found to match tool output" errors
- **Solution**: Modified to collect and process all consecutive tool messages from the end
- **Files**: `core/llm/countTokens.ts` - Enhanced tool message collection and validation logic

### 2. Claude API Missing tool_result Blocks
- **Problem**: `flattenMessages` was merging adjacent tool messages, losing individual `toolCallId` properties
- **Solution**: Prevented merging of tool messages to preserve unique `toolCallId` for each `tool_result` block
- **Files**: `core/llm/messages.ts` - Added condition to prevent tool message merging

### 3. Token Counting for Parallel Tool Calls
- **Problem**: Token counting only considered the last tool message
- **Solution**: Added logic to count tokens for all tool messages in parallel scenarios
- **Files**: `core/llm/countTokens.ts` - Enhanced token counting for multiple tool messages

## Test Coverage
- Added comprehensive tests for parallel tool call scenarios
- Tests verify correct message structure for Claude API format
- All existing functionality preserved with backward compatibility

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 21:18:48 -07:00
Patrick Erichsen
082a73e277 Refactor utility functions for parallel tool call support
- Remove findCurrentToolCall and replace with parallel-aware alternatives
- Add hasCurrentToolCalls() for boolean checks
- Add findCurrentToolCallsByStatus() for status-specific filtering
- Add new selectors: selectCurrentToolCalls, selectHasCurrentToolCalls, selectCurrentToolCallsByStatus
- Keep selectCurrentToolCall as legacy selector (returns first tool call)
- Update all imports to use proper selectors
- Comprehensive unit tests with 21 passing tests
- Maintain backward compatibility while enabling parallel tool calls

Key Changes:
- Deprecated single tool call logic in favor of array-based approach
- All utility functions now handle both single and multiple tool call scenarios
- TypeScript compilation clean, all tests passing

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-08 13:04:05 -07:00
Nate
a0de6da682 more information in cost usage console 2025-07-07 18:51:05 -07:00
Nate
409935d998 improv: cost breakdown in continue console 2025-07-07 18:02:45 -07:00
Patrick Erichsen
263a1fde2a
Merge pull request #6427 from uinstinct/sessions-loading
feat: add a sessions loading indicator
2025-07-02 21:31:16 -07:00
uinstinct
c59f14a890 add a sessions loading indicator 2025-07-03 09:22:37 +05:30
adarshramiyer
7fd52ff6c3 updated logToolUsage to use core "devdata/log" message 2025-07-02 19:49:48 -07:00
adarshramiyer
6635135ec6 removed need for idemessenger and added necessary logging locations 2025-07-02 19:30:14 -07:00
Dallin Romney
318543872a remove builtin_ from tool names, add tool policy migration 2025-07-01 23:52:24 -07:00
Dallin Romney
6e3d42e80e update message cancelaltion and rejection logic 2025-07-01 01:57:41 -07:00
Dallin Romney
3dfaa790f0 merge main 2025-06-27 11:07:51 -07:00
Dallin Romney
f7825aa507 working yolo mode test 2025-06-26 13:51:51 -07:00
Dallin Romney
c7709a79b5 clean up yolo mode 2025-06-26 11:17:21 -07:00
Dallin Romney
7c516f7468 chat integration tests 2025-06-26 10:32:50 -07:00
Patrick Erichsen
c522bf164b Merge remote-tracking branch 'origin/main' into assistant-loading-on-login 2025-06-23 17:22:06 -07:00
Dallin Romney
2c352ea7c3 Merge branch 'main' of https://github.com/continuedev/continue into dallin/prompt-tools 2025-06-23 14:14:12 -07:00
uinstinct
084f6cc27e add enable reasoning button 2025-06-23 16:25:45 +05:30
Dallin Romney
ff4dcdce73 add source to slash commands, rearrange and mark built in legacy as legacy 2025-06-20 23:39:39 -07:00
Dallin Romney
937d553bce add imports back for components/x level files 2025-06-20 14:25:05 -07:00
Dallin Romney
e222fba6aa remove all barrel extensions 2025-06-19 13:42:43 -07:00
uinstinct
afb36cdbfd configLoading redux state
on initial load, login and manual config refresh show the loading indicator
2025-06-19 11:33:47 +05:30
Nate
02e4fa6e45 Merge branch 'main' into nate/prettier-ci 2025-06-02 13:03:36 -07:00
Nate
a26a374ad8 npx prettier --check "gui/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-pa
th .gitignore --ignore-path .prettierignore --write
2025-05-25 18:35:42 -07:00
Patrick Erichsen
7c72c4af87 feat: better editor content handling in edit 2025-05-22 17:13:27 -07:00
Patrick Erichsen
fab53472a9 fix: navigation bug 2025-05-22 15:39:21 -07:00
Patrick Erichsen
4f371a0eb6 feat: remove edit as a mode 2025-05-22 14:45:27 -07:00
Dallin Romney
f4d56e6545 jetbrains infrastructure 2025-05-20 22:55:18 -07:00
Dallin Romney
ade64a5cf9 vscode theme updates 2025-05-20 20:53:20 -07:00
Dallin Romney
71e55f57d8 cleanup 2025-04-30 20:47:20 -07:00
Dallin Romney
e00b98758e ParallelListeners instead of useSetup 2025-04-30 20:14:26 -07:00
Dallin Romney
577af64909 apply state fixes 2025-04-30 00:01:01 -07:00