feat(runtime): support Modal secrets and live output - #611
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: aa955c128a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit aa955c1. Configure here.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4107b3f319
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d5a60de43d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5063841f4b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: eab347feb3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fca82f72a9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Summary
modal.Secretobjects to direct Modal image runtimesRuntimeSessionwrapperBreaking change
RuntimeSessionis removed. Custom provisioned runtimes should implementsnapshot_session(session_id)andrestore_session(session_id, archive)directly onRuntime.Validation
ruff checkon all modified Python filesty checkon all modified Python filespytest -q hud/eval/tests— 226 passedgit diff --checkA billable live Modal canary was not run.
Note
Medium Risk
Public runtime API change for custom providers, plus new Modal secret attachment and live log streaming that can affect teardown and what appears on the local terminal. Not auth/payment-critical, but custom runtimes and secret handling need review.
Overview
SDK-owned local evals now stream raw environment stdout/stderr to the terminal (Subprocess, Docker, Modal, Daytona). Hosted runtimes still keep that output on the trace.
ModalRuntimecan attach nativemodal.Secretobjects on image sandboxes so secret values never pass through the local process. Secrets are rejected for Docker-in-Docker Compose because they would not reachmain.Breaking:
RuntimeSessionis gone. Session file transfer lives on the provisionedRuntimeassnapshot_session/restore_session. Rollout uses those methods when handing actor files to an independent verifier.Reviewed by Cursor Bugbot for commit 2ee3558. Bugbot is set up for automated code reviews on this repo. Configure here.