Module: Browserctl::CommandDispatcher::Handlers::Hitl

Included in:
Browserctl::CommandDispatcher
Defined in:
lib/browserctl/server/handlers/hitl.rb

Overview

HITL pause/resume cannot route through with_page because with_page acquires session.mutex and waits on session.pause_cv while paused. Pause sets that flag; resume signals the CV. Reentering with_page would deadlock — resume would never get the lock to clear the flag. So these handlers look up the session under @global_mutex directly, then manage session.mutex / pause_cv themselves.