fix(hub): list commit-range files in the review overview

Stage 2.0 now submits reviews whose change sits in a commit range (master..HEAD) instead of the staged tree. review_files() skipped every file inside a commit block, so the overview from the stream and the inbox showed "No diff available" while the full page held the diff. The parser now keeps those files under the section commits, and the tree pane titles it Commits.

🎯 Fix: 93 %
💥 Break: 2 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 91
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-24 16:30:12 +00:00
1 parent ad03188335
commit 0f71fba0a4
3 files changed
+8 -4

No files matched your search

+1 -1
View File
@@ -28,7 +28,7 @@ class ReviewPage(HTMLParser):
if tag == "section":
self.section = values.get("id") or ""
elif tag == "details":
if first == "file" and "commit" not in self.details:
if first == "file":
self.file = {"section": self.section, "status": "", "tags": [], "lines": []}
self.texts = {name: [] for name in TEXTS}
self.spans = []
+1 -1
View File
@@ -27,7 +27,7 @@
running: ["running", "ok"], queued: ["waiting", "info"], blocked: ["blocked", "bad"], stale: ["stale", "warn"], pending: ["open", "warn"], done: ["done", "neutral"], stopped: ["stopped", "neutral"],
approved: ["approved", "ok"], rejected: ["denied", "bad"], allowed: ["allowed", "ok"], denied: ["denied", "bad"], expired: ["expired", "neutral"], decided: ["decided", "ok"], failed: ["failed", "bad"], refused: ["refused", "bad"],
};
const SECTIONS = {staged: "Staged", unstaged: "Not staged", untracked: "Untracked"};
const SECTIONS = {staged: "Staged", unstaged: "Not staged", untracked: "Untracked", commits: "Commits"};
const FILE_STATUS = {added: ["A", "ok"], deleted: ["D", "bad"], modified: ["M", "info"], renamed: ["R", "violet"], copied: ["C", "violet"], untracked: ["U", "warn"]};
const SIGNS = {add: "+", del: "-", ctx: " ", meta: " "};
const NODE_KINDS = {operator: "Operator", chair: "Chair", session: "Session", subagent: "Subagent"};