8000 feat(cursor): AI cursor only on act/voice, morph no double cursor by boldbug1 · Pull Request #9 · KingSahil/Blinky · GitHub
[go: up one dir, main page]

Skip to content

feat(cursor): AI cursor only on act/voice, morph no double cursor - #9

Merged
KingSahil merged 1 commit into
KingSahil:mainfrom
boldbug1:fix/cursor
Aug 27, 2026
Merged

KingSahil merged 1 commit into
KingSahil:mainfrom
boldbug1:fix/cursor

Conversation

@boldbug1
Copy link
Copy Markdown
Collaborator

feat(cursor): AI cursor only on act/voice, morph no double cursor

Problem

In agent mode native cursor was blanked globally (windows.rs:427 SetSystemCursor + styles.css:2377 body.agent-mode-active {cursor:none}) and AI cursor followed user continuously (Overlay.tsx:98 native-cursor-move 6ms). Caused double-cursor and native hidden even when idle; AI behind StartMenu due to HWND_TOPMOST vs ZBID_IMMERSIVE.

Solution - Tradeoff A

Native stays visible until AI actually acts. AI morphs from native pos (no double).

  • CommandBar 1456: stop setAgentCursorVisibility(agentModeEnabled) on toggle; only restore on exit. Keeps body.agent-mode-active for styling but not cursor hide.
  • Overlay Overlay.tsx:
    • Import setAgentCursorVisibility, track lastNativePosRef, isVoiceActiveRef
    • useEffect sync agentCursorVisible -> setAgentCursorVisibility (Win32 blank only when AI visible)
    • Voice: isVoiceActive true -> place AI at lastNativePos + voice-following 0.18s ease-out, hide native; false -> hide after 600ms if not acting
    • native-cursor-move stores pos, follows only when voiceActive && !acting
    • agent-cursor-move morphs lastNative -> target with transition:none -> reflow -> agent-acting 0.45s cubic-bezier(0.2,0.85,0.25,1), pulse 360ms, hide after 2.5s unless voice active
  • styles.css 2376-2410: remove body.agent-mode-active cursor:none (now Win32 only), wrapper opacity 0->1 0.28s, .voice-following / .agent-acting transitions

Files

  • common/frontend/src/CommandBar.tsx (8 lines)
  • common/frontend/src/Overlay.tsx (105 lines)
  • common/frontend/src/styles.css (15 lines)

@coderabbitai
coderabbitai Bot commented Aug 27, 2026
Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b7a37df9-54f7-42e9-8f77-c6339a4e3bfc


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@KingSahil
KingSahil merged commit ffacc69 into KingSahil:main Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0