OpenVision icon indicating copy to clipboard operation
OpenVision copied to clipboard

Hands-free "new topic": clear conversation context by voice (and maybe a glasses gesture)

Open rayl15 opened this issue 4 months ago • 1 comments

Problem

Starting a fresh conversation topic mid-session currently means clearing context via the + button in the History tab — i.e. reaching for the phone. For a hands-free wearable, you should be able to say "let's change subject" without touching anything.

Requested on the Product Hunt launch by @soneruludo (Soner Uludoğan):

Would love a hands-free way to start a new conversation topic mid-session, like a short double-tap gesture on the glasses to clear context without needing to open the app on my phone.

Proposed solution

Two complementary triggers:

  1. Voice trigger (do first — self-contained, no SDK dependency)

    • A phrase like "Ok Vision, new topic" / "start over" / "new conversation" that clears the current context.
    • Should call ConversationManager.shared.startNewConversation() + ConversationContext.shared.clear() (same as the History "+" button), then optionally confirm ("Starting fresh").
    • Handle it in the command router (LocalAgent intent) or as a reserved command in VoiceCommandService, so it works across all backends.
  2. Touchpad gesture (needs investigation)

    • A double-tap on the glasses temple to clear context.
    • Open question: does the Meta Wearables DAT SDK expose temple touch/tap gestures to third-party apps? Needs an SDK capability check before committing. If unavailable, the voice trigger stands on its own.

Pointers

  • OpenVision/Managers/ConversationManager.swift — startNewConversation()
  • OpenVision/Services/LocalAgent/ConversationContext.swift — clear()
  • OpenVision/Services/Voice/VoiceCommandService.swift — command handling
  • OpenVision/Managers/GlassesManager.swift — DAT SDK surface (for the gesture investigation)

Voice trigger is a good first-issue-sized slice; the gesture is a stretch pending SDK support.

rayl15 avatar Jul 16 '26 08:07 rayl15

Hi @rayl15, I'd like to take this up! Here's a quick proposal on how I plan to approach the implementation:

  1. Voice Command Handling:

    • Add a reserved voice command for starting a new conversation.
    • Support phrases such as "new topic", "start over" and "new conversation".
    • Route the command through the existing command handling architecture so it works consistently across supported backends.
  2. Conversation State Reset:

    • Reuse ConversationManager.shared.startNewConversation().
    • Clear the existing context through ConversationContext.shared.clear().
    • Ensure the operation does not leave stale conversation state behind.
  3. User Feedback:

    • Provide a short confirmation after the reset.
    • Prevent the command from accidentally triggering normal conversational processing.
  4. Testing:

    • Add tests for command recognition and conversation reset.
    • Verify the behaviour with the supported voice backends.
    • Ensure normal voice commands remain unaffected.

I'll keep the first implementation focused on the voice trigger and treat the glasses gesture as a separate investigation, as suggested in the issue.

Aaqibhafeezkhan avatar Nov 03 '26 12:11 Aaqibhafeezkhan