8 months ago
ebb2de6Move ask/approval handling into a new InteractionManager class (src/server/session/InteractionManager.ts). Replace pendingAsk/pendingApproval maps and related event handling in AgentSession with delegation to interactionManager, preserving replay, response validation, rejection, and persistence snapshot behavior. Session imports adjusted accordingly and classifyCommandDetailed is now used inside the new manager. This refactor separates prompt/approval concerns from session logic for clearer responsibilities.
Parent5387a8c