Skip to content

Review table and run tasks: fit the paths, code as code, tasks from the plan check - #351

Merged
nambok merged 1 commit into
mainfrom
fix/review-table-and-tasks
Nov 10, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/review-table-and-tasks

Conversation

@nambok

@nambok nambok commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Polish after the review and run page redesign (#350):

  • Reviewed changes table (review session and review detail pages): the File column took about 80% of the width with short paths, descriptions were squeezed into a narrow column, and inline code showed literal backticks.
  • Run page Tasks card: a finished run could read "1 of 3 tasks done" while the worker's own plan check said 3 of 3, or show every task unticked.
  • Run page Files changed / Changes tab: a run with an open pull request and 3 changed files said "This run didn't change any code".
  • Address PR comments showed on every run with a pull request, with nothing to address.

Changes

  • reviewer/session/sections.tsx: the file table is a grid with table roles. The path column fits its content, capped at 40%, wrapping after a slash. The description takes the rest. On a phone each row stacks the path over the description. Descriptions, the PR summary, the changes list, the reviewer's note headings and text, kept comments and the session's reason now render inline code through the existing InlineMarkdown.
  • components/file-path.tsx (new): the directory muted, the file name plain, the full path as hover text. Shared by the run page's Files changed list and the review table.
  • lib/plan-check.ts (new) and runs/detail/page.tsx: tasks are ticked from the run's newest "Plan check: N of M planned tasks done" progress note, matched by file the way the worker's plan_tasks reads a task. Otherwise the card falls back to the checklist's own box. With no plan check result, a finished run with a PR that has unticked tasks says "Done in pull request #N" with plain bullets, not empty boxes. The checklist parse also accepts [X] and * bullets, as the worker does.
  • runs/detail/run-timeline.tsx and the Changes tab: with no recorded file list and an open PR, the page says "Coderhelm didn't record which files this run changed. Pull request #N has every change." and links the files on GitHub. "This run didn't change any code" shows only for a finished run with no PR.
  • "Address PR comments" shows only when Coderhelm's reviewer asked for changes (pr_review.verdict == REQUEST_CHANGES).

Why the data was wrong, and the platform fixes it needs:

  • Tasks. implement::run (services/worker/src/passes/implement.rs, around line 695) creates a TaskTracker seeded with the plan's unticked plan.tasks. Its mark_files_done writes that whole copy back to tasks.md on every write. Fix rounds after the plan check (proof, security, CI, generator and link fixes all call implement::run) therefore overwrite save_checked_tasks' 3 of 3 with only the files that round touched. The fix: seed the tracker from the current tasks.md in S3, or have it only add ticks to what is stored.
  • Files. Nothing writes files_modified on the run record for a run that opens a pull request. Only complete_run (services/worker/src/passes/mod.rs) sets it, and that function is #[allow(dead_code)] with no callers. The fix: set files_modified from the branch diff in the awaiting_ci updates in run_passes (single repository about line 6366, multi-repository about line 4649, CI fix cycle about line 4006).
  • Review comments. The run API has no field for review comments from people, so the button keys on the reviewer's verdict only.

Verification

  • npm run lint, npm run typecheck: pass.
  • Static export (as CI runs it), e2e: run-tasks-files (new), reviewer-session, audit-runs, run-draft-hold, run-steps, run-trigger, run-questions, audit-reviewer, close-runs: 118 passed.
  • New mocks:
    • A review whose descriptions, summary, changes and notes contain backticks, plus a long path. Checks the column widths (path at most 40%, description over 55%), that the row stacks on a phone, and that nothing scrolls sideways.
    • A finished run shaped like the observed one: checklist 1 of 3, plan check 3 of 3, no file list, an open PR.
    • The same run without a plan check note, still running, with files, and with no PR.
    • Reviewer verdicts for the Address PR comments button.
  • Screenshots before and after at 1280px and 390px were checked by eye.

…he plan check

Reviewed changes table: the file column fits its paths (at most two
fifths, wrapping after a slash) and the description takes the rest; the
directory is muted and the file name plain, as on the run page; inline
code in descriptions, the summary, the changes and the reviewer's notes
renders as code; on a phone each row stacks the path over its line.

Run page Tasks card: tasks are ticked from the run's plan check note
(the worker's own measure of the branch) when there is one; the
checklist file can be stale after a later fix round. A finished run with
a pull request and no plan check result says "Done in pull request #N"
instead of empty boxes.

Files changed: an open pull request with no recorded file list says the
list wasn't recorded and links the files on GitHub, never "didn't change
any code". "Address PR comments" shows only when the reviewer asked for
changes.
@nambok
nambok merged commit 56a397d into main Nov 10, 2026
10 checks passed
@nambok
nambok deleted the fix/review-table-and-tasks branch November 10, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant