pika-dev: implement issue agent service and deploy hardening#420
pika-dev: implement issue agent service and deploy hardening#420justinmoon wants to merge 3 commits intomasterfrom
Conversation
Three root causes were making generation tasks get stuck: 1. Stale `generating` artifacts after service restart had no recovery logic — add `recover_stale_generating()` called on startup. 2. Claude CLI invoked without `-p` and without `--tools ""`, so the model used tools, hit `--max-turns 1`, and returned `error_max_turns` with no `result` field — make `result` optional via `#[serde(default)]`, detect the subtype, and disable tools. 3. `extract_json_payload` only handled output starting with triple backticks, but the model often prefixes with prose — search for fenced blocks and bare JSON objects anywhere in the output. Also adds structured poll/worker logging and better error diagnostics that include stdout/result prefixes in error messages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Agent review: Issues found
Spec alignment The implementation is ~98% faithful to the spec. The only material gap is the Lines: ~3,050 (spec target was <2,000). The overshoot is from thorough tests Bottom line Ship it. The duplicate system prompt is the only thing I'd fix before deploying — |
Attempt to make a little background bot to implement stuff. Should maybe move this to my personal infra.
Notes:
codex resume 019cb713-68d5-7f30-b723-dc4dfa4cf784in/Users/justin/code/pika/worktrees/pika-dev