mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-09-11 22:53:00 +00:00
fabro(01KKTJ6PABFN9B5E0NRYVT9FKF): solve (success)
Fabro-Run: 01KKTJ6PABFN9B5E0NRYVT9FKF
Fabro-Completed: 3
Fabro-Checkpoint: a72c5a2a75
⚒️ Generated with [Fabro](https://fabro.sh)
This commit is contained in:
parent
e89ca5cd71
commit
56f3e0ecc3
1 changed files with 14 additions and 1 deletions
|
|
@ -141,6 +141,19 @@ timeout_ms = 60000
|
|||
|
||||
Each command must exit with status 0. If any command fails or times out, the run aborts before the workflow starts.
|
||||
|
||||
#### Idempotent git clones
|
||||
|
||||
When cloning repositories, use a fallback pattern to handle cases where the clone directory already exists:
|
||||
|
||||
```toml title="run.toml"
|
||||
[setup]
|
||||
commands = [
|
||||
"git clone https://github.com/openai/openai-agents-python upstream || (cd upstream && git pull)"
|
||||
]
|
||||
```
|
||||
|
||||
This pattern attempts to clone, and if the directory already exists (which fails with `fatal: destination path ... already exists`), it pulls the latest changes instead.
|
||||
|
||||
### `[sandbox]`
|
||||
|
||||
Configure how agent tools (bash, file edits) are executed.
|
||||
|
|
@ -488,4 +501,4 @@ Use `--preflight` to validate a run config without executing it:
|
|||
|
||||
```bash
|
||||
fabro run run.toml --preflight
|
||||
```
|
||||
```
|
||||
Loading…
Add table
Reference in a new issue