Skip to content

fix: enable flow graph drag-drop and Windows CLI detection#1

Merged
jamesaphoenix merged 2 commits into
jamesaphoenix:mainfrom
KleinhausM:fix/flow-graph-drag-drop
Apr 11, 2026
Merged

fix: enable flow graph drag-drop and Windows CLI detection#1
jamesaphoenix merged 2 commits into
jamesaphoenix:mainfrom
KleinhausM:fix/flow-graph-drag-drop

Conversation

@KleinhausM
Copy link
Copy Markdown
Contributor

Summary

  • Flow graph drag-and-drop: Nodes were not draggable because positions were computed in useMemo, overwriting drag updates. Moved to useState with applyNodeChanges.
  • Windows CLI detection: find_binary_in_path and candidate_cli_paths now check PATHEXT extensions (.EXE, .CMD, etc.) on Windows so claude.exe and codex.exe are found. Mac/Linux code paths are unchanged (#[cfg(windows)]).

Test plan

  • Verify flow graph nodes can be clicked and dragged to new positions
  • Verify edges follow dragged nodes
  • Verify Claude Code / Codex CLI detected on Windows
  • Verify Mac/Linux CLI detection unchanged

find_binary_in_path and candidate_cli_paths now check PATHEXT extensions
(.EXE, .CMD, etc.) on Windows so claude.exe and codex.exe are found.
Mac/Linux code paths are unchanged (#[cfg(windows)]).
Nodes were not draggable because positions were computed in useMemo and
passed directly to ReactFlow, overwriting drag updates on re-render.
Moved node state into useState with applyNodeChanges so position updates
from dragging are preserved.
@jamesaphoenix jamesaphoenix merged commit c07381b into jamesaphoenix:main Apr 11, 2026
1 check passed
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.

2 participants