Skip to content

fix: prevent __start__ node from glowing when not active#77

Merged
cristipufu merged 1 commit intomainfrom
fix/start-node-glow-bug
Feb 18, 2026
Merged

fix: prevent __start__ node from glowing when not active#77
cristipufu merged 1 commit intomainfrom
fix/start-node-glow-bug

Conversation

@cristipufu
Copy link
Member

Summary

  • Fixed bug where __start__ node glowed alongside the actual active node (e.g., coordinator, pipeline)
  • Root cause: early WS events were missed because the backend starts execution before frontend WS subscription is active, leaving prev: null which triggered a fallback that added __start__ to the glow set
  • Removed the prev === null fallback block in GraphPanel that unconditionally added __start__ to matchIds
  • Added activeNodes seeding from historical REST state events in applyRunDetail so subsequent WS events have proper prev context

Test plan

  • Start an agent run and verify only the currently active node glows (no start glowing alongside it)
  • Verify edges highlight correctly from the active node only
  • Verify node highlighting still works when navigating to an in-progress run

🤖 Generated with Claude Code

The __start__ node was incorrectly glowing alongside the actual active node
because: (1) early WS events (__start__ started) were missed due to the
backend starting execution before the frontend WS subscription was active,
and (2) a prev===null fallback unconditionally added __start__ to matchIds.

- Remove the prev===null block that added __start__ to matchIds for all
  first events, which caused it to get isExecutingNode=true
- Seed activeNodes from historical REST state events in applyRunDetail so
  subsequent WS events have proper prev context

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@cristipufu cristipufu merged commit 9a54333 into main Feb 18, 2026
11 checks passed
@cristipufu cristipufu deleted the fix/start-node-glow-bug branch February 18, 2026 12:19
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

Comments