Editor tools convert_node and scissors are in the toolbar (TOOL_MODES) but EditorCanvas.tsx ignores them — picking them does nothing on the canvas (2 of 8 tools) #143
Labels
No labels
blocked:commit-ready-failed
blocked:gate-fetch
blocked:gate-lint
blocked:gate-plan
blocked:gate-research
blocked:needs-attention
blocked:needs-decision
blocked:needs-human
blocked:no-changes
blocked:verify-failed
bug
deferred
feature-request
in-progress
needs-decompose
needs-triage
quickfix
security/medium
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/Kimi_Agent_Brother_10_Digitizing_App#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Finding
The Editor's toolbar exposes 8 tools (
TOOL_MODESinsrc/components/editor/constants.ts:34-43):EditorCanvas.tsx)EditorCanvas.tsxEditorCanvas.tsxA user picks "Convert Node" or "Scissors / Split" from the toolbar; the tool highlights; nothing happens on the canvas. The mode state tracks the selection but
EditorCanvas.tsx's event handlers do not branch on these modes.This is a partial regression of the round 1 fix that closed #91 ("~170 lines of dead Sequence/Underlay branches"). The Sequence/Underlay dead code was removed but the Convert Node and Scissors tools were left in the toolbar without their canvas behavior.
Where
src/components/editor/constants.ts:34-43src/components/editor/EditorCanvas.tsx:158, 165, 170, 193, 216, 244(handleszoom,draw_path,select_nodes,add_node,delete_node,smoothbut NOTconvert_nodeorscissors)src/components/editor/EditorCanvas.test.tsxdoesn't test convert_node or scissorsSuggested fix shape
Wire
convert_nodeandscissorsintoEditorCanvas.tsx:convert_node: when the user clicks a node while this mode is active, cycle its type (corner→smooth→symmetric→corner). The existingonUpdateNodeTypeprop inEditorRightPanel.tsxshows the same 3-way toggle; the canvas click just calls it with the next value.scissors: when the user clicks a segment between two nodes, split the segment by inserting a new node at the click point. The new node is acornertype. ThepathToNodesarray gets a new entry; theonUpdatePathprop (or equivalent) commits the change.Both are small additions to the click handler. The handler already has the canvas coordinates; the only addition is the mode branch and the side effect (cycle node type or insert node).
Severity
Medium. Two of eight advertised editor tools do nothing on the canvas. The user picks them, the toolbar highlights them, the canvas ignores them.
Discovered by
Gap analysis (2026-10-02) of editor tool mode handling.
Related
LeftToolbarhad 5 of 6 tools being cosmetic; the Editor has 2 of 8.Fixed in commit
accd8f6on main.