Commit graph

734 commits

Author SHA1 Message Date
Suhas S
f67539882c fix: CSS files not being indexed (#7072)
CSS files were not being indexed because codeChunker expects code
structures (classes/functions) that don't exist in CSS. The chunker
would return zero chunks, preventing CSS files from being indexed.

This fix routes CSS, HTML, JSON and similar non-code files to
basicChunker instead of codeChunker, ensuring they are properly
indexed while maintaining intelligent chunking for actual code files.
2025-08-25 00:08:15 +08:00
Dallin Romney
3853124eb3 fix: move ide dirs and venv dirs to indexing not security ignores 2025-08-21 19:51:01 -07:00
Dallin Romney
afb19b926a fix: move .continue from security to indexing ignore 2025-08-21 19:48:11 -07:00
Dallin Romney
5052dc7969 fix: ignore .idea etc. 2025-08-21 19:40:57 -07:00
Dallin Romney
8d53bb333d fix: cleanup file security pr 2025-08-21 17:33:12 -07:00
Dallin Romney
41dfda6ff9 fix: tests for new ignore tweaks 2025-08-21 16:19:31 -07:00
Dallin Romney
765d9d8f88 fix: update security ignores 2025-08-21 16:15:03 -07:00
Dallin Romney
fe16983203 fix: install core dependencies for cli 2025-08-21 15:43:35 -07:00
Dallin Romney
55068dc622 fix: update ignore package, rearrange for imports 2025-08-21 15:29:23 -07:00
Dallin Romney
d81a2304b6 wip: isSecurityConcern tests 2025-08-21 15:07:33 -07:00
Dallin Romney
400fefc1e3 fix: prevent security file reads cleanup 2025-08-21 14:18:53 -07:00
Dallin Romney
30c4cc1469 feat: prevent unsafe file reads 2025-08-21 13:40:03 -07:00
Dallin Romney
3d942da4c2
Merge branch 'main' into dallin/context-defaults 2025-08-18 17:17:03 -07:00
Dallin Romney
adb81b0682 fix: codebase indexing on start with no context provider 2025-08-18 16:19:19 -07:00
Dallin Romney
36ef3cb15c fix: update has context provider 2025-08-18 13:11:09 -07:00
Dallin Romney
4717677959 feat: update default-included context providers, move to util 2025-08-18 12:52:02 -07:00
uinstinct
fd19be2bfe cleanup async encoders after tests 2025-08-18 18:31:36 +05:30
uinstinct
46724aa3e6 Merge branch 'main' into func-max-chunk-size 2025-08-18 18:20:53 +05:30
Patrick Erichsen
4eeb34940f
chore: remove docs cache (#7108)
* chore: remove docs cache

* Update DocsService.ts
2025-08-15 14:03:32 -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
cec4f0f4a3 abort controller should not be undefined 2025-08-12 13:05:42 +05:30
uinstinct
e115abd5cd tests for codeChunker function definition 2025-08-11 08:43:43 +05:30
uinstinct
5b9feccc69 fix: abort controller before clearing 2025-08-08 12:42:08 +05:30
uinstinct
58f4fffae2 fix: function definition to respect max chunk size 2025-08-08 11:21:25 +05:30
Shawn Smith
7d9786606f
fix: 🐛 Fix CodebaseIndexer Bugs (#6890)
* fix: 🐛 Fix CodebaseIndexer Bugs

* fix: 🎨 Prettier

* fix: ✅ Fixed by reoganizing dependent tests

* build: 💚 New CI Build
2025-07-30 21:51:17 -07:00
Ting-Wai To
6bdae841d8 test: chunkDocumentWithoutId 2025-07-23 17:44:17 -07:00
Ting-Wai To
24574d3544 test: verify chunkDocument filters out chunks exceeding maxChunkSize 2025-07-22 11:24:59 -07:00
Nate
7df8c56d65 skip flaky test for github cralwer 2025-07-17 22:48:57 -07:00
Jazzcort
f59863ba70 Fix: add sanitizing process to strip off the trailing slash of the doc URL
In this patch, we add a sanitizing process to strip off the trailing forward slash (if any) in
the given URL before generating the file path for S3 bucket. Therefore, both variants (url
with / and without /) in the config file can be treated the same.

https://github.com/continuedev/continue/issues/6454
2025-07-16 16:41:58 -04:00
Dallin Romney
c41be7ee41
Merge pull request #6131 from shssoichiro/refresh-codebase-index
fix: refresh codebase index on config change
2025-07-16 20:50:55 +02:00
nathants
22a9fb2cb1
fix: sqlite migrations should ran after the table is created 2025-07-14 10:28:24 -10:00
Josh Holmer
634aafb08f
refactor: reorganize equality checks to avoid unnecessary params 2025-07-14 10:26:31 -04:00
Josh Holmer
ce29471458
refactor: add helper function to clarify intention 2025-07-14 10:17:59 -04:00
Josh Holmer
deb9faacee
fix: refresh codebase index on config change 2025-07-14 10:17:56 -04:00
uinstinct
a020a49f4b add timestamp calculation 2025-07-10 20:47:44 +05:30
uinstinct
69f035d263 fix eslint 2025-07-10 19:28:18 +05:30
uinstinct
a472461478 introduce indexing lock 2025-07-10 19:27:00 +05:30
Jazzcort
1d06c3b756 Fix: improved Documentation Indexing and Submenu Updates
This patch significantly enhances how Continue responds to changes in the
documentation configuration, providing a more consistent and user-friendly
experience.

Previously, Continue's handling of documentation configuration changes
could lead to inconsistencies, requiring users to relaunch the application
to see updates. This PR addresses these issues by improving the caching,
indexing, and display of the documentation.

Key Improvements:
  1. Submenu items for the documentation now refresh automatically after
     retrieving the cache from S3. Before this fix, it won't show up in
     the submenu until we relaunch Continue.
  2. The titles and favicons for cached documentation now correctly
     reflect the values defined in the docs configuration, rather than
     defaulting to the URL.
  3. Deleting or commenting out a documentation entry in the configuration
     file will now automatically remove it from the submenu, ensuring
     consistency between the configuration and the displayed options.
  4. If only the title or favicon of a document changes, Continue now
     efficiently updates the metadata in the SQLite database instead of
     performing a full reindexing.
  5. Continue can now catch and apply changes to documentation titles and
     favicons even when the application is not actively running.

Future Considerations:
  1. The doc schema in the config-yaml should be updated to include
     maxDepth and useLocalCrawling parameters if we're planing to keep
     these parameters. Their values are always undefined now no matter
     what users set in config file.
  2. If we do keep maxDepth and useLocalCrawling, we should consider adding
     maxDepth and useLocalCrawling to the SQLite metadata. This would allow
     the SQLite database to serve as a persistent store for each document's
     parameters, preventing edge cases where changes to the documentation
     configuration are missed when Continue is inactive.
2025-07-08 17:06:56 -04:00
Nate
de2d0c187f parse incorrectly formatted vectors so we can salvage broken indexes 2025-07-05 09:53:53 -07:00
Nate
a91a28160e fix typo 2025-07-04 10:12:52 -07:00
Nate Sesti
e2fcf420bb
Merge pull request #6390 from tingwai/tingwai/indexing-error-handling-dont-halt-on-error
Prevent entire indexing process from stopping on error and surface messages to Indexing menu
2025-07-03 11:02:50 -07:00
Ting-Wai To
057809b242 Prevent entire indexing process from stopping on error and surface messages to Indexing menu 2025-07-02 10:13:00 -07:00
Nate
f0a7e2675d Merge branch 'main' into issue-6139 2025-07-01 18:37:01 -07:00
Dallin Romney
850aca09e4 Merge branch 'main' of https://github.com/continuedev/continue into dallin/use-embeddings-batches 2025-06-23 09:28:12 -07:00
Nate Sesti
dbabee5906
Merge branch 'main' into patch-2 2025-06-20 19:13:30 -07:00
Dallin Romney
69ea88ccc5 reduce codebase indexer file batch size 2025-06-17 15:52:17 -07:00
Josh Holmer
0b929bf799
fix: do not delete docs indexes on resync 2025-06-16 11:35:42 -04:00
uinstinct
4b4e3e4702 fix misused promises errors in core folder 2025-06-13 23:01:28 +05:30
Patrick Erichsen
7140451aa3
Merge pull request #6032 from owl-app/fix-codebase-indexing
fix: 🐛 Codebase Indexing still not work
2025-06-09 14:48:43 -07:00
Patrick Erichsen
f7b10511bd
Merge pull request #5564 from chezsmithy/fix(files-context)-refresh-on-new-file-and-save
fix: 🐛 Index files from save and tools
2025-06-09 14:30:38 -07:00