fix: 缩短悬浮球完成状态停留时间

AI-assisted-by: Codex

AI-model: gpt-5.6-sol

AI-reasoning-effort: medium

Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
2026-08-23 20:33:44 +08:00
co-authored by Codex
parent 7687350ca4
commit 6c3013b0ae
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -8,6 +8,7 @@
- 切换后端时销毁非当前后端的网页窗口,保留登录会话但不再保活其 renderer。
- 移除悬浮球点击录音和常驻显示功能,悬浮球仅用于显示语音会话状态。
- 缩短正常完成后的绿色状态显示时间。
## [0.1.10] - 2026-08-23
+3 -1
View File
@@ -6,6 +6,8 @@ import type { BackendManager } from './backend-manager';
import type { FcitxBridge } from './fcitx-bridge';
import type { OverlayController } from './overlay-controller';
const COMPLETION_INDICATOR_DURATION_MS = 450;
export class SessionController extends EventEmitter {
state: SessionState = 'idle';
private mirroredText = '';
@@ -97,7 +99,7 @@ export class SessionController extends EventEmitter {
this.state = 'idle';
this.mirroredText = '';
this.overlay.showState('done');
this.overlay.hideLater();
this.overlay.hideLater(COMPLETION_INDICATOR_DURATION_MS);
this.emitState();
}