feat: wire execution model runtime through tasks and sessions#36
Conversation
Propagate the Settings-derived runtime payload through task launch, retry, and session continuation so Tasks and Sessions use the selected execution mode/model instead of falling back implicitly. Preserve stored session runtime metadata while injecting only transient browser API keys or local CLI env at send time, and add E2E/runtime helpers for local CLI, BYOK provider, and legacy backend env modes. Harden Codex connection testing for slow auth refresh and JSON event parsing, with focused tests for task retry, runtime persistence, UI readiness gates, and E2E config.
|
Claude finished @moose-lab's task in 2m 55s —— View job PR Review: feat: wire execution model runtime through tasks and sessionsTodo
Findings
Observations (no action needed)
Verdict: REQUEST_CHANGES The non-atomic task rollback on spawn failure (must-fix #1) is the primary concern: it can leave tasks permanently stuck in |
|
Claude finished @moose-lab's task in 3m 36s —— View job PR Review: feat: wire execution model runtime through tasks and sessionsTodo
Status of Prior Must-Fix ItemsBoth must-fix items flagged in the previous review remain unaddressed:
New Findings (from
|
Release linked in-progress tasks back to fail when their execution session fails, keep failed sessions as audit records, and allow failed tasks to start a new session. Group queued and failed work in the Tasks board without merging their underlying DAG statuses, and guard task-bound session creation by project and executable status.
|
Claude finished @moose-lab's task in 3m 1s —— View job PR Review: feat: wire execution model runtime through tasks and sessionsTodo
Status of Prior Must-Fix Items✅ Fixed: Non-atomic task rollback on spawn failure — All three routes now call ❌ Still open: Unchanged from prior reviews. A whitespace-only Findings (new commit)
Observations (no action needed)
Verdict: REQUEST_CHANGES The stream endpoint authorization gap is a security concern. The |
|
Claude finished @moose-lab's task in 1m 46s —— View job PR Review: feat: wire execution model runtime through tasks and sessionsTodo
Status of Prior Open ItemsAll open items from previous reviews are now resolved: ✅ Fixed:
✅ Fixed: Stream endpoint missing project-level authorization —
✅ Fixed: Unsafe body cast in The ✅ Fixed: CodeQL alert — clear-text logging of The env var value is no longer logged; replaced with ✅ Fixed (nit): Replay messages now use stable DB IDs —
✅ Fixed (nit): Status event dedup —
Findings (new commit)No new issues found. All changes are well-scoped to the prior findings and the new logic is clean. Observations (no action needed)
Verdict: APPROVE All must-fix and should-fix items across four review rounds are now resolved. The implementation is correct and well-tested. |
这个分支主要做什么
验证
git diff --cached --checkbun run typecheckTZ=Asia/Shanghai bun run test,185/185 passedbun run buildpassedok: true,sample: "ok"F05CA9BDEC32F08Aand session4e33454d32e0cc56