Repository navigation
fix(discord): correct progress receipt timing expectations - #116377
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 7:06 AM ET / 11:06 UTC. ClawSweeper reviewWhat this changesUpdates three Discord draft-progress receipt assertions so their displayed elapsed time expects the formatter’s rounded two-second output rather than five seconds. Merge readinessThe PR is a narrow, maintainer-authored Discord test correction and remains necessary as an open landing candidate. Its three updated expectations match the stated 1.5-second fake-clock input and the formatter’s rounded two-second display; no concrete patch defect or security concern is evident from the supplied diff and checks. Priority: P3 Review scores
Verification
How this fits togetherDiscord’s draft-progress path turns agent/tool activity into an in-progress receipt for Discord messages and thread replies. The test exercises that rendering path with a deterministic clock and verifies the elapsed-time text shown in the receipt. flowchart LR
A[Agent tool activity] --> B[Draft progress handler]
B --> C[Elapsed-time formatter]
C --> D[Discord draft receipt]
E[Deterministic fake clock] --> C
D --> F[Progress receipt assertions]
Before merge
Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the test aligned with the canonical elapsed-time formatter, then merge after the remaining required checks confirm the exact head. Do we have a high-confidence way to reproduce the issue? Yes, at source level: the focused deterministic draft-progress test is the reproduction path, and the PR reports that its fake-clock scenario produces a rounded two-second receipt. I could not independently execute or fully inspect the checkout because read-only command execution was unavailable. Is this the best way to solve the issue? Yes, based on the supplied patch: updating the stale assertions is narrower and safer than changing the formatter or fake-clock helper when the intended output is already two seconds. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against c854a0469665. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper rank-up move addressed: maintainer review artifacts are validated with zero findings, the focused Discord shard passes 23/23, autoreview is clean, and exact-head CI run 30537026316 passed including |
|
Merged via squash.
|
* origin/main: (99 commits) docs(automation): rename scheduled-tasks feature wording to Automations (#114855) feat(ui): finish cron -> Automations rename in visible strings (#114853) feat(cli): add openclaw automations alias and reword cron display prose (#114854) feat(agents): rename scheduler agent tool cron -> automations (#114841) fix(tui): preserve session state across switches and reconnects (#116399) feat(agents): report CLI command outcomes in channel progress fix(cli): preserve explicit option intent (#116389) fix(release): trust update restart harness (#116301) test(reef): remove false-green live guard smoke (#116393) test(comfy): evaluate live guards after setup (#116388) fix(heartbeat): serialize wake lifecycle state (#116351) test: remove redundant extension boundary wrapper (#116385) fix(test): bound Testbox agentic and extension suites (#115696) fix(ui): show the correct Threads page size (#116349) test(discord): align progress timing expectations (#116377) feat(ui): add composable skill references (#116330) fix(qa): prevent Slack cleanup from stalling profile runs (#116361) fix(ci): validate frozen release candidates faithfully (#116357) improve(ci): fail_fast option for release validation, off by default (#116352) fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels ...
What Problem This Solves
Resolves a problem where the Discord progress test shard fails even though the deterministic fake-clock output is correct.
Why This Change Was Made
The shared helper advances the fake clock by 1.5 seconds and the production formatter rounds that duration to 2 seconds. The three adopted-thread receipt assertions now verify that actual contract.
User Impact
No user-visible behavior changes. The Discord test shard no longer reports a false failure.
Evidence
node scripts/run-vitest.mjs extensions/discord/src/monitor/message-handler.process.draft-progress.test.ts(23 passed)git diff --check