Repository navigation
Open
Labels
bugSomething isn't working
Description
Describe the bug
Write Mode cannot read selected text from any Application I have tested.
It only works when I type into the playground text field within the FluidVoice App.
I have confirmed that Accessibility permissions are present.
Dictation works, Dictation with AI Enhancement works.
To Reproduce
Steps to reproduce the behavior:
- Install Fluid
- Complete Onboardibg Steps
- Verify AI enhancement works
- Open an application with a text field (e.g. Zed)
- Type "This is a spectacular situation".
- Select the text
- Start Write Mode ("right option"+R hotkey)
- dictate "translate to german"
- Wait until prompt is processed
- Selected Text is replaced with "Bitte geben Sie den Text ein, den ich für Sie ins Deutsche übersetzen soll." (german for "please provide the text, which I should translate to German for you.")
Expected behavior
I expected the selected text to be replaced with a german translation for the selected text.
In this case, something like "Dies ist eine spektakuläre Situation."
Screenshots
Will provide if you can tell me what would be helpful
Environment:
- macOS Version: Tahoe 26.4 (25E246)
- App Version: 1.5.10 (8)
- Architecture: Apple Silicon
Additional context
Provider tested:
- OpenRouter (API Key)
Models tested:
- Gemini 3.1 Flash Lite Preview
- Gemini 3 Flash
- GPT4.1-Mini
Apps tested:
- Zed
- Google Chrome (in a Google Docs document)
- Visual Studio Code
- Obsidian
Crash Logs
fluid-write-mode-issue-partial.log
Excerpt regarding text selection:
[16:51:45.393] [INFO] [GlobalHotkeyManager] Rewrite mode shortcut triggered - starting
[16:51:45.395] [INFO] [GlobalHotkeyManager] Rewrite mode hotkey triggered
[16:51:45.396] [DEBUG] [GlobalHotkeyManager] GlobalHotkeyManager: rewrite callback path, isRunning=false, isReady=true
[TextSelectionService] Selection capture start
[16:51:45.437] [DEBUG] [ContentView] Captured recording app context: app=Code, bundleId=com.microsoft.VSCode, title=
[16:51:45.437] [DEBUG] [TextSelectionService] [TextSelectionService] Selection capture start
[TextSelectionService] Trying frontmost app fallback: com.microsoft.VSCode pid=840
[16:51:45.437] [DEBUG] [TextSelectionService] [TextSelectionService] Trying frontmost app fallback: com.microsoft.VSCode pid=840
[TextSelectionService] Frontmost app fallback could not resolve focused element
[TextSelectionService] Selection capture failed: no selected text found
[16:51:45.439] [DEBUG] [TextSelectionService] [TextSelectionService] Frontmost app fallback could not resolve focused element
[16:51:45.439] [DEBUG] [TextSelectionService] [TextSelectionService] Selection capture failed: no selected text found
[16:51:45.439] [INFO] [ContentView] Rewrite mode triggered, text captured: false
[16:51:45.440] [INFO] [ContentView] No text selected - starting in write/improve mode
Metadata
Metadata
Assignees
Labels
bugSomething isn't working
Activity
m13v commentedon Apr 7, 2026
this is an accessibility permissions issue at the system level. on macOS, reading selected text from another app requires either the Accessibility API (AXUIElement) or the system pasteboard as a fallback. the AXUIElement approach: get the focused element with AXUIElementCopyAttributeValue for kAXFocusedUIElementAttribute, then read kAXSelectedTextAttribute. the catch is that some apps (Zed included) don't properly expose selected text through the accessibility tree. for those, the reliable fallback is simulating Cmd+C, reading the pasteboard, then restoring the previous pasteboard contents.
m13v commentedon Apr 7, 2026
our macOS accessibility API implementation that handles AXUIElement tree walking, including the focused element and attribute reading patterns: https://github.com/mediar-ai/mcp-server-macos-use/blob/main/Sources/MCPServer/main.swift
fix: coordinate clipboard-read fallback with TypingService pasteboard…
Fix altic-dev#259 clipboard fallback review findings
fix: add clipboard fallback for Write Mode selection reading (altic-d…
fix: harden Write Mode clipboard fallback — late-copy restore + layou…
fix: coordinate clipboard-read fallback with TypingService pasteboard…
Fix altic-dev#259 clipboard fallback review findings
fix: add clipboard fallback for Write Mode selection reading (altic-d…
fix: harden Write Mode clipboard fallback — late-copy restore + layou…
fix: coordinate clipboard-read fallback with TypingService pasteboard…
Fix altic-dev#259 clipboard fallback review findings
vasurya commentedon Aug 5, 2026
Still reproducible with current releases:
This is application-specific:
Reproduction:
The selected text is replaced with:
Relevant FluidVoice log excerpt:
The resulting LLM request contains only the spoken instruction and no selected-text context. Updating Obsidian's application and installer to 1.13.4 did not change the result.
fix: add clipboard fallback for Write Mode selection reading (altic-d…
fix: harden Write Mode clipboard fallback — late-copy restore + layou…
fix: coordinate clipboard-read fallback with TypingService pasteboard…
Fix altic-dev#259 clipboard fallback review findings