fix(debugger): prevent stale session state on debug toggle - #502
Open
forhad-hosain wants to merge 1 commit into
Open
fix(debugger): prevent stale session state on debug toggle#502forhad-hosain wants to merge 1 commit into
forhad-hosain wants to merge 1 commit into
Conversation
…toggle - Disable debug toggle during active processing (aligned with stop button) - Stop run loop immediately on stop/toggle via 'running' class removal - Add guards in processDebugStep and monitor handlers to skip UI updates when debug is off - Fix stopDebugUI ordering: remove .pinned/.disabled-endpoint before resetComponentsState - Hide processing overlays immediately on debug stop - Add dbg-running to resetComponentsState cleanup - Reset debug status message on re-enable to prevent stale "Next Component" text - Remove redundant stopDebugSession call and resetComponentsState in toggleSwitch Co-Authored-By: Claude Opus 4.6 (1M context) <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.
🎯 What's this PR about?
Fixes stale debug session state and UI artifacts when toggling the debugger off/on during workflow execution.
Key changes:
processDebugStepand monitor event handlers to skip UI updates when debug is offstopDebugUIordering soenableComponentEndpoints()runs correctlystopDebugSessioncalls📎 Related ClickUp Ticket
💻 Demo (optional)
Before: Toggling debug off mid-run causes stale processing animations, ghost "Next Component" messages, and broken UI state on re-enable.
After: Debug toggle is disabled during active processing. Stop/toggle properly cleans up all session state, overlays, and messages.
✅ Checklist