fix: persistent event loop in CLI interview — no more Event loop is closed #42

Merged
hermes merged 1 commits from fix/cli-event-loop into main 2026-03-14 12:58:47 -04:00

1 Commits

Author SHA1 Message Date
b222b28856 fix: use persistent event loop in interview command
All checks were successful
Tests / lint (pull_request) Successful in 3s
Tests / test (pull_request) Successful in 32s
Replace repeated asyncio.run() calls with a single event loop that
persists across all interview questions. The old approach created and
destroyed loops per question, orphaning MCP stdio transports and
causing 'Event loop is closed' errors on ~50% of questions.

Also adds clean shutdown: closes MCP sessions before closing the loop.

Ref #36
2026-03-14 12:58:11 -04:00