mirror of
https://github.com/Melorise/TamaASR.git
synced 2026-11-07 14:39:32 +00:00
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:
@@ -8,6 +8,7 @@
|
||||
|
||||
- 切换后端时销毁非当前后端的网页窗口,保留登录会话但不再保活其 renderer。
|
||||
- 移除悬浮球点击录音和常驻显示功能,悬浮球仅用于显示语音会话状态。
|
||||
- 缩短正常完成后的绿色状态显示时间。
|
||||
|
||||
## [0.1.10] - 2026-08-23
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user