fix(modal): Add missing exception_info to SwerexModalEnvironment outp… …ut (#764) The execute() method was missing the exception_info key in its return dict, unlike all other environment implementations (docker, local, singularity, swerex_docker). This caused a Jinja2 UndefinedError when the observation template accessed output.exception_info with StrictUndefined, crashing the agent on every step. Also adds try/except around the execute call to match swerex_docker, so execution errors are returned as structured output instead of propagating as unhandled exceptions. Co-authored-by: Claude Opus 4.6 noreply@anthropic.com Configuration menu Browse the repository at this point in the history
Configuration menu Browse the repository at this point in the history