GeezerVison is showing github.com — aggregator(comments): 'posting failed' age is measured from comment creation, not from the failure — no failure timestamp is stored · Issue #8586 · developing-today/code
aggregator(comments): 'posting failed' age is measured from comment creation, not from the failure — no failure timestamp is stored #8586DescriptionFinding
The dashboard comments queue renders a failed GitHub comment's age from the wrong clock: dashCommentHtml in pm-stack/aggregator/src/render.ts prints `posting failed ${relTime(c.createdAt)}` — the time since the comment was created, not since it failed. No failure timestamp is ever stored: CommentsStore.markGithubResult in pm-stack/aggregator/src/comments.ts transitions a comment to githubState = "failed" and sets githubError only, and repeat failures refresh the error text (per #1210, "last error means the newest report") with no accompanying time. A comment that sat pending for days before failing — or failed again yesterday after an earlier failure — displays as "posting failed ", which misstates how long the failure has been waiting on a manual repost.
Evidence
- Source PR: feat(aggregator): comments queue view, kind-aware badge counts, honest failure copy (#1210) #3987 (merged 2026-11-01, merge commit 2f8ab78, commit cac2674) — "feat(aggregator): comments queue view, kind-aware badge counts, honest failure copy (Dashboard comments: add a pending/triage queue view and make comment counts kind-aware #1210)".
- Verified on current main d398bc5, two independent reads of
pm-stack/aggregator/src/render.ts:
- :600
`posting failed ${relTime(c.createdAt)} — no automatic retry exists; a fleet poster must post it by hand…` in dashCommentHtml's githubState === "failed" branch.
- :676
relTime(iso) computes Date.now() - Date.parse(iso) — a relative age of whatever timestamp it is handed; it is handed createdAt.
pm-stack/aggregator/src/comments.ts markGithubResult (read on main): the failure branches set c.githubState = "failed" and c.githubError = result.error and persist — no timestamp field is written on either the first failure or a repeat failure. pm-stack/aggregator/src/model.ts:1190 carries githubError?: string and no failure-time field exists on DashComment.
- The semantics are pinned by a test:
pm-stack/aggregator/test/comments-queue-1210.test.ts:101 expects /posting failed (just now|\d+[mhd] ago)/ against a freshly created fixture, so the test passes precisely because creation and failure coincide in the fixture.
- Dedupe: issue search 2026-11-11 ("posting failed", "failedAt comments", "comment failure age createdAt") returned no issue covering this; parent issue Dashboard comments: add a pending/triage queue view and make comment counts kind-aware #1210 is closed.
Why it matters
The comments queue is the fleet's manual-recovery surface for GitHub comments that failed to post — the copy itself says a fleet poster must post it by hand. The displayed age is the triage signal for how stale that failure is. Anchoring it to creation time overstates the age of long-pending comments and understates repeat failures, so operators cannot tell a failure that happened minutes ago from one that has been waiting since the comment was written.
Acceptance criteria
- A failure timestamp (e.g.
githubFailedAt) is recorded on DashComment when markGithubResult transitions a comment to failed, refreshed on repeat failures alongside githubError, and cleared when the comment posts.
- The failed branch of
dashCommentHtml renders the age from that timestamp (falling back to createdAt for pre-existing records that lack it).
- A test pins the distinction: a comment created well before its failure renders the failure's age, not the comment's age.
agent-note:v1
Agent: pr-diff-review-b
State: filed
Source PR: #3987 (#3987)
Verified against main: d398bc5 (two reads) Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/triageQueue packet kind: verify, reproduce, and route this item effort/xsTrivial: expected under 30 minutes of work on Nov 11, 2026developing-today commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026 agent-note:v1
Agent: pr-diff-review-b
State: filed
Repo: developing-today/code
Source PR: #3987 (#3987), merged 2f8ab78
Finding: dashCommentHtml (pm-stack/aggregator/src/render.ts:600) renders "posting failed <relTime(c.createdAt)>" — the comment's age, not the failure's age; markGithubResult (src/comments.ts) stores githubError but no failure timestamp, and repeat failures refresh the error with no time.
Verified against main: d398bc5 (two independent contents reads of render.ts; comments.ts and model.ts read on main)
Evidence: hidden_files/pr-review-b-2026-11-11-0118/issue-3987-body.md + diff-3987.patch dezren39 commented on Nov 11, 2026 🤖 Agent note · triaged — verified valid, routing to a fix follow-on (task 14905, lane code-d)
- Verified against current main (56c56f0, independently of the filing's reads):
pm-stack/aggregator/src/render.ts:601 — the githubState === "failed" branch renders `posting failed ${relTime(c.createdAt)}`: creation clock, as filed.
pm-stack/aggregator/src/comments.ts:414 — the failure branch of markGithubResult sets githubState = "failed" + githubError only; no timestamp is written on first or repeat failure.
pm-stack/aggregator/src/model.ts:1190 — DashComment carries githubError?: string; githubFailedAt appears nowhere in model.ts or comments.ts (grep count 0).
pm-stack/aggregator/test/comments-queue-1210.test.ts:101 pins the current copy against a fresh fixture, exactly as the filing describes.
- Verdict: valid bug, acceptance in the issue is the fix spec (record
githubFailedAt on transition to failed, refresh on repeat failure alongside githubError, clear on post; render the failed age from it with a createdAt fallback for pre-existing records; one test pinning created-long-before-failed). No duplicate; parent Dashboard comments: add a pending/triage queue view and make comment counts kind-aware #1210 is closed.
- Routing: this triage completes as
follow_on — the queue raises the small_fix task for aggregator(comments): 'posting failed' age is measured from comment creation, not from the failure — no failure timestamp is stored #8586 automatically.
dezren39 commented on Nov 11, 2026 🤖 Agent note · picked up — fix in PR #8657 (task 14964, lane code-d; follow-on of triage task 14905)
- Implements the verified acceptance:
githubFailedAt recorded on the failed transition, refreshed on repeat failures, cleared on posting; the failed branch renders its age with a createdAt fallback for pre-existing records; three tests pin the stamp/refresh/clear lifecycle and the render distinction.
- Verified: comments-queue-1210.test.ts 12/12; wider-suite failures are pre-existing (identical results at base vs branch on the affected files).
- Next: Codex review → merge → close.
dezren39 commented on Nov 11, 2026 🤖 Agent note · done — fixed_merged (task 14964, lane code-d; follow-on of triage task 14905)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|