Repository navigation
feat(cursor): AI cursor only on act/voice, morph no double cursor - #9
Merged
Merged
Conversation
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(cursor): AI cursor only on act/voice, morph no double cursor
Problem
In agent mode native cursor was blanked globally (
windows.rs:427SetSystemCursor+styles.css:2377body.agent-mode-active {cursor:none}) and AI cursor followed user continuously (Overlay.tsx:98native-cursor-move6ms). Caused double-cursor and native hidden even when idle; AI behind StartMenu due toHWND_TOPMOSTvsZBID_IMMERSIVE.Solution - Tradeoff A
Native stays visible until AI actually acts. AI morphs from native pos (no double).
1456: stopsetAgentCursorVisibility(agentModeEnabled)on toggle; only restore on exit. Keepsbody.agent-mode-activefor styling but not cursor hide.Overlay.tsx:setAgentCursorVisibility, tracklastNativePosRef,isVoiceActiveRefuseEffectsyncagentCursorVisible -> setAgentCursorVisibility(Win32 blank only when AI visible)isVoiceActivetrue -> place AI atlastNativePos+voice-following 0.18s ease-out, hide native; false -> hide after600msif not actingnative-cursor-movestores pos, follows only whenvoiceActive && !actingagent-cursor-movemorphslastNative -> targetwithtransition:none-> reflow ->agent-acting 0.45s cubic-bezier(0.2,0.85,0.25,1), pulse360ms, hide after2.5sunless voice active2376-2410: removebody.agent-mode-active cursor:none(now Win32 only), wrapperopacity 0->1 0.28s,.voice-following/.agent-actingtransitionsFiles
common/frontend/src/CommandBar.tsx(8 lines)common/frontend/src/Overlay.tsx(105 lines)common/frontend/src/styles.css(15 lines)