Skip to content

fix(cron): include untruncated agent output in webhook delivery - #186366

Closed
wangmiao0668000666 wants to merge 1 commit into
openclaw:mainfrom
wangmiao0668000666:fix/cron-webhook-full-output
Closed

wangmiao0668000666 wants to merge 1 commit into
openclaw:mainfrom
wangmiao0668000666:fix/cron-webhook-full-output

Conversation

@wangmiao0668000666

@wangmiao0668000666 wangmiao0668000666 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Related: #185873

Deliberately Related, not Closes: this PR delivers the recommendation's
detached/isolated half; the named-session half — the reporter's original repro lane —
needs the cron-owner follow-up documented under Fix scope, so the issue must stay
open until that lands (same Related-over-Closes call the review asked for on #185766).

What Problem This Solves

Cron webhook deliveries truncate long agent output: the finished-event payload only
carries the bounded summary (2,000 characters + …), so a webhook receiver silently
loses the rest of an otherwise successful report. Issue #185873 reproduces this on a
2,718-character reply; this change adds an additive, webhook-only outputText field
that carries the run's full final agent text for isolated and current-session
agent-turn jobs, with the bounded summary left byte-for-byte unchanged.

ClawSweeper's recommendation on the issue:

Recommendation: Add separate full output: Define an additive webhook-only
final-text field for named-session and detached agent turns, with boundary coverage
for long output, silent replies, and failed runs.

Why: Source confirms the missing full-text payload, but historical implementation and
current documentation define summary-bearing completion events, and a maintainer has
explicitly preserved the summary cap.

This PR implements the recommendation's detached/isolated half with the three
required boundaries (long output, silent replies, failed runs). The named-session half
is disclosed below under Fix scope — it cannot be delivered without editing
src/cron/service/state.ts (occupied by #185848) and adding new capture through the
auto-reply owner.

Why This Change Was Made

  • The full text already exists in the cron owner lane: runIsolatedAgentJob returns
    outputText as "Last non-empty agent text output (not truncated)"
    (src/cron/service/state.ts:245-246), produced by
    src/cron/isolated-agent/run-finalize.ts:390,407. It was simply dropped by the
    explicit field enumeration in the detached branch of
    src/cron/service/timer-execution.ts before the webhook event was assembled in
    src/cron/service/timer-job-runner.ts.
  • The maintainer-preserved summary cap stays exactly where it is:
    pickSummaryFromOutput (src/cron/isolated-agent/helpers.ts:67-74) is untouched, and
    persisted run history, openclaw automations runs, and chat announcements keep the
    bounded summary. The new field is projected only into the primary webhook payload
    (delivery.mode: "webhook"); the persistence codec enumerates fields
    (src/cron/run-event-codec.ts, src/cron/store/run-result.ts), so nothing new is
    stored or fanned out to Gateway clients.
  • Fix classification: behavior-completing (additive field on an existing payload,
    no existing field or cap modified).

User Impact

  • Webhook receivers of isolated/current-session agent-turn automations get the complete
    final report in outputText whenever it is non-empty; the summary they already
    consume is unchanged.
  • Silent/empty runs: the field is absent (no fabricated keys).
  • Failed runs: the error webhook keeps its existing text-free payload (no summary,
    no diagnostics, and now explicitly no outputText).
  • Operators see no change in run history, announcements, Control UI, or config: no new
    option, validator, or persisted state was added.
  • Known boundary (documented in docs/automation/cron-jobs/payloads.md): main-session
    and named-session (session:<key>) agent turns do not carry outputText yet.

Evidence

  • proof base SHA: 364c0d4ebcd400ee4285eb989ed60d2a8b000b93 (the main this patch was
    proven against on 2026-10-27; every red/green leg below ran there)
  • proof candidate SHA: ccdf3ec35a9969c4b4bf2b5cb3baa99990312acf
  • current head SHA: a6a54c9b7… — the identical seven-file change rebuilt directly on
    main 2742aa016… on 2026-10-29 (details under Rebuild). The 2026-10-28
    main merge that 3526945… recorded is gone: that merge left GitHub computing this
    PR's diff against a stale merge base, which surfaced as 905 changed files,
    CONFLICTING, a false security-sensitive-changed, and an unreadable
    This branch has conflicts UI.
  • Red = base without the patch; green = candidate. Both legs use the same commands and
    the same loopback harness (isolated Gateway state under /tmp, zero-credential
    OpenAI-compatible model stub returning a 3,939-character final answer, loopback
    webhook receiver recording raw bodies).

Unit red/green (vitest, one file)

Leg Command Exit Wall time Assertion point
Red (base) node_modules/.bin/vitest run src/cron/service.persists-delivered-status.test.ts --maxWorkers=1 1 91.62s sends untruncated outputText while the summary keeps its bounded shape fails: expected undefined to be 'CRON_FULL_OUTPUT_PROOF_…' (webhook body has no outputText on base)
Green (candidate) same command 0 159.41s 16/16 pass, including all three boundary tests

The two boundary tests (omits outputText when the run produced no non-empty output text, keeps failed-run webhooks free of both summary and outputText) pass on both
legs: they lock the additive contract's absent-key behavior.

Shipped-CLI × live Gateway proof (base red / candidate green)

Both legs: node <dist>/index.js gateway run --port 18999 (real Gateway, isolated
OPENCLAW_STATE_DIR), automations add --webhook http://127.0.0.1:18991/hook --session isolated --model stub/stub-long, automations run <job> --wait, then
automations runs <job> --limit 1 --sort desc --json plus the receiver's raw body log.
Leg script: bash /tmp/oc-cron1-proof/run-leg.sh <red|green> <dist>/index.js.

Leg Command Exit Wall time Webhook body observation
Red (base dist, OpenClaw 2026.10.7 (364c0d4)) bash /tmp/oc-cron1-proof/run-leg.sh red /media/vdc/oc-cron1/dist/index.js 0 226.80s 1 POST; status:"ok", deliveryStatus:"delivered"; no outputText key; summary length 2001, ends with …, summaryEqualsFullText:false (full text 3,939 chars) — issue reproduced
Green (candidate dist, build-info commit: ccdf3ec35…) bash /tmp/oc-cron1-proof/run-leg.sh green2 /media/vdc/oc-cron1/dist/index.js (identical rerun of the first green leg; both exit 0) 0 219.14s 1 POST; status:"ok", deliveryStatus:"delivered"; outputText present with the complete final text (3,938 chars, equals the stub's full answer trimmed of surrounding whitespace); summary still 2,001 chars ending …, byte-identical to the red leg (md5 match)
Green leg output (candidate dist, build-info commit ccdf3ec35)
$ bash /tmp/oc-cron1-proof/run-leg.sh green2 /media/vdc/oc-cron1/dist/index.js
gateway healthy after 5 polls
job=a9fbf1d5-6095-421f-83a1-3b938ab6e4b6
run-exit=0
greenleg wall=219.14s exit=0

webhook body analysis (same script as the red leg):
{"deliveries":1,"status":"ok","deliveryStatus":"delivered","hasOutputTextKey":true,
 "outputTextEqualsTrimmedFullText":true,"summaryLen":2001,"summaryEllipsis":true,
 "summaryMd5MatchesRedLeg":true}
run history (automations runs --json): status ok, summaryLen 2001, hasOutputTextKey false

outputTextEqualsTrimmedFullText: true compares the delivered field against the
stub's complete 3,939-character answer trimmed of surrounding whitespace
(the value is 3,938 characters; the stub text ends in a space from its repeat
unit) — no internal truncation.

Boundary coverage (Recommendation requirement)

  1. Long output — 3,939-character final answer: outputText equals the full text
    with only surrounding whitespace trimmed (3,938 characters; no internal
    truncation), summary remains exactly 2,001 characters ending in …
    (byte-identical between red and green legs: summary_md5_match: true).
  2. Silent replies (unit, loopback HTTP body) — outputText: undefined and
    whitespace-only outputText both omit the key from the JSON body; the existing
    success-with-empty-summary suppression (deliverySuppressionReason: "empty", no
    POST) is unchanged.
  3. Failed runs (unit, loopback HTTP body) — a run with status:"error", a
    summary, and output text delivers the error webhook without summary,
    diagnostics, or outputText; error and status keep their existing shape.

Summary cap untouched (control)

pickSummaryFromOutput (src/cron/isolated-agent/helpers.ts:67-74) and the
2,000-character diagnostics cap (src/cron/run-diagnostics-normalize.ts:12) are not
modified. In the shipped proof the summary string is byte-identical on the red and
green legs (md5 match), and openclaw automations runs --json shows the same
2,001-character summary with no outputText on both legs — the new field is
webhook-only.

Fix scope (disclosure)

  • Covered: detached lanes — sessionTarget: "isolated" and "current" agent turns
    (the runIsolatedAgentJob path), which own the untruncated text end-to-end.
  • Not covered: named-session (main / session:<key>) agent turns. The full text of
    those turns exists only inside the session-event handoff
    (src/auto-reply/reply/session-event-handoff.ts:438,
    summary ??= truncateUtf16Safe(payload.text, 2000)); the settled contract
    SessionEventOutcome (src/auto-reply/reply/session-event-contract.ts:32-52)
    exposes only the bounded summary, runCronSessionTurn
    (src/cron/session-run.ts:295) forwards only that summary, and the scheduler's
    runSessionEvent return type is declared in src/cron/service/state.ts:267-271 —
    a file held by open PR feat(cron): configurable default delivery and failure destinations #185848 and excluded from this change. Covering that half
    requires a state.ts contract change plus new capture through the auto-reply owner;
    it is intentionally left for a follow-up with the cron owner.

Impact surface

File:line Change Risk
src/cron/types.ts:163-168 CronEvent gains optional outputText with ownership comment Type-only; optional field, never persisted or fanned out
src/cron/types.ts:272-273 CronJobExecutionResult gains optional outputText Carries the value to the webhook literal; persistence codecs enumerate fields, so no storage growth
src/cron/service/timer-execution.ts:437-442, 552-555 Detached branch forwards res.outputText (was dropped by explicit enumeration) Isolated lane only; main-session/script/command branches unchanged
src/cron/service/timer-job-runner.ts:170-174 Primary webhook event literal adds a conditional outputText spread Webhook-only surface; empty/whitespace output omits the key
src/gateway/server-cron-notifications.ts:222-228 Error-run webhook payload strips outputText alongside the existing summary/diagnostics strip Failed-run payload shape identical to today
src/cron/service.persists-delivered-status.test.ts:205-285 Three boundary tests + loopback helper (real sendGatewayCronWebhook, real HTTP body) Test-only
docs/automation/cron-jobs/payloads.md:230-241, docs/cli/cron.md:208 Document outputText and its boundaries Docs-only

Isolation from #185848 (occupies src/cron/service/state.ts, src/cron/service/ops-stream.ts,
failure-alerts.ts, run-recovery.ts, src/cron/delivery-*.ts,
src/cron/isolated-agent/run-delivery-trace.ts, src/cron/store/*.ts,
src/gateway/server-cron-completion.ts(+test), src/gateway/server-methods/cron-add.ts,
cron-input-validation.ts, docs/automation/cron-jobs/delivery.md,
src/config/*cron*, src/agents/tools/cron-tool.*): zero files in common.
CronServiceDeps.sendCronWebhook and CronEventContext signatures are unchanged;
the whole change routes through types.ts optional fields plus the webhook event
literal in timer-job-runner.ts. Collision check was run against the current open-PR
file map (gh pr list --state open --limit 200 --json number,files): none of the seven
touched files appear in any open PR.

Test-lines justification

No ceiling bump is needed on the rebuilt head. main now carries measured headroom:
config/test-lines-baseline.txt reads a 6,320,000 ceiling documented as
"Measured bf6a97a1765 plus pending regression additions: 6,312,681 lines. Keep 7,319
lines of bounded headroom for remaining regression work". This PR's +82 test lines
(three behavioral tests plus the loopback helper that drives the real
sendGatewayCronWebhook path, nothing deleted) fit that reserved headroom, so the
branch does not touch the baseline file at all. Verified on the rebuilt head:

$ pnpm check:test-lines-ratchet
Test lines OK: 6312490; ceiling: 6320000; slack: 7510.

The earlier 2026-10-27/28 discussion of raising the ceiling to 6,286,508 and then to
6,300,526 belonged to the pre-rebuild head, where main's measured total sat above its
own ceiling and a bump was the only way through; dropping it removes line churn from
config/test-lines-baseline.txt, which several other open PRs also edit.

Rebuild

The 2026-10-28 Merge main into fix/cron-webhook-full-output commit (3526945…) left
the PR in a state no maintainer can merge: GitHub reported 905 changed files and +23708/−8739
for a seven-file fix, mergeable: CONFLICTING, and security-review-required triggered
by auth/secrets paths that existed only in that phantom diff (gh pr diff refused with
HTTP 406: the diff exceeded the maximum number of files (300)).

The branch was rebuilt as one commit on main 2742aa016… instead of carrying a merge
commit. The result:

Signal Before (3526945…) Rebuilt (a6a54c9b7…)
changed files 905 7
additions/deletions +23708/−8739 +120/−3
mergeable CONFLICTING MERGEABLE
openclaw/security-sensitive-review FAILURE (phantom auth paths) pass — "No sensitive product changes"
labels 42, incl. channel: *, app: *, extensions: *, size: XL, security-review-required 7: docs, gateway, size: S, proof: sufficient, P2, rating: 🦐 gold shrimp, status: ⏳ waiting on maintainer
config/test-lines-baseline.txt touched (conflict) untouched

The rebuild applied the same patch to current main: all seven hunks applied cleanly
(the only conflict was the baseline line, resolved by keeping main's headroom version)
and no source line changed. Local verification on the rebuilt tree: pnpm test src/cron/service.persists-delivered-status.test.ts --maxWorkers=1 → 16/16 pass
(135.7s, Node 24.22.1), oxfmt --check and oxlint clean on the seven files,
git diff --check clean, and the five touched-file ratchets plus the test-lines ratchet
OK against origin/main.

Gates

Check Command Result
oxlint pnpm exec oxlint <5 touched src files> 0 warnings, 0 errors
format node scripts/run-format.mts --check <5 touched src files> clean
docs format node --import ./scripts/tsx.mjs scripts/format-docs.mts --check clean (1405 files)
whitespace git diff --check clean
adjacent tests node_modules/.bin/vitest run src/gateway/server-cron-notifications.test.ts src/gateway/server-cron-primary-webhook.test.ts src/gateway/server.cron.test.ts src/cron/service.trigger-eval.test.ts src/cron/service.session-payload.test.ts --maxWorkers=1 the four non-server.cron files pass 65/65; all failures are in server.cron.test.ts (next row)
adjacent tests (environmental) node_modules/.bin/vitest run src/gateway/server.cron.test.ts --maxWorkers=1 4 timeouts fail identically on base and candidate (45s test timeout on this loaded host; base-code comparison run produces the same 4 failures and same passing set — failure diff zero, not attributable to this change)
ratchets check-line-cap-ratchet, check-max-lines-ratchet, check-test-mock-exports, check-assertion-safety, check-test-timeout-race-ratchet (each --base origin/main --no-merge-base, rerun on the rebuilt head) all OK; no new violations/suppressions
test-lines ratchet pnpm check:test-lines-ratchet on the rebuilt head Test lines OK: 6312490; ceiling: 6320000; slack: 7510 (no baseline change)
typecheck (core) pnpm exec tsc -p tsconfig.core.json --noEmit only pre-existing TS2883 vitest-type portability errors in files this PR does not touch (src/tui/*-test-support.ts, test/helpers/*); none in touched files
typecheck (cron test shard) pnpm exec tsc -p test/tsconfig/tsconfig.core.test.services-cron.json --noEmit same pre-existing TS2883/TS5088 class only, none in touched files
pnpm tsgo unavailable on this host the pinned @tsrs/linux-x64-gnu native binary requires GLIBC ≥ 2.34; host has older glibc (GLIBC_2.34…2.32 not found). Fallback: full tsc runs above + CI

Cleanup

  • All proof state lives under /tmp/oc-cron1-proof/ (state-red/, state-green/,
    JSONL webhook logs); Gateway, model stub, and webhook receiver are terminated by the
    leg script's trap cleanup (explicit kill <pid>, no pkill matching the agent's
    own command line). Loopback ports only (18991/18992/18999).
  • No production Gateway, session, token, or user config was touched; the model stub is
    a loopback OpenAI-compatible server with a synthetic key; the webhook receiver is a
    loopback HTTP sink.

Not tested

  • Named-session (main / session:<key>) webhook output — intentionally out of scope
    (see Fix scope); the issue's original repro used sessionTarget: "session:veille-ia",
    so that lane's webhook payload remains summary-only until the follow-up lands.
  • Full CI suites (left to PR CI); only the touched test file was run locally
    (pnpm test <file> --maxWorkers=1 equivalents above).
  • The completionDestination (announce-mode completion webhook) payload is unchanged:
    its event is built from the persisted run-result projection, which does not carry
    outputText by design.
Maintainer edits
  • Production change is four small hunks: two optional type fields, one previously-dropped field forwarding in the detached branch, one conditional spread in the webhook event literal, and one extra strip in the existing error-payload destructure. The fence-like summary cap code (pickSummaryFromOutput, diagnostics cap) is untouched.
  • The conditional spread is the entire silent-run contract: empty/whitespace output omits the key rather than sending outputText: ""; the boundary tests lock that absent-key behavior.
  • Docs landed in docs/automation/cron-jobs/payloads.md + docs/cli/cron.md because webhooks.md is the inbound Gateway-hooks page (declares itself separate from outbound delivery) and the canonical outbound delivery.md is occupied by feat(cron): configurable default delivery and failure destinations #185848 — move the doc line there once feat(cron): configurable default delivery and failure destinations #185848 lands if preferred.
Maintainer options
  • Land-ready as is: implements the issue's ClawSweeper recommendation for the lane whose owner already produces the untruncated text, with two-head shipped-CLI × live-Gateway proof (summary md5-identical across legs) and all three required boundaries.
  • Wait for the named-session half (single combined PR): blocked structurally — that half needs a state.ts contract change (file occupied by feat(cron): configurable default delivery and failure destinations #185848) plus new capture through the auto-reply owner, which violates the additive/no-new-capture scope this PR is holding to. Recommended instead: land this half, follow up with the cron owner for session:<key>.
  • Alternative — replace summary with the full text: rejected; the maintainer explicitly preserved the 2,000-character cap, and run history / announcements / automations runs depend on the bounded shape (proven unchanged).
  • Scope statement: webhook-only additive key on the primary delivery payload; no config, persistence, RPC, or fan-out change; issue [Bug]: Cron webhook delivery truncates agent output to 2000 characters #185873 stays open for the remaining lane.
Additional instructions: Keep Allow edits from maintainers enabled

Maintainers may push directly to this branch (Allow edits from maintainers stays
enabled), including scope reductions, follow-up split, or landing as-is.

@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: S labels Oct 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Oct 27, 2026
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Adds complete final agent text as outputText in primary webhooks for isolated and current-session automation runs.

Example: An isolated automation produces a 3,938-character final report.

  • Before: The webhook receives only a 2,001-character summary ending in an ellipsis.
  • After: The webhook also receives the complete report in outputText, while summary remains unchanged.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused code and applicable runtime proof support the implementation; unresolved product direction and partial linked-issue coverage cap overall readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The supplied shipped CLI and isolated Gateway trace exercises the changed cron execution and real HTTP webhook path with a synthetic model endpoint, showing complete outputText and unchanged bounded history; GitHub confirms the relevant patches match the reviewed rebuild.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Partial
User problem: Webhook consumers cannot obtain the complete final report when the event carries only a bounded summary.
Reason: The additive field offers clear integration value, but extends an intentional public contract and leaves the linked report's named-session lane unresolved.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep this PR open: the focused implementation has credible runtime proof and no identified correctness defects, but the additive webhook contract still needs an owner decision.

Priority: P2
Reviewed head: a6a54c9b7d7a096d7e0379e9ec7b67970341f485
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should primary automation webhooks gain outputText for isolated and current-session runs now, with named-session support left to a follow-up?
  • Recommendation: Approve the additive detached-run field: Accept this focused partial implementation and keep [Bug]: Cron webhook delivery truncates agent output to 2000 characters #185873 open for named-session support.
  • Why: The existing documented contract promises finished events with bounded summaries; the discussion recommends an extension but contains no owner decision approving it.

Before merge

  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

None.

Agent review details

How this fits together

The cron runner receives agent results, delivers primary webhooks through the Gateway transport, and separately projects bounded results into history and client events.

flowchart TD
  A[Scheduled agent turn] --> B[Isolated runner]
  B --> C[Cron execution result]
  C --> D[Primary webhook event]
  D --> E[Gateway HTTP transport]
  C --> F[History and client projection]
Loading

Technical review

Best possible solution:

Preserve bounded summaries and existing delivery ownership while exposing approved full output through the smallest webhook projection.

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

Current-main source drops the existing detached outputText before webhook construction, consistent with the contributor's supplied red CLI/Gateway trace; no target code was executed during this review.

Is this the best way to solve the issue?

Forwarding the existing full-text value through the existing webhook owner is the smallest implementation for the declared scope, and the three added tests protect distinct transport-visible boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 445e5666f59f.

Provenance checked

  • Primary webhook delivery ownership keeps the original intent (fix(cron): deliver and record primary webhook outcomes #117783: Make primary webhook delivery part of the tracked run so delivery outcomes, cancellation, and timeout handling remain authoritative.)
  • Failed webhook output stripping keeps the original intent (1d17263: Exclude raw failed-run summaries and diagnostics, including authentication prompts and secret-bearing output, from webhook payloads.)
  • Detached execution projection keeps the original intent (refactor: simplify agent runtime preparation and dispatch #152399: Simplify runtime preparation and dispatch without intentional behavior changes; this PR explains its additive forwarding while preserving the existing summary.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Verified introduced change: The pinned merge-base-to-head diff forwards the existing outputText through detached execution and adds it only to the primary webhook event. (src/cron/service/timer-execution.ts:555, a6a54c9b7d7a)
  • Current main still lacks full webhook output: Fetched main explicitly projects summary without outputText in both detached execution and the primary webhook event. (src/cron/service/timer-job-runner.ts:170, 445e5666f59f)
  • Supplied shipped-entry-point proof: The full PR body records isolated CLI/Gateway red and green runs with a synthetic model endpoint and real HTTP receiver: green delivers complete outputText, preserves the summary bytes, and leaves outputText absent from run history. (ccdf3ec35a99)
  • Proof remains applicable after rebuild: GitHub's original proof-commit patches match the current seven-file change; the earlier test-lines baseline modification is absent from the reviewed head. (ccdf3ec35a99)
  • Storage and event boundaries remain bounded: cronRunResultEvent and cronRunLogEntryFromEvent enumerate their fields and omit outputText, verifying that this addition changes no persisted format or client event projection. (src/cron/store/run-result.ts:15, a6a54c9b7d7a)
  • Failed-output exclusion has historical intent: The original commit introduced failed-webhook summary and diagnostic stripping, with tests excluding authentication prompts and secret-bearing output; this PR extends that exclusion to outputText. (src/gateway/server-cron-notifications.ts:228, 1d172637d6dd)

Likely related people:

  • Peter Steinberger: Raw commit c91979c adds src/cron/service/timer-job-runner.ts:121 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c91979c7d38c; files: src/cron/service/timer-job-runner.ts)
  • joshavant: Raw commit 1d17263 adds src/gateway/server-cron-notifications.ts:108 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1d172637d6dd; files: src/gateway/server-cron-notifications.ts)

PR surface

Source +22, Tests +82, Docs +13. Total +117 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 4 24 2 +22
Tests 1 82 0 +82
Docs 2 14 1 +13
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 120 3 +117

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Complete reports would become available to affected webhook integrations, while execution succeeds and the original text remains available in session records.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-27T22:46:49.479Z sha ccdf3ec35a9969c4b4bf2b5cb3baa99990312acf :: blocked before merge. :: none
  • reviewed 2026-10-29T00:15:00.179Z sha a6a54c9 :: blocked before merge. :: none

Reviewed October 30, 2026, 12:53 AM ET / 04:53 UTC (Revision 3).

@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 28, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Oct 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: slack Channel integration: slack channel: telegram Channel integration: telegram app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: fal extensions: qa-lab extensions: memory-wiki plugin: google-meet labels Oct 28, 2026
@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@wangmiao0668000666

Copy link
Copy Markdown
Contributor Author

Closing this as a stop-loss, not a rejection of the fix.

Status at close

  • Proof: proof: sufficient — ClawSweeper's own review confirmed the fix and its three boundary tests (long output, silent replies, failed runs).
  • Blocking label: status: ⏳ waiting on maintainer, unchanged for 8 days (opened 2026-10-27, last commit 2026-10-28).
  • Two @clawsweeper re-review requests (10-29, 10-30) came back with the same conclusion: the blocker is a product/contract decision, not missing evidence.

What the blocker actually is

This PR is an additive extension of a public webhook payload contract — a new outputText field on the finished-run event. That needs a cron-owner decision on the payload shape, and the issue's own ClawSweeper recommendation notes a maintainer has explicitly preserved the summary cap. Proof cannot resolve that; only the owner can.

Tracking

The bug stays tracked in #185873, which remains open. Anyone picking it up should start from the recommendation there:

Add separate full output: define an additive webhook-only final-text field for named-session and detached agent turns, with boundary coverage for long output, silent replies, and failed runs.

This branch's diff (detached/isolated half only; the named-session half was disclosed as out of scope under Fix scope) is a usable reference for that work if the owner wants outputText in this shape.

Happy to reopen or re-submit if a cron owner wants this field. Thanks to ClawSweeper for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant