Skip to content

fix(discord): correct progress receipt timing expectations - #116377

Merged
vincentkoc merged 1 commit into
mainfrom
fix/discord-progress-timing-tests
Jul 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/discord-progress-timing-tests

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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
  • autoreview clean

@vincentkoc vincentkoc self-assigned this Jul 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord size: XS maintainer Maintainer-authored PR labels Jul 30, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 11:02
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 7:06 AM ET / 11:06 UTC.

ClawSweeper review

What this changes

Updates three Discord draft-progress receipt assertions so their displayed elapsed time expects the formatter’s rounded two-second output rather than five seconds.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The 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
Reviewed head: 0611093608e282f8cbcd87f0a87ba92064f6ddd8

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, low-risk test correction with reported targeted validation and no identified correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored, test-only PR has no user-visible runtime behavior change requiring external contributor proof; the reported focused test run is relevant supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored, test-only PR has no user-visible runtime behavior change requiring external contributor proof; the reported focused test run is relevant supplemental validation.
Evidence reviewed 3 items PR diff is limited to receipt expectations: The proposed patch changes only three regular-expression expectations in the Discord draft-progress test, replacing the displayed duration from 5s to 2s; it does not alter runtime delivery, configuration, or channel behavior.
Focused validation was reported: The PR body reports the focused draft-progress test file passed with 23 tests and reports a clean whitespace check; repository checks also show the fast boundary, lint, type, dependency, and security lanes succeeding, with a few broader lanes still in progress.
Repository policy protects this PR from automated cleanup: The supplied repository policy says items carrying the maintainer label and items authored by repository members stay open for explicit maintainer handling; this PR has both signals.
Findings None None.
Security None None.

How this fits together

Discord’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]
Loading

Before merge

  • Complete next step (P2) - This is an active maintainer-authored PR with no discrete repair finding; complete normal check and maintainer review rather than dispatching an automated fix.
Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 3 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 3 0

Review metrics

None.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is a test-only correction for a false Discord shard failure with no stated user-visible runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR has no user-visible runtime behavior change requiring external contributor proof; the reported focused test run is relevant supplemental validation.

Label justifications:

  • P3: This is a test-only correction for a false Discord shard failure with no stated user-visible runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored, test-only PR has no user-visible runtime behavior change requiring external contributor proof; the reported focused test run is relevant supplemental validation.

Evidence

What I checked:

Likely related people:

  • vincentkoc: The available exact-path ownership signal is the PR head commit that updates the Discord progress receipt test; direct local history inspection was unavailable in this read-only environment. (role: current Discord test contributor; confidence: low; commits: 0611093608e2; files: extensions/discord/src/monitor/message-handler.process.draft-progress.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc

Copy link
Copy Markdown
Member Author

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 openclaw/ci-gate.

@vincentkoc
vincentkoc merged commit f6d5066 into main Jul 30, 2026
152 of 160 checks passed
@vincentkoc
vincentkoc deleted the fix/discord-progress-timing-tests branch July 30, 2026 11:11
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 30, 2026
* 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
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant