Skip to content

fix(web): clear previous node data on live rework - #1276

Open
DivyamTalwar wants to merge 1 commit into
Tencent:mainfrom
DivyamTalwar:fix/web-live-node-reset
Open

DivyamTalwar wants to merge 1 commit into
Tencent:mainfrom
DivyamTalwar:fix/web-live-node-reset

Conversation

@DivyamTalwar

@DivyamTalwar DivyamTalwar commented Nov 23, 2026 •

Copy link
Copy Markdown

What changed

When a gate sends completed work back for rework, the engine resets the selected node to pending and clears its output and error. The event stream omits those empty fields. The browser kept the preceding values, so someone already watching the run could see and copy the previous draft while the new attempt was pending or running.

Treat a transition back to pending or a changed attempt number as a fresh node state. Continue merging partial events within the same attempt.

Scope

  • Platform core / API / runner
  • Public adapter / deployment
  • Classic
  • Portable
  • Shared behavior contract
  • Installer / CLI
  • Documentation only

Compatibility

This affects the platform Run inspector. No API, storage, or workflow definition changes are required. Historical artifact versions remain accessible.

Validation

  • node --test webtest/tests/runs-actions.test.mjs webtest/tests/runs-detail.test.mjs passed all 13 tests. The new regression dispatches a Run stream event into the real Run inspector and verifies that the old draft disappears. It failed on main because the previous output remained. The test also covers reception of the next attempt without the pending update.
  • cd webtest && npm test passed 228 tests and reported file-level failures from two other test files without assertion details. Both files passed all 12 tests on serial retry with node --test --test-concurrency=1 --test-reporter=tap webtest/tests/orchestrate-ai.test.mjs webtest/tests/platform-admin.test.mjs.
  • An independent run of the platform JSDOM suite at concurrency 2 passed all 232 tests with this head and the seven other independently reviewed LoopForge fixes applied to 4ff0e73, including the live rework regression.
  • python3 scripts/check-public.py, bash scripts/scan-secrets.sh, and git diff --check passed.
  • The platform browser acceptance, Go, and LoopForge Local suites were not run for this web-only change.

Coding and validation used AI assistance.

Safety

  • I did not include credentials, internal endpoints, production data, or organization-specific infrastructure.
  • I preserved user files and unrelated changes.
  • I updated generated Classic host bundles when applicable.
  • I documented third-party content and licensing changes when applicable.

The final two safety checks are inapplicable to this patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant