codeburn/app/renderer
Resham Joshi 48773459ab
feat(pr): attribute PR work honestly and show one shot, review runs and follow-ups (#1733)
* fix(pr): a subagent whose description names a PR folds into that PR

A subagent run folded into whatever PR its parent's last pr-link carried, so
review runs for #1703, #1712, #1728 and #1729 landed on a stale closed #24.
The Agent description ("Review PR 1729 ...") is now read from the subagent's
.meta.json at report time; a single PR it names outranks the carried PR.

* fix(pr): date each PR by its own turns and count its agent runs

Every PR row carried the whole session's first and last timestamp, so one
long orchestrator session stamped the same span and "1 session" on all of
them. Rows now span their first to last attributed turn or folded run, and
a new `runs` field counts contributing sessions plus folded subagent runs.

* feat(pr): local one-shot, follow-up rounds, review runs, merge time and cost split per PR

Each PR row now carries signals read from cached commands, no GitHub calls:
openedAt (gh pr create paired with the PR's first pr-link), follow-up rounds
(pushes naming its --head branch, or from a run whose description names it,
in 10-minute bursts), oneShot only when the open and its branch were seen,
reviewRuns and reviewCostUSD, mergedAt and timeToMergeMs, a build/review/fixes
cost split that sums to the row, and linkEvidence to flag pr-link-only rows.

* feat(session-why): PRs the session opened, their follow-up rounds and review runs

The why view now carries prWork: each gh pr create whose output printed a PR
URL, the pushes after it on its --head branch (or from a helper whose
description names that PR) in 10-minute rounds, and the helpers that read a
PR without committing or pushing, with their cost.

* perf(pr): only parse commands that can name a push or a PR

* feat(app): local PR facts on PR cards and PR work in the session view

Each PR card gets one line of facts from the CLI's local signals: the review
run and its cost, one shot or follow-up rounds, and merge time after open.
Unknowns are left out; a pr-link-only row says so. The count shows agent runs
instead of sessions. The expanded card splits spend into building, review runs
and after first review, and lists the review runs. The session view lists the
PRs it opened and the review runs it spawned.

* perf(pr): read subagent descriptions only for PR attribution

Every report, status and menubar refresh read each subagent's .meta.json
(about 2,000 files in 30 days) and the cross-provider correlation scanned
every folded run's commands for PR signals it never uses. Sessions now carry
the sidecar path; the description is read on demand, memoized by mtime, only
for folded runs and runs that push, and correlation skips the command scan.
The by-pr footer now counts runs to match the Runs column.
2026-10-10 21:40:39 +02:00
..
assets chore: remove Roo Code support (#1551) 2026-09-24 21:34:39 +02:00
components fix: desktop not-found panel gives app advice, not npm (#1701) 2026-10-09 12:31:19 +02:00
hooks feat(app): transient project selector in the desktop top bar (#1680) 2026-10-08 00:51:31 +02:00
i18n feat(pr): attribute PR work honestly and show one shot, review runs and follow-ups (#1733) 2026-10-10 21:40:39 +02:00
lib feat(pr): attribute PR work honestly and show one shot, review runs and follow-ups (#1733) 2026-10-10 21:40:39 +02:00
public Wire drill-through into the desktop app: entries, chips, contributions, drawer, history 2026-09-12 12:22:19 -07:00
sections feat(pr): attribute PR work honestly and show one shot, review runs and follow-ups (#1733) 2026-10-10 21:40:39 +02:00
styles feat(pr): attribute PR work honestly and show one shot, review runs and follow-ups (#1733) 2026-10-10 21:40:39 +02:00
test desktop: light theme default, refreshed type and spacing, plugin and plan cards (#1485) 2026-09-18 15:09:01 -07:00
vscode fix(ui): mark estimated headline totals with ~ on every hero (#1722) 2026-10-10 07:05:58 +02:00
App.renderChurn.test.tsx perf(app): stop the per-second shell re-render and halve the splash video (#1352) 2026-09-17 13:05:43 +02:00
App.test.tsx feat(app): transient project selector in the desktop top bar (#1680) 2026-10-08 00:51:31 +02:00
App.tsx feat: group projects by git repository (#1691) 2026-10-08 06:45:26 +02:00
index.html harden(app): Electron security + spawn efficiency batch 2026-07-16 01:57:44 -07:00
main.tsx 0.9.25: correctness, energy, menu bar and installer fixes (#1511) 2026-09-21 00:16:21 +02:00
vite-env.d.ts feat(app): scaffold Electron+Vite package and codeburn CLI spawn 2026-07-10 15:16:55 -07:00