Skip to content

Conversation

@mrubens
Copy link
Collaborator

@mrubens mrubens commented Apr 15, 2025

Important

Add telemetry for prompt enhancement by introducing a PROMPT_ENHANCED event in the telemetry service and capturing it in the webview message handler.

  • Telemetry:
    • Add PROMPT_ENHANCED event to PostHogClient.EVENTS.TASK in TelemetryService.ts.
    • Implement capturePromptEnhanced() in TelemetryService to log PROMPT_ENHANCED events.
  • Webview Message Handling:
    • Capture PROMPT_ENHANCED telemetry in webviewMessageHandler when a prompt is enhanced.

This description was created by Ellipsis for 51b583c. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Apr 15, 2025

⚠️ No Changeset found

Latest commit: 51b583c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Apr 15, 2025

// Capture telemetry for prompt enhancement
const currentCline = provider.getCurrentCline()
telemetryService.capturePromptEnhanced(currentCline?.taskId)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider wrapping the telemetry call in a try/catch to ensure any telemetry failure doesn’t impact the user flow, even though it’s fire-and-forget.

@mrubens mrubens merged commit 5f19ea4 into main Apr 15, 2025
19 checks passed
@mrubens mrubens deleted the add_prompt_enhancement_telemetry branch April 15, 2025 14:49
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Apr 15, 2025
SmartManoj pushed a commit to SmartManoj/Raa-Code that referenced this pull request May 6, 2025
* fix: Prevent duplicate BOM in incoming content for DiffViewProvider

* fix: Prevent duplicate BOM in changeset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants