Skip to content

[Feature] Platform Bridge Integration: [Cursor] #3

Description

@vinaykolupula

Description

Implement a new platform bridge to support [Cursor] within the ContxtAI framework. This will allow users to manage their context, use the context thermometer, and apply highlight-to-save features directly within the [Cursor] interface.

Target URL(s)

  • Base URL: https://chat.target-platform.com
  • Other relevant paths: (e.g., /c/* for chat sessions)

Technical Implementation Checklist

1. Core Bridge Setup

  • Create bridge-[platform].ts in the extension/contents/bridges/ directory.
  • Define the matching URL patterns in the manifest for content script injection.

2. DOM Selectors & Mapping

  • Chat Container: Identify the main scrollable wrapper containing the conversation.
  • Input Box: Locate the textarea or contenteditable div where users type prompts.
  • Submit Button: Identify the selector to optionally trigger message sending after context injection.
  • Assistant Response Blocks: Map the selectors used for rendering code blocks and raw text to support Auto-Distillation.

3. UI & Feature Integration

  • Ensure the Context Thermometer mounts correctly near the input box without breaking native UI.
  • Verify Highlight-to-Save context menus appear correctly when text is selected.
  • Test the Context Invalidated / Fade Warning triggers appropriately on hard refreshes or chat clears.
  • Verify Local Scrubber properly intercepts and masks sensitive data before it hits the platform's input area.

Known Challenges / Edge Cases for this Platform

  • (Add any specific quirks here, such as: "Grok uses heavily obfuscated class names that change on every build," or "Cursor is an electron app, need to verify extension behavior in their web view.")

Linked Epic

Part of Epic: #2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions