.1963104737692169:835c4e368222cd9fc1b679d64e69ceb3_69f038e425b12d502f50150f.69f046e225b12d502f50173f.69f046e29c882f7a3ce837ea:Trae CN.T(2026/4/28 13:34:26)#1060
Open
666yuhan666 wants to merge 1 commit into
Conversation
666yuhan666
commented
Apr 28, 2026
- 修复进度状态继承问题:任务结束时清除 latestJob,避免残留进度回调影响下一批任务
- 修复 TesseractProgress 回调竞态条件:添加 if (latestJob) 检查
- 移除 TesseractProgress 回调中混淆的 jobId,避免与消息外层 userJobId 冲突
- 改进错误归属准确性:所有错误对象添加 jobId 属性
- 重构 recognize 和 detect 方法,确保 loadImage 失败时错误也包含 jobId
- 移除 throw Error(data),只通过 Promise reject 传递错误,避免未捕获异常
- 修复进度状态继承问题:任务结束时清除 latestJob,避免残留进度回调影响下一批任务 - 修复 TesseractProgress 回调竞态条件:添加 if (latestJob) 检查 - 移除 TesseractProgress 回调中混淆的 jobId,避免与消息外层 userJobId 冲突 - 改进错误归属准确性:所有错误对象添加 jobId 属性 - 重构 recognize 和 detect 方法,确保 loadImage 失败时错误也包含 jobId - 移除 throw Error(data),只通过 Promise reject 传递错误,避免未捕获异常
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.