Repository navigation
Watch node shows values; Test-tab answer survives rail switches - #65
Merged
Merged
Conversation
The answer lived in TaskView's local state, and the editor unmounts TaskView whenever a canvas click opens the inspector (or the rail closes on mobile). Typing an answer, running it and clicking the graph wiped the text, so comparing assessments across edits meant retyping. The editor now owns the answer per workflow through useAnswerDraft, mirrored to sessionStorage so it also survives a trip to the workshop overview. Only the participant clears it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The graph runs on the server and the watch has no output slot, so its value never reached the editor and the node stayed empty. The watch now records its input as a trace row (executionDetails) with the detected type; the editor hands that row back to the matching watch node, which draws the type and the value in its body. Strings, numbers, booleans, messages, images, lists and objects all render; the run trace shows every row's type as well. The value is kept transient instead of in properties or the input label, so a run no longer changes the serialized workflow, and old graphs lose the stale "0.000" label on load. A new attempt clears every watch first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Two editor fixes from
dev:fix(watch)). The graph runs on the server and the watch has no output slot, so its value never reached the editor and the node stayed empty. The watch now records its input as a trace row (executionDetails) with the detected type;useServerEventshands that row back to the matching editor node (also inside blocks), which draws the type and the value in its body:string,number,boolean,message,image,[number],[string],[message],object,array,null,undefined, with length/size hints. The run trace now shows every output row's type as well. The value is transient (not inpropertiesor the input label), so a run no longer changes the serialized workflow; old graphs drop the stale0.000label on load, and each new attempt clears all watches first.fix(preview)). The answer lived inTaskView's local state and was lost whenever a canvas click opened the inspector. The editor now owns it per workflow throughuseAnswerDraft, mirrored tosessionStorage.No schema, API or socket-contract changes; the watch reuses the existing
nodeExecutionChanged.outputspayload.Verification
dev;yarn typecheckgreen;yarn lint:checkgreen in an LF worktree.src/utils/watchNode.test.ts(type detection, formatting, trace row, sizing, legacy label) and a watch case inuseServerEvents.test.ts.LGraphCanvas. Not checked end to end against the debug stack (Docker was unavailable).🤖 Generated with Claude Code