[F174] /rec 已有最终文字后停止正常收尾,不误报转录收尾失败
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 1h 7m
- Merged PRs (30d)
- 969
Description
## 用户可见行为
用户在 /rec 讲话并已看到最终文字后点击停止转录,已持久化正文保持不变,界面正常结束本次录音并允许之后再次开始追加;当停止时没有新的尾段可返回,不再误报“转录收尾失败”。
## 根因
ConfiguredRealtimeAsrProvider.finish() 在停止前清空整次会话的 finalSeen。server VAD 已在停止前结算并持久化最后一句时,stop 的空尾 commit 不再产生 completed 事件,于是 15 秒后被误判为 FINISH_TIMEOUT。
## 验证
- Provider 回归:已有 final + stop 无新增 final => 正常完成
- 保留整次会话无 final 的既有超时保护
- Gateway 回归
- API typecheck(当前 main 上 fabric-markdown DOM/Canvas 类型基线错误另行记录)
分支:`worker/coord-voice-01-f174-asr-stop-final`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ConfiguredRealtimeAsrProvider.finish() and the existing provider regression coverage. Verify that a session with an existing final and no new final after stop completes normally, while a session with no final still retains its timeout protection; then run the Gateway regression and API typecheck, noting the separate fabric-markdown DOM/Canvas baseline errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100