Repository navigation
chore(dev): summarize dev-loop failure artifacts (#2248) - #2284
Conversation
Problem: branch-local daemon/web/browser debugging still required opening multiple run artifacts manually after a failed dev-loop run, even though the helper already recorded enough event and summary data to identify the failure surface.\n\nWhat changed: extend devtools workspace dev-loop --inspect-run to surface failed summary files, failed terminal captures, the slowest timed events, and an artifact index grouped by run surface. Update the dev-loop documentation and focused unit coverage for the richer postmortem.\n\nVerification: devtools test tests/unit/devtools/test_dev_loop.py -q; devtools render all --check\n\nRef #2248
|
Warning Review limit reached
More reviews will be available in 57 minutes and 20 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Completes the branch-local dev-loop close-out by making
devtools workspace dev-loop --inspect-runuseful as the first diagnostic stop after daemon, web, CLI, receiver, extension, or browser-loop failures. The helper now surfaces failed summary files, failed terminal captures, slowest timed events, and artifact paths grouped by surface, so a developer can move directly from one run id to the log/stdout/stderr artifact that explains the failure.Problem
#2248 had already landed branch-local preflight, isolated ports, daemon launch artifacts,
/api/dev-loop, CLI capture, receiver request ids, extension diagnostics, browser plans, and real Chrome unpacked-extension smoke. The remaining weakness was the final debugging step: when a run produced many local artifacts,--inspect-runmostly reported counts and raw failed events, so agents still had to scan the run directory to find the useful next file.Solution
This PR extends the existing run inspector rather than adding a second observability ledger:
dev-loop.events.jsonl, daemon/browser/extension/TUI summary JSON, and terminal capture summaries;failed_summaries,failed_terminal_captures,slowest_events, andartifact_indexin JSON output;Acceptance Matrix
/api/dev-loop; confirmed in issue comments with local smoke run ids.--capture-cliand--tui-planwrite run-local artifacts; this PR indexes terminal capture summaries in--inspect-run.ok=Truelocal evidence.--inspect-run./api/dev-loop, and daemon events answer the current debugging questions.docs/dev-loop.mdcontinues to treat real authenticated browser/profile work as local operator/agent procedure; repo owns URLs/config/artifacts and smokes only.Verification
devtools test tests/unit/devtools/test_dev_loop.py -q→19 passed in 41.44safter formatting.devtools render all --check→ all generated surfaces sync OK.devtools verify --quick→ all checks passed in 13.1s locally.devtools verify --quick→ all checks passed in 11.83s, run id20260621T143839Z-quick-67399-bf5fa775.Notes
I did not run a fresh real-browser smoke in this PR because #2280 already added and verified that path. This change is the postmortem layer over the run artifacts produced by those existing commands.
Closes #2248