fix(runtime): shutdown hook holds the runtime weakly #57

Merged
KofTwentyTwo merged 1 commits from fix/shutdown-hook-weak-runtime into develop 2026-10-15 20:57:50 +00:00
1 Commits
Author SHA1 Message Date
james.maesandClaude Opus 5.5 9fc0eed499 fix(runtime): shutdown hook holds the runtime weakly
Every AssistantRuntime registered a JVM shutdown hook that held the
runtime, and so its whole QInstance, until JVM exit. A host test suite
that builds an instance per test leaked every instance (kof22's suite ran
out of heap). The hook now holds a weak reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 15:53:47 -05:00