Commit c80f287
authored
feat(claudebox): pass mode=public to the v2 /run webhook (#23607)
Follow-up to #23600 (merged), which pointed CI at the ClaudeBox v2
`/run` webhook but did not pass a mode.
A v2 session's GitHub repo access is derived from its mode
(`slack_route.effective_mode` in session meta). The `slackbot` group's
repos are entirely mode-scoped, so a `/run` session **without** a mode
only resolves the group chain's unscoped repos (`claudebox` + `honk-ai`)
and **cannot write `aztec-packages`** — the same "no GitHub access"
failure #23600 set out to fix. Prompt text has no effect; `/run` never
parses mode flags.
This passes **`mode: "public"`** in both dispatch payloads (overridable
via repo var `CLAUDEBOX_MODE`), so kickoff/`/claudebox`/review sessions
resolve the public read-write repo set and can open PRs against
aztec-packages.
**Depends on AztecProtocol/claudebox#625**, which adds `mode` support to
the v2 `/run` endpoint (it stamps `effective_mode` into the new
session's meta). Without #625 deployed, `mode` is accepted but ignored,
so land/deploy #625 first or together.
## Testing
- `bash -n` on every `run:` body (7 steps) and YAML parse — pass.
- `jq` payload validated with `mode: "public"` for the issue-comment,
workflow_dispatch, and review shapes — valid JSON matching the v2
`RunRequest`.
---
*Created by
[claudebox](https://claudebox.work/v2/sessions/4b53f2dd8370a83a) ·
group: `slackbot`*1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
| |||
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | | - | |
| 152 | + | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
| |||
203 | 208 | | |
204 | 209 | | |
205 | 210 | | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
226 | 232 | | |
227 | 233 | | |
228 | 234 | | |
229 | | - | |
| 235 | + | |
| 236 | + | |
230 | 237 | | |
231 | 238 | | |
232 | 239 | | |
| |||
0 commit comments