Skip to content

fix(agents): post-timeout compensation in sessions_send - #68196

Closed
glfruit wants to merge 2 commits into
openclaw:mainfrom
glfruit:fix/sessions-send-timeout-compensation
Closed

glfruit wants to merge 2 commits into
openclaw:mainfrom
glfruit:fix/sessions-send-timeout-compensation

Conversation

@glfruit

@glfruit glfruit commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #68065

sessions_send with a non-zero timeout previously returned status=timeout whenever the wait window expired, even when the target agent had already accepted the message and produced a reply after the window closed.

Behavior contract

Scenario Before After
Reply arrives just after the timeout window status: "timeout" status: "ok" with the late reply
Run accepted but no new reply within window status: "timeout" status: "accepted"
Run truly stalled / not accepted status: "timeout" status: "timeout" (unchanged)
Fire-and-forget (timeoutSeconds: 0) status: "accepted" status: "accepted" (unchanged)

Implementation

Adds compensateAfterWaitTimeout() in src/agents/run-wait.ts that reads the latest assistant reply snapshot after a timeout and checks whether a new reply materialized since the pre-send baseline. The timeout handler in sessions-send-tool.ts now calls this before returning a hard timeout.

Test coverage

  • src/agents/run-wait.test.ts — 3 new tests in a compensateAfterWaitTimeout describe block:
    • new reply found after timeout → returns accepted with reply
    • no new reply but run accepted → returns accepted without reply
    • compensation itself fails → falls back to hard timeout
  • src/agents/tools/sessions.test.ts — 1 new test: fire-and-forget (timeoutSeconds=0) stays on the accepted path without triggering compensation or agent.wait
  • All 42 tests in the targeted test files pass (16 in run-wait, 26 in sessions)

Production provenance

We have been running this fix as a dist-level patch in production. This PR is the source-level equivalent, adapted to the current upstream main branch. Reference third-party implementation: wade-microblueworld/openclaw@bfe3a59

Note on full test suite

The full pnpm test run has 2 pre-existing failures on upstream main that are unrelated to this change (src/plugins/bundle-commands.test.ts, src/commands/gateway-status/helpers.test.ts). All files touched by this PR pass cleanly.

Real behavior proof

  • Behavior or issue addressed: sessions_send post-timeout compensation should preserve canonical delivery metadata and should expose compensation read failures instead of hiding them behind a generic timeout.
  • Real environment tested: Local macOS source worktree /tmp/openclaw-pr68196, Node v25.8.1, branch fix/sessions-send-timeout-compensation, commit 37c9ac3c48a.
  • Exact steps or command run after this patch:
node scripts/run-vitest.mjs src/agents/tools/sessions.test.ts src/agents/run-wait.test.ts
git diff --check HEAD
  • Evidence after fix (terminal capture):
Test Files  4 passed (4)
Tests       102 passed (102)
  • Observed result after fix: The regression coverage now verifies that accepted timeout compensation keeps delivery: { status: "pending", mode: "announce" }, skipped compensation keeps skipped announce metadata, and terminal timeout errors include the compensation read failure text.

  • What was not tested: Live Telegram or Feishu channel delivery was not exercised for this PR because the changed behavior is the sessions_send tool result/compensation contract.

  • Behavior or issue addressed: sessions_send should not report a hard send failure when the first agent.wait times out but the nested agent run has already been accepted and can still produce a reply. The caller should get either the late reply or an accepted/pending delivery state instead of a misleading failure.

  • Real environment tested: macOS production OpenClaw host running the owned package install (@glfruit/[email protected]) with the live gateway up and both Telegram and Feishu transports configured. Source branch under proof: fix/sessions-send-timeout-compensation at 6e43ccce881.

  • Exact steps or command run after this patch:

    1. Verified the live host/package/gateway state: openclaw --version, npm list -g --depth=0 @glfruit/openclaw --registry=http://127.0.0.1:4873, curl -sS http://127.0.0.1:18789/readyz.
    2. Inspected the PR branch implementation path: git show glfruit/fix/sessions-send-timeout-compensation:src/agents/tools/sessions-send-tool.ts and git show glfruit/fix/sessions-send-timeout-compensation:src/agents/run-wait.ts.
    3. Ran/relied on the exact branch checks already attached to this head: src/agents/run-wait.test.ts and src/agents/tools/sessions.test.ts, which cover late-reply compensation, accepted-state compensation, and baseline reply filtering.
  • Evidence after fix (screenshot, recording, terminal capture, console output, redacted runtime log, linked artifact, or copied live output): terminal capture from the real host plus PR branch excerpt:

    $ openclaw --version
    OpenClaw 2026.5.20 (3504782)
    
    $ npm list -g --depth=0 @glfruit/openclaw --registry=http://127.0.0.1:4873
    /opt/homebrew/lib
    └── @glfruit/[email protected]
    
    $ curl -sS http://127.0.0.1:18789/readyz
    {"ready":true,"failing":[]}
    
    $ git grep -n "compensateAfterWaitTimeout\|waitForAgentRunAndReadUpdatedAssistantReply" glfruit/fix/sessions-send-timeout-compensation -- src/agents
    src/agents/run-wait.ts:152:export async function waitForAgentRunAndReadUpdatedAssistantReply(...)
    src/agents/run-wait.ts:230:export async function compensateAfterWaitTimeout(...)
    src/agents/tools/sessions-send-tool.ts:337:const result = await waitForAgentRunAndReadUpdatedAssistantReply(...)
    src/agents/tools/sessions-send-tool.ts:349:const compensation = await compensateAfterWaitTimeout(...)
    
  • Observed result after fix: the patched path converts the ambiguous first-wait timeout into either status: "ok" with the late reply or status: "accepted" with delivery note run accepted, no reply within timeout, rather than surfacing the first wait timeout as a hard send failure.

  • What was not tested: I did not post private production chat transcripts or intentionally force a mutating timeout in the live Telegram/Feishu rooms. The live host evidence verifies the real runtime context; the exact timeout edge is covered by the PR branch regression tests and source-level trace above.

  • Before evidence (optional but encouraged): [Bug]: sessions_send misclassifies first agent.wait timeout as hard send failure #68065 describes the production failure mode: the first agent.wait timeout could be misclassified as a hard sessions_send failure even though the target run had been accepted.

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S labels Apr 17, 2026
@greptile-apps

greptile-apps Bot commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

Adds post-timeout compensation to sessions_send: after a wait window expires, it reads the latest assistant reply snapshot and checks whether a reply materialized since the pre-send baseline, converting spurious timeout results into ok (late reply found) or accepted (run queued, no reply yet). The implementation is correct, the behavior contract matches the PR description, and the new tests cover the key code paths including the fire-and-forget guard.

Confidence Score: 5/5

Safe to merge — logic is correct, all targeted tests pass, and the only findings are minor observability suggestions.

Both findings are P2: a misleading constant comment and a dropped error string on an already-rare fallback path. Neither affects correctness or the stated behavior contract.

No files require special attention.

Comments Outside Diff (1)

  1. src/agents/tools/sessions-send-tool.ts, line 371-377 (link)

    P2 Compensation error dropped in hard-timeout fallback

    When compensation.accepted === false (the history read itself threw), compensation.error is available but discarded — the returned response only surfaces result.error from the original wait. This makes it harder to diagnose why compensation failed (e.g., gateway unavailable during the follow-up read). Consider appending the compensation failure reason to the timeout error message.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: src/agents/tools/sessions-send-tool.ts
    Line: 371-377
    
    Comment:
    **Compensation error dropped in hard-timeout fallback**
    
    When `compensation.accepted === false` (the history read itself threw), `compensation.error` is available but discarded — the returned response only surfaces `result.error` from the original wait. This makes it harder to diagnose why compensation failed (e.g., gateway unavailable during the follow-up read). Consider appending the compensation failure reason to the timeout error message.
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: src/agents/run-wait.ts
Line: 221-225

Comment:
**Misleading "must match" comment on default constant**

The comment says `COMPENSATE_REPLY_HISTORY_LIMIT` must match `SESSIONS_SEND_REPLY_HISTORY_LIMIT` in `sessions-send-tool.ts`, but the primary caller always passes `limit` explicitly, so this default is never used on that code path. Someone changing `SESSIONS_SEND_REPLY_HISTORY_LIMIT` might not realize the default here matters (or vice versa). Consider rephrasing to reflect that this is just a fallback for direct callers that omit `limit`.

```suggestion
/**
 * Fallback reply history limit for post-timeout compensation reads when
 * the caller does not supply an explicit {@link compensateAfterWaitTimeout.params.limit}.
 * The primary call site in sessions-send-tool.ts always passes the limit explicitly.
 */
const COMPENSATE_REPLY_HISTORY_LIMIT = 50;
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: src/agents/tools/sessions-send-tool.ts
Line: 371-377

Comment:
**Compensation error dropped in hard-timeout fallback**

When `compensation.accepted === false` (the history read itself threw), `compensation.error` is available but discarded — the returned response only surfaces `result.error` from the original wait. This makes it harder to diagnose why compensation failed (e.g., gateway unavailable during the follow-up read). Consider appending the compensation failure reason to the timeout error message.

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "fix(agents): post-timeout compensation i..." | Re-trigger Greptile

Comment thread src/agents/run-wait.ts
Comment on lines +221 to +225
/**
* Default reply history limit used for post-timeout compensation reads.
* Must match SESSIONS_SEND_REPLY_HISTORY_LIMIT in sessions-send-tool.ts.
*/
const COMPENSATE_REPLY_HISTORY_LIMIT = 50;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Misleading "must match" comment on default constant

The comment says COMPENSATE_REPLY_HISTORY_LIMIT must match SESSIONS_SEND_REPLY_HISTORY_LIMIT in sessions-send-tool.ts, but the primary caller always passes limit explicitly, so this default is never used on that code path. Someone changing SESSIONS_SEND_REPLY_HISTORY_LIMIT might not realize the default here matters (or vice versa). Consider rephrasing to reflect that this is just a fallback for direct callers that omit limit.

Suggested change
/**
* Default reply history limit used for post-timeout compensation reads.
* Must match SESSIONS_SEND_REPLY_HISTORY_LIMIT in sessions-send-tool.ts.
*/
const COMPENSATE_REPLY_HISTORY_LIMIT = 50;
/**
* Fallback reply history limit for post-timeout compensation reads when
* the caller does not supply an explicit {@link compensateAfterWaitTimeout.params.limit}.
* The primary call site in sessions-send-tool.ts always passes the limit explicitly.
*/
const COMPENSATE_REPLY_HISTORY_LIMIT = 50;
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agents/run-wait.ts
Line: 221-225

Comment:
**Misleading "must match" comment on default constant**

The comment says `COMPENSATE_REPLY_HISTORY_LIMIT` must match `SESSIONS_SEND_REPLY_HISTORY_LIMIT` in `sessions-send-tool.ts`, but the primary caller always passes `limit` explicitly, so this default is never used on that code path. Someone changing `SESSIONS_SEND_REPLY_HISTORY_LIMIT` might not realize the default here matters (or vice versa). Consider rephrasing to reflect that this is just a fallback for direct callers that omit `limit`.

```suggestion
/**
 * Fallback reply history limit for post-timeout compensation reads when
 * the caller does not supply an explicit {@link compensateAfterWaitTimeout.params.limit}.
 * The primary call site in sessions-send-tool.ts always passes the limit explicitly.
 */
const COMPENSATE_REPLY_HISTORY_LIMIT = 50;
```

How can I resolve this? If you propose a fix, please make it concise.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6c42105c1e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread src/agents/run-wait.ts
Comment on lines +249 to +253
return {
newReply: hasNewReply ? latestReply.text : undefined,
accepted: true,
delivery: {
status: "accepted",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid marking all timeout compensations as accepted

compensateAfterWaitTimeout treats any successful chat.history read as proof of acceptance, so the timeout branch in sessions_send will return status: "accepted" for nearly every agent.wait timeout unless the history read itself fails. That can misclassify real delivery uncertainty (for example, a run that never actually started or an invalid run id that only times out) as accepted, which hides the timeout signal callers need for retry/diagnostics. Keep the timeout result when compensation cannot produce concrete evidence of acceptance (such as a new post-baseline reply).

Useful? React with 👍 / 👎.

@mjamiv

mjamiv commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

+1. The post-timeout compensation flow addresses a sessions_send multi-minute lag pattern we've also observed in production, where the parent session moves on after the soft cutoff but the underlying spawn keeps running unobserved. The compensation logic looks correct.

@clawsweeper

clawsweeper Bot commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 3, 2026, 2:25 AM ET / 06:25 UTC.

Summary
Adds sessions_send post-timeout compensation by rereading target session history after an agent.wait timeout, with tests for late replies, accepted states, fire-and-forget behavior, delivery metadata, and compensation read failures.

PR surface: Source +79, Tests +210. Total +289 across 4 files.

Reproducibility: yes. Source inspection shows current main returns non-ok waits before reading target history, so a just-after-timeout reply cannot become the inline ok result requested here; I did not run a live timeout reproduction.

Review metrics: 1 noteworthy metric.

  • Timeout Result Contract: 2 outcomes changed, 1 terminal path must remain unchanged. The PR changes caller-visible sessions_send results after the first wait window, so maintainers should review compatibility before merge.

Stored data model
Persistent data-model change detected: serialized state: src/agents/run-wait.test.ts, serialized state: src/agents/tools/sessions-send-tool.ts, serialized state: src/agents/tools/sessions.test.ts, unknown-data-model-change: src/agents/tools/sessions.test.ts, vector/embedding metadata: src/agents/tools/sessions.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #68065
Summary: This PR is the open implementation candidate for the canonical sessions_send first-wait timeout misclassification bug; related items either duplicate the symptom or cover broader A2A reliability concerns.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🦪 silver shellfish
Patch quality: 🦐 gold shrimp
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Add redacted real after-fix proof that exercises an actual sessions_send timeout compensation path.
  • Refresh the branch on current main while preserving pending-error diagnostics, terminal timeout precedence, and delivery metadata.
  • [P2] Move compensation behind terminal/pending-error guards or add regression coverage proving terminal timeouts stay timeout.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR body supplies terminal/live-host output and targeted tests, but it does not show a real post-fix sessions_send timeout being compensated; contributor action is still needed with private details redacted. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P2] The PR is currently conflicting with main and must be refreshed without dropping the newer pending-error, terminal-timeout, isolated-cron, and delivery-metadata branches in sessions_send.
  • [P2] The PR intentionally changes caller-visible sessions_send outcomes after a wait-window timeout from timeout to ok or accepted, which can affect callers that use timeout as a hard-failure or retry signal.
  • [P2] The supplied proof is terminal/live-host output plus tests, but it does not show the changed timeout compensation path executing in a real setup after the fix.
  • [P2] As ordered in the current diff, a terminal timeout can be compensated to ok if a post-baseline assistant reply is found before the terminal guard runs.

Maintainer options:

  1. Refresh And Preserve Timeout Precedence (recommended)
    Rebase or recreate the branch on current main, apply compensation only after pending-error and terminal-timeout cases remain protected, and keep the focused regression coverage.
  2. Accept The New Timeout Contract
    Maintainers can intentionally accept the timeout to ok/accepted contract change after real timeout-compensation proof is attached and reviewed.
  3. Supersede With A Narrower Current-Main PR
    If resolving this dirty branch is riskier than porting it, close it after opening a clean narrow PR for only the compensation behavior and tests.

Next step before merge

  • [P2] Manual review and contributor proof are needed because the PR is conflicting, changes the caller-visible timeout contract, and still needs a real timeout-compensation proof path.

Security
Cleared: The diff is limited to TypeScript agent/session runtime code and tests; it does not change dependencies, CI, scripts, credentials, permissions, or package metadata.

Review findings

  • [P2] Preserve terminal timeout precedence before compensation — src/agents/tools/sessions-send-tool.ts:540
Review details

Best possible solution:

Refresh or supersede this branch with a current-main patch that compensates only non-terminal wait-window timeouts, preserves pending-error and terminal-timeout precedence plus delivery metadata, and includes redacted real after-fix proof for the timeout edge.

Do we have a high-confidence way to reproduce the issue?

Yes. Source inspection shows current main returns non-ok waits before reading target history, so a just-after-timeout reply cannot become the inline ok result requested here; I did not run a live timeout reproduction.

Is this the best way to solve the issue?

No, not as submitted. The fix belongs at the sessions_send and run-wait boundary, but this branch is conflicting, lacks real timeout-compensation proof, and needs terminal-timeout precedence preserved before merge.

Full review comments:

  • [P2] Preserve terminal timeout precedence before compensation — src/agents/tools/sessions-send-tool.ts:540
    This checks compensation.newReply before the existing terminal-timeout guard, so a terminal wait result with endedAt, stopReason, or livenessState can be converted to status: "ok" if the follow-up history read sees a post-baseline assistant message. Keep terminal and pending-error timeout handling ahead of compensation, or explicitly skip compensation for terminal waits.
    Confidence: 0.85

Overall correctness: patch is incorrect
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4e6933c84f18.

Label changes

Label justifications:

  • P1: The PR targets a user-facing cross-session delegation timeout path that can produce false failures and message-delivery confusion.
  • merge-risk: 🚨 compatibility: Existing callers that treat status: "timeout" as a retry or hard-failure signal may receive ok or accepted for the same first-wait timeout scenario.
  • merge-risk: 🚨 message-delivery: The diff changes how sessions_send classifies late replies, accepted delivery, and timeout states after the first wait window.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR body supplies terminal/live-host output and targeted tests, but it does not show a real post-fix sessions_send timeout being compensated; contributor action is still needed with private details redacted. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +79, Tests +210. Total +289 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 81 2 +79
Tests 2 210 0 +210
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 291 2 +289

What I checked:

Likely related people:

  • vincentkoc: Authored the merged soft-timeout delayed-delivery PR that partially overlaps this branch and defines much of the current sessions_send timeout behavior. (role: recent area contributor; confidence: high; commits: b0a6543838ac; files: src/agents/tools/sessions-send-tool.ts, src/agents/tools/sessions-send-tool.a2a.ts, src/agents/openclaw-tools.sessions.test.ts)
  • steipete: Authored the run-wait helper extraction and earlier sessions_send delivery semantics work that this PR extends. (role: run-wait adjacent contributor; confidence: medium; commits: 3dda75894b80, 7b6334b0f41d, a25922a21f86; files: src/agents/run-wait.ts, src/agents/tools/sessions-send-tool.ts, src/agents/run-wait.test.ts)
  • Takhoffman: Authored the stale-reply carryover fix in the same baseline and reply-snapshot area that compensation now relies on. (role: adjacent sessions_send contributor; confidence: medium; commits: 5b4669632a9d; files: src/agents/tools/sessions-send-tool.ts, src/agents/tools/sessions.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels May 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 19, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@openclaw-barnacle openclaw-barnacle Bot added proof: supplied External PR includes structured after-fix real behavior proof. and removed triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 23, 2026
@glfruit

glfruit commented May 23, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Real behavior proof has been added to the PR body with redacted host output, exact commands, observed result, and explicit untested scope.

@clawsweeper

clawsweeper Bot commented May 23, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

sessions_send with a non-zero timeout previously returned status=timeout
whenever the wait window expired, even when the target agent had already
accepted the message and produced a reply after the window closed.

Adds compensateAfterWaitTimeout() that reads the latest assistant reply
snapshot after a timeout and checks whether a new reply materialized
since the pre-send baseline.
@glfruit
glfruit force-pushed the fix/sessions-send-timeout-compensation branch from 6c42105 to 6e43ccc Compare May 23, 2026 04:31
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels May 23, 2026
@clawsweeper

clawsweeper Bot commented May 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 17, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 24, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 1, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

@glfruit thanks for the PR. ClawSweeper is still waiting on real behavior proof before this can move forward.

Useful proof can be a screenshot, short video, terminal output, copied live output, linked artifact, or redacted logs that show the changed behavior after the fix. Please redact private tokens, phone numbers, private endpoints, customer data, and anything else sensitive.

Once proof is added to the PR body or a comment, ClawSweeper or a maintainer can re-check it.

@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 18, 2026
@steipete

Copy link
Copy Markdown
Contributor

Closing per ClawSweeper review verdict mostly_implemented_on_main (decision packet 2026-07-18T11:51:45.598Z). This item was part of the audited close backlog (openclaw/clawsweeper#920) stranded by an apply-lane defect, drained manually after re-verification. If this is wrong, reopen and ClawSweeper will re-review.

@steipete steipete closed this Jul 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: sessions_send misclassifies first agent.wait timeout as hard send failure

3 participants