6e87d43a57
vision_analyze reads container-only images by exec-reading them inside the sandbox, but unlike terminal_tool it never triggered environment creation. Under a non-local backend (ssh, docker, ...), a session whose first action was vision_analyze on a remote path failed with 'no active sandbox session' until an unrelated terminal command happened to establish the connection. Add terminal_tool.ensure_task_env(task_id), a public lazy get-or-create that reuses the terminal tool's own creation machinery, and call it from image_source._resolve_container_fallback before the in-sandbox read. Extract the ssh/container config-dict builders so both paths derive settings identically (no duplication). Best-effort and fail-closed: a failed bring-up leaves the existing 'no active sandbox' error intact, never a host read. Fixes #62825