Repository navigation
fix(web): clear previous node data on live rework - #1276
Open
DivyamTalwar wants to merge 1 commit into
Open
DivyamTalwar wants to merge 1 commit into
DivyamTalwar wants to merge 1 commit into
Conversation
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.
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
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.mjspassed 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 testpassed 228 tests and reported file-level failures from two other test files without assertion details. Both files passed all 12 tests on serial retry withnode --test --test-concurrency=1 --test-reporter=tap webtest/tests/orchestrate-ai.test.mjs webtest/tests/platform-admin.test.mjs.4ff0e73, including the live rework regression.python3 scripts/check-public.py,bash scripts/scan-secrets.sh, andgit diff --checkpassed.Coding and validation used AI assistance.
Safety
The final two safety checks are inapplicable to this patch.