Commit 9ab5d46
fix(cli): address Codex review — api key passthrough, fork parsing, version ID
1. annotation job create: pass resolved API key to Roboflow() instead of
relying on global config. Fixes auth failure in CI/non-interactive
contexts when --api-key is provided.
2. workflow fork: extract URL from nested {"workflow": {"url": "..."}}
response instead of assigning the whole dict to new_url.
3. version create: use return value from generate_version() directly
instead of inferring via max(versions), which is race-prone if
another version is created concurrently.
405 tests pass, all linting clean.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent e158cc8 commit 9ab5d46
3 files changed
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 307 | + | |
| 308 | + | |
314 | 309 | | |
315 | 310 | | |
316 | 311 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
316 | 316 | | |
317 | 317 | | |
318 | 318 | | |
319 | | - | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
320 | 327 | | |
321 | 328 | | |
322 | 329 | | |
| |||
0 commit comments