[codex] run brain deployments embedded#16
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 881c0a2c3b
ℹ️ 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".
| r#"Mandatory first step: | ||
| - Install the deployment skill before doing anything else: | ||
| npx --yes skills add https://github.com/zjy365/seakills/tree/sandbox-skill-lite -y | ||
| - If the install command fails, stop and return a failed `DEPLOYMENT_RESULT` with the install failure reason. |
There was a problem hiding this comment.
Keep deployment runnable when skill is already preinstalled
The new prompt unconditionally requires npx --yes skills add ... as the first step and explicitly tells the agent to fail the deployment if that install command fails. Before this change, Devbox-backed sessions could skip installation when the skill was prebootstrapped. In environments where outbound npm/GitHub access is restricted but the skill is already present (a common hardened Devbox setup), deployments that previously succeeded will now deterministically fail at startup.
Useful? React with 👍 / 👎.
Summary
Behavior
POST /api/brain/deploymentsstarts a deployment task in the current gateway runtime.GET /api/brain/deployments/:threadIdreturnsrunning,succeeded, orfailed.ghcr.io/...image and valid Sealos template content intemplate; running/failed responses returnimage: nullandtemplate: null.Validation
cargo fmt --checkcargo test