Annotation workspace: keyboard editing, focused layout and production slicing fixes #1

Merged
longtao.wu merged 107 commits from feature/local-dev-toolkit into dev 2026-09-18 17:59:51 +08:00
Collaborator

Resulting behavior

The annotation workbench adds keyboard editing, frame stepping, slice review bookmarks, dictionary selection, throttled undo/redo, guarded deletion and invalid-gap filling, with ownership and version checks on persistence. A dedicated focused workspace keeps synchronized videos, playback controls, timelines and the current editor visible down to a 1280×640 CSS-pixel viewport. It supports original-layout fallback, single-camera inspection and guarded continuous task handling.

This update fixes three production issues and improves the annotation workflow:

  • Slicing preserves every selected frame, including irregular/repeated source PTS, while keeping exported media clocks synchronized with slice metadata. Frame-count validation remains enabled and reports actual/expected counts.
  • Legacy timeout recovery no longer expires a current queued/running durable slice job after two minutes. Durable lease recovery and genuine legacy timeout handling remain active.
  • Focused slice/action dictionaries use available height, visible pagination and left/right navigation. Search and IME retain their input behavior.
  • Both workspace layouts align slider thumb centers, interval blocks and blue playheads on the same time scale. Timeline search/current/pagination rows and the raw-data banner are removed; taller cards contain their text.
  • In annotation, Up/Down selects the previous/next action and seeks its end; Ctrl/Command+Up/Down seeks the current action start/end. Unsaved edits remain protected. Help text distinguishes slicing from annotation.

Existing review fixes remain: ordinary HTTP supports manual work; dedicated work pages require secure-context Web Locks and do not bypass coordination failures. Local snapshot tooling validates chunk lists and hashes before restoring. Personal myuse/, local data and credential files are excluded.

Verification and deployment

Latest UI code 64118cad is deployed to Fanyu. Real Edge browser checks passed in both layouts across seven layout/viewport combinations, including 1280×640. Action navigation sought both videos correctly; input/dictionary isolation, unsaved-edit protection, phase-specific help, card containment and timeline alignment passed. No business save/submit/claim requests were made in this UI acceptance; the inspected task remained version 11. All 61 public assets match the committed build. API backend binary and annotation processor are unchanged by the UI release.

The frame and lease fixes have scoped Go/real-FFmpeg regression coverage, independent review and recorded cluster rollout/recovery evidence. Failed tasks were recovered through version-checked APIs using their preserved boundaries. The frame fix recovered five slices; the lease fix recovered six slices. The latter reused completed media and is not a production long-transcode stress test.

TypeScript checks and clean web builds passed. At the user's request, the latest annotation UI change was tested on the company site instead of running local test suites; its newly added unit cases have not been executed. Earlier full frontend runs recorded the same 9 baseline failures (568/577 passed). Historical full Go/Python failures and remaining limitations are documented; this PR does not claim all repository suites pass.

Publication check: 39 outgoing blobs contained no matches for the configured Gitea credential or supplied high-entropy production account passwords; no myuse/ or local-data/ files are included. Historical POC credentials were previously accepted by the repository owner; this update does not rewrite history or rotate credentials.

Production remains HTTP. Focused-work acceptance used the previously authorized browser exception limited to that origin, which is not an HTTPS deployment. Existing worker readiness fluctuations remain a separate known issue. Rollback records are retained; temporary build resources were cleaned. This PR does not merge dev.

Reports and guides

  • docs/annotation-keyboard-guide.zh-CN.md
  • docs/annotation-workspace-layout.md
  • docs/verification/annotation-navigation-20260918.md
  • docs/verification/dictionary-pagination-20260918.md
  • docs/verification/slice-frame-mismatch-20260918.md
  • docs/verification/slice-heartbeat-root-cause-20260918.md
  • docs/verification/slice-heartbeat-fix-20260918.md
  • docs/verification/pr-review-20260918/report.md
  • docs/verification/annotation-workspace-layout/acceptance-results.md
  • docs/verification/annotation-workspace-layout/full-suite-results.md

The newly reported inability to enter work mode after a random claim is being investigated separately and is not represented as fixed by this update.

## Resulting behavior The annotation workbench adds keyboard editing, frame stepping, slice review bookmarks, dictionary selection, throttled undo/redo, guarded deletion and invalid-gap filling, with ownership and version checks on persistence. A dedicated focused workspace keeps synchronized videos, playback controls, timelines and the current editor visible down to a 1280×640 CSS-pixel viewport. It supports original-layout fallback, single-camera inspection and guarded continuous task handling. This update fixes three production issues and improves the annotation workflow: - Slicing preserves every selected frame, including irregular/repeated source PTS, while keeping exported media clocks synchronized with slice metadata. Frame-count validation remains enabled and reports actual/expected counts. - Legacy timeout recovery no longer expires a current queued/running durable slice job after two minutes. Durable lease recovery and genuine legacy timeout handling remain active. - Focused slice/action dictionaries use available height, visible pagination and left/right navigation. Search and IME retain their input behavior. - Both workspace layouts align slider thumb centers, interval blocks and blue playheads on the same time scale. Timeline search/current/pagination rows and the raw-data banner are removed; taller cards contain their text. - In annotation, Up/Down selects the previous/next action and seeks its end; Ctrl/Command+Up/Down seeks the current action start/end. Unsaved edits remain protected. Help text distinguishes slicing from annotation. Existing review fixes remain: ordinary HTTP supports manual work; dedicated work pages require secure-context Web Locks and do not bypass coordination failures. Local snapshot tooling validates chunk lists and hashes before restoring. Personal `myuse/`, local data and credential files are excluded. ## Verification and deployment Latest UI code `64118cad` is deployed to Fanyu. Real Edge browser checks passed in both layouts across seven layout/viewport combinations, including 1280×640. Action navigation sought both videos correctly; input/dictionary isolation, unsaved-edit protection, phase-specific help, card containment and timeline alignment passed. No business save/submit/claim requests were made in this UI acceptance; the inspected task remained version 11. All 61 public assets match the committed build. API backend binary and annotation processor are unchanged by the UI release. The frame and lease fixes have scoped Go/real-FFmpeg regression coverage, independent review and recorded cluster rollout/recovery evidence. Failed tasks were recovered through version-checked APIs using their preserved boundaries. The frame fix recovered five slices; the lease fix recovered six slices. The latter reused completed media and is not a production long-transcode stress test. TypeScript checks and clean web builds passed. At the user's request, the latest annotation UI change was tested on the company site instead of running local test suites; its newly added unit cases have not been executed. Earlier full frontend runs recorded the same 9 baseline failures (568/577 passed). Historical full Go/Python failures and remaining limitations are documented; this PR does not claim all repository suites pass. Publication check: 39 outgoing blobs contained no matches for the configured Gitea credential or supplied high-entropy production account passwords; no `myuse/` or `local-data/` files are included. Historical POC credentials were previously accepted by the repository owner; this update does not rewrite history or rotate credentials. Production remains HTTP. Focused-work acceptance used the previously authorized browser exception limited to that origin, which is not an HTTPS deployment. Existing worker readiness fluctuations remain a separate known issue. Rollback records are retained; temporary build resources were cleaned. This PR does not merge dev. ## Reports and guides - `docs/annotation-keyboard-guide.zh-CN.md` - `docs/annotation-workspace-layout.md` - `docs/verification/annotation-navigation-20260918.md` - `docs/verification/dictionary-pagination-20260918.md` - `docs/verification/slice-frame-mismatch-20260918.md` - `docs/verification/slice-heartbeat-root-cause-20260918.md` - `docs/verification/slice-heartbeat-fix-20260918.md` - `docs/verification/pr-review-20260918/report.md` - `docs/verification/annotation-workspace-layout/acceptance-results.md` - `docs/verification/annotation-workspace-layout/full-suite-results.md` The newly reported inability to enter work mode after a random claim is being investigated separately and is not represented as fixed by this update.
zhanghongming added 4 commits 2026-09-17 19:18:18 +08:00
zhanghongming force-pushed feature/local-dev-toolkit from 29e414bedc to 839883ff89 2026-09-17 19:22:27 +08:00 Compare
zhanghongming added 47 commits 2026-09-18 01:28:43 +08:00
zhanghongming changed title from Local dev toolkit: isolated environment + real-data annotation testing to Annotation workbench: keyboard workflow, undo, continuous tasks and local verification 2026-09-18 01:29:10 +08:00
Owner

审查结论:暂缓合并及 Fanyu 部署,需要先修正以下问题

审查版本:head 54a35afad95d77b1f23c955f9c4671cae83a664d,base cb474b6abcad05333092374903eb0a34440039cc。已在隔离工作树模拟合并,无 Git 冲突;这不等于当前线上环境可运行。

P1:普通 HTTP 下,新增工作页和原随机领取都被 Web Locks 前置条件阻塞

位置:src/hooks/useAnnotationWorkSession.ts:55-58,117-120;src/pages/AnnotationOperations.tsx:3198-3200,3612,3727。

Fanyu 实际入口 http://120.48.180.80/,本次在真实 Chrome 只读检查得到 window.isSecureContext === false、typeof navigator.locks === 'undefined'。hook 会将 unavailable 置为 true,acquire() 返回 null。结果不仅是“开始工作/继续工作”禁用:原来的“随机领取任务”也先调用 acquire,拿不到锁便直接 return,不发起领取。

隔离 PR 预览中模拟缺少 Web Locks 后,已复现“开始工作”禁用;点击仍可点的“随机领取任务”,可领取 6 / 我的任务 1 均不变。localhost 属于安全上下文,不能覆盖普通 HTTP 的这个上线场景。

请在合并上线前选择并验证:为现有 HTTP 入口提供明确、安全的兼容方案(至少不破坏原手动领取路径),或者先完成 Fanyu HTTPS 入口和切换验收。不要通过要求员工关闭浏览器安全限制、或直接跳过互斥检查来规避。

P2:快照只有 1–9 个分块时,脚本生成和读取的文件名不一致

位置:scripts/local/fetch-mongo-snapshot.sh:37,43-45。split -d 默认生成 p00,但 WIDTH 按分块数量的十进制位数计算;N=1 时读取 p0。本地小样本已复现:实际 [p00],脚本请求 p0,文件不存在。请统一指定 split 与 seq 的后缀宽度,或直接按实际分块文件名传输,并补小快照回归。没有执行该脚本的集群写入或 Mongo 恢复操作。

已验证

  • TypeScript 检查、前端构建通过。
  • 前端 578 项:569 通过、9 失败;失败名称与基线一致,没有新增。
  • 新增的 2 项标注历史恢复、2 项连续领取/提交回读 Go HTTP 用例通过。
  • PR 的空标注 workspace 兼容修复有价值,应保留;但不能因此跳过上述 HTTP 上线阻塞。

当前不执行远端合并、不部署本 PR。上述问题处理并复验后再继续合并及 Fanyu 发布。

## 审查结论:暂缓合并及 Fanyu 部署,需要先修正以下问题 审查版本:head `54a35afad95d77b1f23c955f9c4671cae83a664d`,base `cb474b6abcad05333092374903eb0a34440039cc`。已在隔离工作树模拟合并,无 Git 冲突;这不等于当前线上环境可运行。 ### P1:普通 HTTP 下,新增工作页和原随机领取都被 Web Locks 前置条件阻塞 位置:`src/hooks/useAnnotationWorkSession.ts:55-58,117-120`;`src/pages/AnnotationOperations.tsx:3198-3200,3612,3727`。 Fanyu 实际入口 `http://120.48.180.80/`,本次在真实 Chrome 只读检查得到 `window.isSecureContext === false`、`typeof navigator.locks === 'undefined'`。hook 会将 `unavailable` 置为 true,`acquire()` 返回 null。结果不仅是“开始工作/继续工作”禁用:原来的“随机领取任务”也先调用 acquire,拿不到锁便直接 return,不发起领取。 隔离 PR 预览中模拟缺少 Web Locks 后,已复现“开始工作”禁用;点击仍可点的“随机领取任务”,可领取 6 / 我的任务 1 均不变。localhost 属于安全上下文,不能覆盖普通 HTTP 的这个上线场景。 请在合并上线前选择并验证:为现有 HTTP 入口提供明确、安全的兼容方案(至少不破坏原手动领取路径),或者先完成 Fanyu HTTPS 入口和切换验收。不要通过要求员工关闭浏览器安全限制、或直接跳过互斥检查来规避。 ### P2:快照只有 1–9 个分块时,脚本生成和读取的文件名不一致 位置:`scripts/local/fetch-mongo-snapshot.sh:37,43-45`。`split -d` 默认生成 `p00`,但 WIDTH 按分块数量的十进制位数计算;N=1 时读取 `p0`。本地小样本已复现:实际 `[p00]`,脚本请求 `p0`,文件不存在。请统一指定 split 与 seq 的后缀宽度,或直接按实际分块文件名传输,并补小快照回归。没有执行该脚本的集群写入或 Mongo 恢复操作。 ### 已验证 - TypeScript 检查、前端构建通过。 - 前端 578 项:569 通过、9 失败;失败名称与基线一致,没有新增。 - 新增的 2 项标注历史恢复、2 项连续领取/提交回读 Go HTTP 用例通过。 - PR 的空标注 workspace 兼容修复有价值,应保留;但不能因此跳过上述 HTTP 上线阻塞。 当前不执行远端合并、不部署本 PR。上述问题处理并复验后再继续合并及 Fanyu 发布。
Owner

建议处理方案与重新合并条件

补充上一条评审:这不是 Git 冲突导致的“不能合并”,而是当前 Fanyu 运行条件下会出现功能回退。以下是建议,尚未实施;不建议跳过验收直接强制合并。

1. P1 推荐:先兼容当前 HTTP,分阶段开放新工作模式

建议本 PR 先采用方案 A;如果本次必须开放完整的独立工作页/连续领取,再采用方案 B。

方案 A:HTTP 保留原手动模式,新协调模式按能力开放。

  • 在 useAnnotationWorkSession 明确区分“不支持 Web Locks”“锁被其他页面占用”“协调过程异常”,不要把三种情况都处理成静默 return。
  • 将原手动领取路径与依赖锁的 startWork / 连续领取路径分开。无 Web Locks 的 HTTP 环境继续允许原任务池手动随机领取、查看我的任务、继续标注;只关闭依赖 Web Locks 的新工作页和自动连续领取。
  • 手动路径仍必须保留后端原子领取、同一 requestId 的未知结果重试、版本/归属校验,以及本 PR 新增的任务/账号上下文和迟到响应隔离。不能把“拿不到锁”伪装成“已成功获得锁”。
  • 若浏览器支持锁、但另一页已持有锁,仍按原互斥规则阻止第二个协调工作页;不能借“手动降级”绕开这个判断。
  • HTTP 下直接访问 /work 时,明确提供返回手动工作台的入口,保留 projectId/taskId 和服务器已领取归属;不要释放、重领任务或静默丢弃草稿。提示写成“当前连接使用手动模式;独立工作页和连续领取需安全连接”,不要只让用户更换浏览器。
  • 这是兼容性降级,不等于 HTTP 已具备多页面独占和连续工作能力。若业务要求这两项本次全部开放,方案 A 不能作为完整功能验收。

方案 B:先完成 Fanyu HTTPS,再开放完整新模式。

  • 单独确认正式访问域名、可信证书、入口代理及 HTTP→HTTPS 切换方案;不要使用浏览器不安全启动参数或让员工绕过证书告警。
  • 检查登录 Cookie、CSRF/Origin、API/视频地址、Range 请求、播放拖动与路由深链在 HTTPS 下正常。
  • HTTP 与 HTTPS 的浏览器存储不共享,需要验证切换后登录、已领取任务恢复及未确认领取请求的处理,不能因此自动多领取一条任务。
  • 在真实 HTTPS 入口验证 isSecureContext 和锁的 request/query 都可用,再做同一浏览器同源双标签、关闭、刷新和返回恢复测试。不要把浏览器内锁描述成跨浏览器/跨设备的独占锁。

2. P2:修正快照分块命名,并避免共享临时目录互相影响

  • 生成时显式固定后缀宽度,例如 split -d -a 6;优先读取实际生成的分块文件名并按固定规则排序传输,不再用“分块数量的位数”猜文件名。若保留数字循环,生成和读取必须共用同一宽度。
  • 本地和远端都使用本次运行独立的 mktemp -d 目录,退出时只清理自己创建的目录,不删除固定的共享 /tmp/fetch-chunks* 路径。
  • 保留整体 SHA-256 校验:缺块、下载失败或校验不一致时立即失败,绝不能继续 mongorestore --drop。备份目录参数应校验,并以参数传递给远端脚本,避免直接拼接进 shell 命令。
  • 补 1、2、9、10、99、100 块,以及缺块、截断、校验失败、中断重试的测试;用本地假数据/隔离容器验证,不用公司数据库做破坏性测试。

3. 修复提交与验收顺序

  1. 在当前 feature 分支补两个独立修复提交,再与最新 dev 集成测试,保留已上线的批量下载接口等功能;不要混入其他未完成改动。
  2. 保留 PR 内的空 workspace 修复,增加“零描述→舍弃→恢复→刷新”的回归,确认不再出现 null.filter,切片边界、舍弃状态和归属不变。
  3. 普通 HTTP 的 Chrome/Edge:手动随机领取有真实请求且只领取一条;我的任务可继续,保存/送检正常;新能力明确降级。不能只用 localhost 代替。
  4. 支持 Web Locks 的安全上下文:开始/继续工作、同源双标签协调、响应丢失后沿用 requestId、连续下一条及完成当前后停止均通过;锁忙/锁异常不能误当成功。
  5. 重跑类型检查、构建、聚焦行为测试和完整前端回归;既有失败与基线分开列,要求本次修复没有新增失败。
  6. 复审通过后再合并,用干净的合并提交构建;排除 local-data、Mongo 快照和凭据,记录镜像摘要与回滚版本。Fanyu API 目前是 Recreate,部署前安排短暂中断窗口,发布后检查真实入口和角色流程。失败时回滚本次发布,不批量改任务状态或重跑旧 Capture。

建议优先执行:HTTP 手动兼容 + 分块脚本修复 → 回归/复审 → 合并上线;HTTPS 完整新模式作为明确的后续发布项。 如果选择一次性开放全部新模式,则先完成方案 B,不要把 HTTP 降级算成全部完成。

本评论仅提出处理建议,未修改代码、未合并、未部署。

## 建议处理方案与重新合并条件 补充上一条评审:这不是 Git 冲突导致的“不能合并”,而是当前 Fanyu 运行条件下会出现功能回退。以下是建议,尚未实施;不建议跳过验收直接强制合并。 ### 1. P1 推荐:先兼容当前 HTTP,分阶段开放新工作模式 建议本 PR 先采用方案 A;如果本次必须开放完整的独立工作页/连续领取,再采用方案 B。 **方案 A:HTTP 保留原手动模式,新协调模式按能力开放。** - 在 `useAnnotationWorkSession` 明确区分“不支持 Web Locks”“锁被其他页面占用”“协调过程异常”,不要把三种情况都处理成静默 return。 - 将原手动领取路径与依赖锁的 `startWork` / 连续领取路径分开。无 Web Locks 的 HTTP 环境继续允许原任务池手动随机领取、查看我的任务、继续标注;只关闭依赖 Web Locks 的新工作页和自动连续领取。 - 手动路径仍必须保留后端原子领取、同一 requestId 的未知结果重试、版本/归属校验,以及本 PR 新增的任务/账号上下文和迟到响应隔离。不能把“拿不到锁”伪装成“已成功获得锁”。 - 若浏览器支持锁、但另一页已持有锁,仍按原互斥规则阻止第二个协调工作页;不能借“手动降级”绕开这个判断。 - HTTP 下直接访问 `/work` 时,明确提供返回手动工作台的入口,保留 projectId/taskId 和服务器已领取归属;不要释放、重领任务或静默丢弃草稿。提示写成“当前连接使用手动模式;独立工作页和连续领取需安全连接”,不要只让用户更换浏览器。 - 这是兼容性降级,不等于 HTTP 已具备多页面独占和连续工作能力。若业务要求这两项本次全部开放,方案 A 不能作为完整功能验收。 **方案 B:先完成 Fanyu HTTPS,再开放完整新模式。** - 单独确认正式访问域名、可信证书、入口代理及 HTTP→HTTPS 切换方案;不要使用浏览器不安全启动参数或让员工绕过证书告警。 - 检查登录 Cookie、CSRF/Origin、API/视频地址、Range 请求、播放拖动与路由深链在 HTTPS 下正常。 - HTTP 与 HTTPS 的浏览器存储不共享,需要验证切换后登录、已领取任务恢复及未确认领取请求的处理,不能因此自动多领取一条任务。 - 在真实 HTTPS 入口验证 `isSecureContext` 和锁的 request/query 都可用,再做同一浏览器同源双标签、关闭、刷新和返回恢复测试。不要把浏览器内锁描述成跨浏览器/跨设备的独占锁。 ### 2. P2:修正快照分块命名,并避免共享临时目录互相影响 - 生成时显式固定后缀宽度,例如 `split -d -a 6`;优先读取实际生成的分块文件名并按固定规则排序传输,不再用“分块数量的位数”猜文件名。若保留数字循环,生成和读取必须共用同一宽度。 - 本地和远端都使用本次运行独立的 `mktemp -d` 目录,退出时只清理自己创建的目录,不删除固定的共享 `/tmp/fetch-chunks*` 路径。 - 保留整体 SHA-256 校验:缺块、下载失败或校验不一致时立即失败,绝不能继续 `mongorestore --drop`。备份目录参数应校验,并以参数传递给远端脚本,避免直接拼接进 shell 命令。 - 补 1、2、9、10、99、100 块,以及缺块、截断、校验失败、中断重试的测试;用本地假数据/隔离容器验证,不用公司数据库做破坏性测试。 ### 3. 修复提交与验收顺序 1. 在当前 feature 分支补两个独立修复提交,再与最新 dev 集成测试,保留已上线的批量下载接口等功能;不要混入其他未完成改动。 2. 保留 PR 内的空 workspace 修复,增加“零描述→舍弃→恢复→刷新”的回归,确认不再出现 null.filter,切片边界、舍弃状态和归属不变。 3. 普通 HTTP 的 Chrome/Edge:手动随机领取有真实请求且只领取一条;我的任务可继续,保存/送检正常;新能力明确降级。不能只用 localhost 代替。 4. 支持 Web Locks 的安全上下文:开始/继续工作、同源双标签协调、响应丢失后沿用 requestId、连续下一条及完成当前后停止均通过;锁忙/锁异常不能误当成功。 5. 重跑类型检查、构建、聚焦行为测试和完整前端回归;既有失败与基线分开列,要求本次修复没有新增失败。 6. 复审通过后再合并,用干净的合并提交构建;排除 local-data、Mongo 快照和凭据,记录镜像摘要与回滚版本。Fanyu API 目前是 Recreate,部署前安排短暂中断窗口,发布后检查真实入口和角色流程。失败时回滚本次发布,不批量改任务状态或重跑旧 Capture。 建议优先执行:**HTTP 手动兼容 + 分块脚本修复 → 回归/复审 → 合并上线;HTTPS 完整新模式作为明确的后续发布项。** 如果选择一次性开放全部新模式,则先完成方案 B,不要把 HTTP 降级算成全部完成。 本评论仅提出处理建议,未修改代码、未合并、未部署。
zhanghongming changed title from Annotation workbench: keyboard workflow, undo, continuous tasks and local verification to Annotation workspace: keyboard editing, focused dual-video layout and review fixes 2026-09-18 12:36:22 +08:00
zhanghongming added 37 commits 2026-09-18 12:36:24 +08:00
Owner

新提交复审(80ae2913)

复审范围:54a35afa 之后的新提交,head:80ae2913481d4daf3512cb13bdf7f5a14110f03f,base dev:cb474b6a。已在独立工作树验证,未混入本地未提交修改。

结论:上一轮两个阻塞项已修复,本轮增量审查未发现新的必须阻塞合并的代码问题,可以进入合并流程。这不等于生产全流程验收通过。

上轮问题复核

  1. P1 HTTP 下手动领取被 Web Locks 限制:已解决。 7ed51d32 区分不支持、锁占用、协调失败、上下文失效;只有不支持时原手动工作台允许后端原子领取,锁占用或异常不绕过。HTTP /work 提供保留项目和任务的手动返回入口,新工作页/自动连续领取仍要求安全上下文。
  2. P2 小备份分块名不匹配:已解决。 024dfd01 使用固定六位分块名及实际清单,恢复前 SHA-256 校验,临时目录隔离。1/2/9/10/99/100 块边界、缺块/截断、校验和异常、中断重试和非法路径行为测试通过。

独立验证结果

  • TypeScript 检查、生产构建通过。
  • 前端 577 项:568 通过、9 失败;失败名称与上一轮及既有基线一致,不是全绿。
  • 备份脚本 7 项行为测试通过,kubectl/docker 使用测试替身,没有操作真实数据库。
  • 4 项 Go 定向测试通过:描述历史恢复、首次保存历史恢复、领取响应丢失同请求重放、待定提交回读保留当前任务。
  • Chrome + 隔离内存后端 6 个场景通过:真实非安全 HTTP 手动编辑;/work 保留项目/任务返回;HTTP 随机领取成功并进入分配任务;小视口暂停/显式恢复保留当前任务;真实双标签 Web Locks 冲突阻止第二次领取;锁 request 报错不降级、不领取。测试页面无未捕获 JS 异常。
  • 额外检查了分页选择、边界拖动、字典面板、视口暂停代码;作者记录的全部浏览器场景并未在本轮全部重跑。

非阻塞后续建议与验收边界

  • Fanyu 新独立工作页、自动连续领取需要 HTTPS;HTTP 只保留手动模式,不保证多标签互斥。
  • 单独跟踪修复 9 项已有前端测试失败。
  • 部署证据需绑定实际 API/前端提交及镜像。复审时较早只读查询 Fanyu API 返回 ba08221c,与文档部署代码 92be2e36 不同,复审末次探测未连通;不可把本地验证或旧记录当作当前线上整套版本验收。
  • 本轮浏览器独立测试使用 Chrome,未重跑 Edge,未领取/提交真实生产任务,未完成生产质检/验收/交付闭环。

本次没有修改 PR 代码、合并或部署。

## 新提交复审(80ae2913) 复审范围:54a35afa 之后的新提交,head:80ae2913481d4daf3512cb13bdf7f5a14110f03f,base dev:cb474b6a。已在独立工作树验证,未混入本地未提交修改。 **结论:上一轮两个阻塞项已修复,本轮增量审查未发现新的必须阻塞合并的代码问题,可以进入合并流程。这不等于生产全流程验收通过。** ### 上轮问题复核 1. **P1 HTTP 下手动领取被 Web Locks 限制:已解决。** 7ed51d32 区分不支持、锁占用、协调失败、上下文失效;只有不支持时原手动工作台允许后端原子领取,锁占用或异常不绕过。HTTP /work 提供保留项目和任务的手动返回入口,新工作页/自动连续领取仍要求安全上下文。 2. **P2 小备份分块名不匹配:已解决。** 024dfd01 使用固定六位分块名及实际清单,恢复前 SHA-256 校验,临时目录隔离。1/2/9/10/99/100 块边界、缺块/截断、校验和异常、中断重试和非法路径行为测试通过。 ### 独立验证结果 - TypeScript 检查、生产构建通过。 - 前端 577 项:568 通过、9 失败;失败名称与上一轮及既有基线一致,不是全绿。 - 备份脚本 7 项行为测试通过,kubectl/docker 使用测试替身,没有操作真实数据库。 - 4 项 Go 定向测试通过:描述历史恢复、首次保存历史恢复、领取响应丢失同请求重放、待定提交回读保留当前任务。 - Chrome + 隔离内存后端 6 个场景通过:真实非安全 HTTP 手动编辑;/work 保留项目/任务返回;HTTP 随机领取成功并进入分配任务;小视口暂停/显式恢复保留当前任务;真实双标签 Web Locks 冲突阻止第二次领取;锁 request 报错不降级、不领取。测试页面无未捕获 JS 异常。 - 额外检查了分页选择、边界拖动、字典面板、视口暂停代码;作者记录的全部浏览器场景并未在本轮全部重跑。 ### 非阻塞后续建议与验收边界 - Fanyu 新独立工作页、自动连续领取需要 HTTPS;HTTP 只保留手动模式,不保证多标签互斥。 - 单独跟踪修复 9 项已有前端测试失败。 - 部署证据需绑定实际 API/前端提交及镜像。复审时较早只读查询 Fanyu API 返回 ba08221c,与文档部署代码 92be2e36 不同,复审末次探测未连通;不可把本地验证或旧记录当作当前线上整套版本验收。 - 本轮浏览器独立测试使用 Chrome,未重跑 Edge,未领取/提交真实生产任务,未完成生产质检/验收/交付闭环。 本次没有修改 PR 代码、合并或部署。
zhanghongming added 13 commits 2026-09-18 17:14:49 +08:00
zhanghongming changed title from Annotation workspace: keyboard editing, focused dual-video layout and review fixes to Annotation workspace: keyboard editing, focused layout and production slicing fixes 2026-09-18 17:15:41 +08:00
Owner

LGTM

LGTM
longtao.wu merged commit 883f47ff0e into dev 2026-09-18 17:59:51 +08:00
longtao.wu deleted branch feature/local-dev-toolkit 2026-09-18 17:59:51 +08:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: longtao.wu/droboticflow#1
No description provided.