Skip to content

feat(agents-api): initialize hosted environments from template and inline files - #709

Merged
SaladDay merged 2 commits into
mainfrom
codex/environment-template-files
Sep 20, 2026
Merged

SaladDay merged 2 commits into
mainfrom
codex/environment-template-files

Conversation

@SaladDay

@SaladDay SaladDay commented Sep 20, 2026

Copy link
Copy Markdown
Collaborator

Hosted Sessions can now start with inline base64 files or project-owned Files API references, supplied directly or through an Environment Template. Core freezes tenant-authorized encrypted bytes per Session and uses one initialization path for Docker/E2B and all three harnesses. Execution and live Files wait for completion; uncertain installation fails and reclaims the Environment without replay, while later reconnects preserve user edits.

Scope ends at initial files. Other populated installations, restricted network and unconfirmed referenced-files override semantics still reject explicitly; this is partial protocol coverage. Provider retains its five operations.

Validation: generated OpenAPI/sqlc; real PostgreSQL and race suites; make check; real Docker/E2B binary transfer and 50 MiB/symlink installer checks; pinned SDK 3.13.0/raw HTTP with real model execution for Codex, Claude Code and MiniMax Code on both providers. Template and inline paths cover snapshot/deletion retries, Files/Artifacts, tenant/credential isolation, cancellation and native-history recovery. E2B additionally verifies interruption during initialization without early execution or replay. Qualified Runtime builds were reused. A final rebuilt Docker/Codex run also verified a 5 MiB inline file through native execution, Artifacts, cancellation and history recovery; HTTP/PostgreSQL regression covers 10 MiB total inline content and creation retries. Exact evidence scope and build hashes are recorded in contracts/agents-api/environment-templates.md.

Earlier test-network timeouts and one alternative restart-order observation remain recorded in Feishu; passing runs do not claim those causes were fixed. Fresh independent GPT-6 Astra high reviewed the entire final diff and found no actionable issues. Reviewer did not rerun full/model acceptance; the server test records are the validation gate. GitHub CI is not the merge gate.

@SaladDay
SaladDay merged commit d3257b2 into main Sep 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant