Skip to content

[bugfix] canvas: stop jobs that block applying node versions - #600

Merged
wangtiance merged 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/stop-blocking-version-jobs
Nov 30, 2026
Merged

wangtiance merged 1 commit into
ThinkFlowLab:mainfrom
wangtiance:codex/stop-blocking-version-jobs

Conversation

@wangtiance

Copy link
Copy Markdown
Collaborator

Summary

  • Show Stop blocking jobs in the node’s version history when an unfinished or review-pending generation job blocks applying an earlier version.
  • Use the existing cancellation command and refresh the panel so the user can apply the selected version without reopening it.
  • Preserve prior results, assets, and execution evidence. A local stop records intent while the existing job retains any uncertainty about the remote submission.

Linked issue

  • No linked issue applies.

Labels

  • Requested labels are type:bug and area:canvas.

Test plan

  • 39 version and generation service tests passed before rebase. The regression test verifies that stopping an unknown submission unblocks apply, preserves assets and results, and does not submit again.
  • The Chrome node version workflow passed in Chinese and English before rebase. It covers the race where a job starts after the dialog opens, stopping that job, applying the earlier version in the same dialog, and retaining the generated results.
  • The production build passed before rebase. After rebase, git diff --check, npm run check:i18n, npm run check:browser-locale, and npm run check:browser-manifest passed.
  • Full Release checks remain with CI.

Evidence that it works

  • The browser workflow verifies that the apply button becomes available after cancellation and that the two generated asset IDs still match the original version list. No screenshot or recording is attached.

Provider verification

  • Used an isolated provider fixture. No real provider calls were made, so remote cancellation was not verified.

Bilingual UI

  • Updated both locales and exercised both in Chrome.

中文摘要

  • 节点右上角的历史版本面板新增「停止阻塞任务」。有未结束或待确认任务时,可以在同一面板停止任务并继续应用所选版本。
  • 停止操作保留此前生成的素材、结果和原始任务证据。远端提交是否成功仍以服务商回执为准。
  • 已通过 39 项后端测试,并在 Chrome 中验证中英文流程。未调用真实服务商。

## summary

- Show the jobs blocking version application and let users stop them
  from the version history dialog.
- Keep previous results and preserve evidence when a submission still
  requires provider confirmation.
- Refresh the version list after stopping jobs so the selected
  historical version can be applied without reopening the dialog.

## validation

- Passed 39 version and generation service tests.
- Passed the Chrome node version workflow in Chinese and English.
- Passed the production build and browser and i18n checks.
@wangtiance wangtiance added type:bug Something is broken area:canvas Canvas, nodes and direct manipulation labels Nov 30, 2026
@wangtiance
wangtiance merged commit dbb36f0 into ThinkFlowLab:main Nov 30, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:canvas Canvas, nodes and direct manipulation type:bug Something is broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant