Skip to content

fix: floating panel state residue and paste content error#1

Open
afetmin wants to merge 2 commits intothinkany-ai:mainfrom
afetmin:fix/floating-panel-state-reset
Open

fix: floating panel state residue and paste content error#1
afetmin wants to merge 2 commits intothinkany-ai:mainfrom
afetmin:fix/floating-panel-state-reset

Conversation

@afetmin
Copy link
Copy Markdown

@afetmin afetmin commented Mar 30, 2026

Issues

  1. When re-recording, the floating panel shows "Done" from previous recording
  2. Pasted content is the previously copied old content, not the newly transcribed text

Causes

  1. show() method didn't reset showSuccess and vadBlinking states
  2. Simulated paste immediately after writing to clipboard, clipboard wasn't ready yet

Fixes

  1. Reset these two state variables
  2. Add 50ms delay before simulating Cmd+V

afetmin added 2 commits March 30, 2026 07:58
Reset showSuccess and vadBlinking states when showing the panel,
preventing the previous recording's success indicator from appearing
on the next recording session.
The clipboard content wasn't ready when Cmd+V was simulated,
causing the previously copied content to be pasted instead of
the transcribed text.
@afetmin afetmin changed the title fix: reset floating panel state on show to prevent stale "Done" display fix: 修复悬浮面板状态残留和粘贴内容错误 Mar 30, 2026
@afetmin afetmin changed the title fix: 修复悬浮面板状态残留和粘贴内容错误 fix: floating panel state residue and paste content error Mar 30, 2026
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.

1 participant