081cdd9911
delegate_task children run on worker threads of the parent process and inherit the process-wide HERMES_INTERACTIVE=1 the CLI sets at startup. _transform_sudo_command's interactive gate therefore fired inside children with no sudo callback registered, falling through to the raw /dev/tty password prompt: a password box printed mid-TUI from a background thread, parallel children racing for the tty, and each child blocked for the full 45s timeout. Gate the prompt (and the sibling 'you will be prompted again' message after an auth failure) on agent.delegation_context.is_delegated_child_context(), the ContextVar set around every child run and propagated through contextvars.copy_context onto the executor thread. Children now behave as headless for sudo: configured SUDO_PASSWORD, the session cache, and the NOPASSWD probe still work; otherwise the command fails gracefully with a subagent-specific tip. A/B verified: 3 regression tests fail on merge-base, 7/7 pass at head.