Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@ state/*
!state/.keep
artifacts/*
!artifacts/.keep

.omo/
bun.lock
opencode
opencode-shallow
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ bunx @cortexkit/orw check --force
"desktop_target": "/Applications/OpenCode.app",
"install_cli": true,
"install_desktop": true,
"notify_timeout": 120
"notify_timeout": 120,
"retry_attempts": 3,
"retry_delay_ms": 10000
}
```

Expand Down Expand Up @@ -98,6 +100,13 @@ Relative paths in config are resolved from the directory containing `orw.config.
- `prompt_path`: optional custom prompt template; if omitted, the packaged default prompt is used
- `install_desktop`: defaults to `true` on macOS and `false` on Linux/Windows when generated by `init`

### Retry on provider errors

When `opencode run` fails with a retryable provider error (e.g. "Provider returned error", rate limits, 5xx responses), ORW automatically retries using `opencode run --continue` to resume the last session.

- `retry_attempts`: max number of attempts including the first one (default `3`)
- `retry_delay_ms`: delay between retries in milliseconds (default `10000`)

Comment on lines +103 to +109
## Commands

```bash
Expand Down
20 changes: 0 additions & 20 deletions bun.lock

This file was deleted.

4 changes: 3 additions & 1 deletion config.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@
"desktop_target": "/Applications/OpenCode.app",
"install_cli": true,
"install_desktop": false,
"notify_timeout": 120
"notify_timeout": 120,
"retry_attempts": 3,
"retry_delay_ms": 10000
Comment on lines 15 to +18
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@
},
"engines": {
"bun": ">=1.3.0"
}
},
"dependencies": {}
}
Loading