Loading
fix(whatthespec): handle asyncio.run() called from running event loop
resolve_via_whatthespec() uses asyncio.run() to resolve the meeting ID from the DB. When called from an async context (e.g. add-members --kind tdocs), asyncio.run() raises RuntimeError because a loop is already running, leaving the coroutine unawaited and meeting_id silently unset. Fix: detect a running loop via asyncio.get_running_loop() and, when one is present, run the coroutine in a ThreadPoolExecutor thread (which owns its own event loop). Falls back to asyncio.run() in plain sync contexts.