continue-custom/gui/src/hooks
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
..
ParallelListeners.tsx chore: remove submit message listener 2025-08-05 19:08:47 +05:30
TelemetryProviders.test.tsx feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
TelemetryProviders.tsx feat: implement Sentry error tracking with privacy-first anonymization (#6881) 2025-08-14 16:54:21 -07:00
useAppendedString.ts chore: prettier bulk apply in gui 2024-11-10 21:45:13 -08:00
useArrayState.ts ✨ merge preview to main (#575) 2023-10-22 19:34:44 -07:00
useBookmarkedSlashCommands.ts add source to slash commands, rearrange and mark built in legacy as legacy 2025-06-20 23:39:39 -07:00
useCopy.tsx request -> load etc. 2024-11-15 11:45:29 -08:00
useIdeMessengerRequest.ts Update useIdeMessengerRequest.ts 2025-04-14 14:12:51 -07:00
useInputHistory.ts Revert "feat(editor): implement up/down arrow key history navigation for edit mode" 2025-03-19 22:10:51 -07:00
useIsOSREnabled.ts fix: intellij freezing 2024-11-29 15:58:01 -06:00
useLLMLog.ts Console: limit number of interactions that we retain 2025-04-07 14:11:38 -04:00
useLLMSummary.ts improv: cost breakdown in continue console 2025-07-07 18:02:45 -07:00
useNavigationListener.tsx fix: navigation bug 2025-05-22 15:39:21 -07:00
useTotalUsage.ts more information in cost usage console 2025-07-07 18:51:05 -07:00
useUpdatingRef.tsx 🐛 config, proxy, slash command fixes 2024-02-02 18:36:00 -08:00
useWebviewListener.ts npx prettier --check "gui/**/*.{js,jsx,ts,tsx,json,css,md}" --ignore-pa 2025-05-25 18:35:42 -07:00