* fix: preserve indentation when applying code edits via fuzzy matching
When fallback matching strategies (trimmedMatch, whitespaceIgnoredMatch)
find a match with different indentation than the LLM-provided old_string,
the replacement new_string now has its indentation adjusted to match the
actual indentation level in the file. This fixes incorrect indentation in
Python code edits where the LLM provides unindented search/replace strings
that match indented code blocks.
Fixes#11282
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix(core): adjust indentation when fallback match strategies splice replacements
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Strip all PostHog and Sentry telemetry from the codebase so the product
works without phoning home. OpenTelemetry (CLI, user-configured) is kept.
- Delete core telemetry files (posthog.ts, SentryLogger, TeamAnalytics, TokensBatchingService)
- Remove all capture/report calls from 80+ caller files across core, GUI, VSCode, CLI, IntelliJ
- Remove posthog-node, posthog-js, @sentry/* dependencies from all package.json files
- Remove PostHog/Sentry plugins and build scripts
- Create IdeInfoService.ts and uniqueId.ts for non-telemetry request headers
- Remove PostHog API key from docs config
- Remove posthog from analytics provider config schema
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* feat: sonnet lazy apply prompt should not change comments
* change for ApplyManager.getApplyPrompt
* change for ApplyToFileHandler.buildApplyPrompt
* remove unused edit prompts in edit templates
* add do not change comments to edit templates
* tweak prompt to remove explicitly
* feat: add Mercury Apply endpoint support to Inception LLM
* refactor: begin to clean up the apply / streamDiff code
* fix: undo commenting out of instant apply
* fix: use underlyingProviderName