mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
Consolidates duplicate cleanup, signal handling, and state management logic from runClaude and runCodex into a reusable createRunnerLifecycle factory function. Extracts mode switching handler and controlled user state updates into utilities. Adds runLocalRemoteSession wrapper to handle session ready callbacks in loop base.