Skip to content

fix(knowledge): set _running=True during loop execution so re-init guard is effective (#4937)#4962

Merged
mrveiss merged 1 commit intoDev_new_guifrom
issue-4937
Apr 17, 2026
Merged

fix(knowledge): set _running=True during loop execution so re-init guard is effective (#4937)#4962
mrveiss merged 1 commit intoDev_new_guifrom
issue-4937

Conversation

@mrveiss
Copy link
Copy Markdown
Owner

@mrveiss mrveiss commented Apr 16, 2026

Closes #4937

Summary

Tests

  • 5 new tests: flag starts False, flag is True during run, flag resets after completion (including exception path), singleton returned when running, replacement allowed when not running
  • 32 total tests pass

…ard is effective (#4937)

Set self._running = True at the start of run_once() and reset it to
False in a finally block, so the get_loop_orchestrator() singleton guard
added in #4917 correctly prevents replacing an in-flight orchestrator.
Add 5 tests covering _running lifecycle and singleton guard behavior.
@mrveiss mrveiss merged commit b8c6dfb into Dev_new_gui Apr 17, 2026
1 of 3 checks passed
@mrveiss mrveiss deleted the issue-4937 branch April 17, 2026 06:32
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