Skip to content

fix(telegram): keep reply text visible with pending automation context - #166869

Merged
roboclaw-bot merged 1 commit into
openclaw:mainfrom
VACInc:fix/telegram-reply-context-boundary
Oct 12, 2026
Merged

roboclaw-bot merged 1 commit into
openclaw:mainfrom
VACInc:fix/telegram-reply-context-boundary

Conversation

@VACInc

@VACInc VACInc commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Summary

High Level TLDR

Keep Telegram reply text attached to its current-message marker when scheduled automation events or other runtime context arrive in the same turn. A short reply such as Tldr must remain the user's request, rather than looking like the end of an automation notice.

What Problem This Solves

Fixes: a Telegram reply can look empty to CLI-backed agents when OpenClaw inserts additional context between the reply header and the user's text.

User Impact

Users can reply to a specific message while unrelated automation context is pending without their words being rendered as part of that context. No configuration or migration is required.

Why This Change Was Made

The shared context-addition owner now preserves the trailing header for contexts that explicitly use an inline space joiner, in both full and resumed prompts. Structured runtime fragments retain their existing order and provenance. Inline delivery directives are placed before inbound context so they cannot interrupt the same header/body boundary. Ordinary paragraph-joined additions retain their existing order.

Related: #151099 addresses the separate embedded-runtime carrier projection and explicitly preserves CLI rendering. This PR fixes the CLI inline rendering when additional context is present.

Root Cause

A live Telegram forum-topic turn, its persisted user message, and the native CLI transcript were inspected. The reply target and user text both arrived, but the submitted prompt had this shape (synthetic text and identifiers):

Current message:
[Replying to: "The restore finished."]
#42:

System: Scheduled digest. Tldr

resolveInboundUserContextPromptJoiner selects a space so the body follows the reply header. buildReplyPromptEnvelope then adds system events to that context, and buildCurrentInboundPrompt joins the user body after the new final line. The model consequently treated the current message as empty. The same composition error occurs with message-tool delivery instructions or later runtime additions.

Verification

Real behavior proof

The regression exercises the production chain finalizeInboundContext → buildInboundUserContextPrefix → buildReplyPromptEnvelope → buildCurrentInboundPrompt, the renderer used by CLI preparation. Synthetic fixtures contain no private transcript data.

Before the production fix: 4 failed, 36 passed across the two changed test files. Failures cover a scheduled event, a delivery instruction, both together, and a late addition to full/resumed inline context. The ordinary reply and paragraph-joined control cases pass on the baseline.

After the fix, the rendered prompt keeps:

System: Scheduled digest.

Current message:
[Replying to: "The restore finished."]
#42: Tldr

Evidence

  • Live before/after verification (October 12): Real Telegram Test Server → OpenClaw → Claude CLI → Telegram passed on parent d401baee6154aec607cc71466c8ed7898b8f0169 and this exact head 04c41aafc24fa9b34dec3acb58fa2304c08c834c. Before, Tldr was appended to pending automation text and the bot summarized the unrelated digest. After, the reply marker and Tldr remained together and the bot answered “Restore complete.” Inspected before/after videos and source-bound proof. These are real live terminal captures, not Telegram client UI recordings.

  • Exact-head CI: CI run 38134313167 and the required openclaw/ci-gate passed for 04c41aafc24fa9b34dec3acb58fa2304c08c834c.

  • Supported Node 24.19.0: 124 passed across five files (prompt prelude, runtime-context prompt, inbound metadata, CLI durable-context preparation, and MCP context); 98.92 s total wrapper wall time.

  • Per-file cost using pnpm test <file> --maxWorkers=1: prompt-prelude.test.ts 10.71 s wall (22 cases); runtime-context-prompt.test.ts 1.73 s wall (18 cases). Measured on supported Node 24.19.0. CI seconds pending.

  • node scripts/check-changed.mjs: passed (format, core production types, all 27 core-test type groups, lint, export/cycle checks, and repository guards). Final inline-only refinement also passed a fresh core typecheck, the agents-other/messaging type groups, all 40 tests in the changed suites, and the existing addressed message-tool dispatch test (1 selected case passed).

  • Local correctness and readiness review completed by the authoring agent; no delegated reviewer was launched under the operator's explicit no-delegation instruction.

  • Formatter microbenchmark on Linux, Node 24.19.0: 10,000 warmup calls, nine alternating samples of 100,000 append/render pairs using the same synthetic context and alternating full/resumed projection. Median baseline 175.8 ms, candidate 180.0 ms. This measures prompt assembly only, not model or Telegram latency.

What was not tested

The October 12 live proof covers one quoted-reply sequence per revision with pending automation context; it is not a statistical model-reliability claim or native Telegram UI capture. Delivery-directive combinations and late full/resumed additions are covered by the focused regression tests rather than separate live roundtrips. The running Team Gateway was not modified or restarted. Initial local worktree checks exposed missing package links and a shared-dependency typecheck guard; local validation used a private frozen-lockfile install with supported Node 24.19.0. No dependency or lockfile change is included.

Repeat the formatter microbenchmark at this PR head

Run with Node 24.19.0 from the checkout. This loads the unchanged production functions from the parent and the candidate, removing TypeScript annotations only.

node --input-type=module <<'JS'
import { readFileSync } from 'node:fs';
import { execFileSync } from 'node:child_process';
import { stripTypeScriptTypes } from 'node:module';
const path='src/agents/embedded-agent-runner/run/runtime-context-prompt.ts';
const baseline=execFileSync('git',['show','HEAD^:'+path],{encoding:'utf8'});
const candidate=readFileSync(path,'utf8');
async function load(source){
 const slice=source.slice(source.indexOf('export function appendCurrentInboundContext('),source.indexOf('/** Bind context'));
 return import('data:text/javascript;base64,'+Buffer.from(stripTypeScriptTypes(slice)).toString('base64'));
}
const versions=[await load(baseline),await load(candidate)];
const context={text:'Conversation context\n'+ 'history '.repeat(1000)+'\nCurrent message:\n#42:',resumableText:'Current message:\n#42:',promptJoiner:' '};
const fragments=[{kind:'conversation-data',text:'System: '+ 'digest '.repeat(150)}];
let checksum=0;
function run(v,n){const start=performance.now();for(let i=0;i<n;i++){const c=v.appendCurrentInboundContext(context,fragments);checksum+=v.buildCurrentInboundPrompt({context:c,prompt:'Tldr',preferResumableText:(i&1)===1}).length;}return performance.now()-start;}
for(const v of versions)run(v,10000);
const samples=[[],[]];
for(let i=0;i<9;i++)for(const j of i%2?[1,0]:[0,1])samples[j].push(run(versions[j],100000));
for(let j=0;j<2;j++)console.log(j?'candidate':'baseline',JSON.stringify(samples[j]),'median_ms',samples[j].toSorted((a,b)=>a-b)[4]);
console.log('checksum',checksum,'node',process.version);
JS

@clawsweeper

clawsweeper Bot commented Oct 8, 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 agents Agent runtime and tooling size: S labels Oct 8, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR keeps Telegram reply text beside its current-message marker when automation or delivery context is added.

Example: Reply to “The restore finished.” with “Tldr” while a scheduled digest is pending.

  • Before: The prompt appends “Tldr” to the digest, and the bot summarizes that unrelated digest.
  • After: The prompt preserves “Telegram: add reply-to context + native reply send #42: Tldr” beside the quoted reply, and the reported live result is “Restore complete.”

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level repair with supplied live boundary observations, meaningful regression coverage, green exact-head gates, and no open findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The supplied collaborator report records exact-parent/head Telegram Test Server → OpenClaw → real Claude CLI → Telegram observations for a quoted “Tldr” reply with pending automation, including corrected CLI input and “Restore complete.” after the fix. Independent video playback was unavailable because local ffprobe preparation failed and browser retrieval returned Cache miss; no video inspection is claimed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A short Telegram quoted reply can be interpreted as part of unrelated pending automation instead of the user's request.
Reason: The maintainer-authored PR repairs a demonstrated prompt-boundary defect with a small change at existing owners.

Merge readiness

✅ Ready for maintainer review

This PR provides a focused repair for an ordering defect still present on current main. No actionable correctness or security findings remain.

Priority: P2
Reviewed head: 04c41aafc24fa9b34dec3acb58fa2304c08c834c

Before merge

None.

Findings

None.

Agent review details

How this fits together

Shared prompt assembly combines inbound conversation metadata, runtime additions, and user text before CLI rendering; structured embedded-runtime fragments and stored user text retain their existing contracts.

flowchart LR
  A[Telegram quoted reply] --> B[Inbound context]
  B --> C[Reply prompt envelope]
  D[Pending runtime additions] --> C
  C --> E[CLI prompt renderer]
  E --> F[Claude CLI]
  F --> G[Telegram answer]
Loading

Technical review

Best possible solution:

Land the shared ordering repair while retaining separate user text, typed runtime fragments, and existing paragraph rendering.

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

Current-main source exposes the failing composition directly: appended context separates the quoted reply header from the space-joined user body; supplied parent/head live observations corroborate it, and no target code was executed during this review.

Is this the best way to solve the issue?

The repair belongs in the existing shared append owner and envelope assembly, where it fixes all inspected inline callers without introducing another prompt policy or changing embedded fragment semantics.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 53dc08144966.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned production repair: The introduced diff moves additions before space-joined context in both full and resumed projections, and places delivery directives before the inline inbound header. Fragment ordering and provenance remain unchanged. (src/agents/embedded-agent-runner/run/runtime-context-prompt.ts:57, 04c41aafc24f)
  • Current main still needs the repair: Current main appends additional context after the inline reply header and subsequently space-joins the user body to that addition. (src/agents/embedded-agent-runner/run/runtime-context-prompt.ts:54, 53dc08144966)
  • Production composition regressions: The added tests exercise inbound finalization, prefix construction, envelope assembly, and final rendering for automation, delivery directives, and their combination; separate cases protect late full/resumed additions and paragraph ordering. The body reports baseline failures and passing head results. (src/auto-reply/reply/prompt-prelude.test.ts:43, 04c41aafc24f)
  • Supplied live boundary observations: The collaborator's source-bound report records the same real Telegram Test Server quoted-reply sequence through OpenClaw and Claude CLI on parent and head, including actual prompt ordering and the returned answers: fix(telegram): keep reply text visible with pending automation context #166869 (comment) . This satisfies the previous review's requested scenario. (04c41aafc24f)
  • Independent media inspection limitation: Both downloaded videos lack prepared stills because the manifest reports “ffprobe failed: spawnSync ffprobe ENOENT”; browser retrieval also returned “Cache miss”. The downloaded screenshot was inspected and shows ordinary quoted replies without the pending-automation scenario, so it was excluded from that proof. These are review-host limitations, not contributor defects.
  • Exact-head CI and merge state: The required openclaw/ci-gate check and status succeeded for the reviewed head; live GitHub metadata reports the PR open, non-draft, and cleanly mergeable. (04c41aafc24f)

Likely related people:

  • Peter Steinberger: Raw commit 2d0d99f adds src/agents/embedded-agent-runner/run/runtime-context-prompt.ts:31 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2d0d99fe08d8; files: src/agents/embedded-agent-runner/run/runtime-context-prompt.ts)
  • Ayaan Zaidi: Raw commit 4e6933c adds src/auto-reply/reply/prompt-prelude.ts:161 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4e6933c84f18; files: src/auto-reply/reply/prompt-prelude.ts)

PR surface

Source +9, Tests +85. Total +94 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 12 3 +9
Tests 2 86 1 +85
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 98 4 +94

Review metrics

Metric Value Why it matters
Production versus regression coverage Production +12/-3 lines; tests +86/-1 lines. The small ordering repair is supported by a production-composition matrix and distinct full/resumed projection coverage.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: A conditional Telegram reply-association defect affects CLI-backed turns with pending context; the repair is focused and does not change installation or configuration.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: telegram-e2e: This PR needs Telegram Test Server proof with the repository E2E skill. The change affects Telegram quoted-reply interpretation and answers; the supplied Test Server scenario covers that behavior.

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 (3 earlier review cycles)
  • reviewed 2026-10-08T01:39:33.140Z sha e6f80f620539aef1d192bc9eefbe97c21e8aea84 :: needs changes before merge. :: none
  • reviewed 2026-10-08T01:59:42.879Z sha e6f80f620539aef1d192bc9eefbe97c21e8aea84 :: needs changes before merge. :: none
  • reviewed 2026-10-11T11:11:51.721Z sha 04c41aa :: needs maintainer review before merge. :: none

Reviewed October 12, 2026, 5:17 PM ET / 21:17 UTC (Revision 4).

@VACInc
VACInc force-pushed the fix/telegram-reply-context-boundary branch from e6f80f6 to 04c41aa Compare October 11, 2026 11:05
@VACInc

VACInc commented Oct 11, 2026

Copy link
Copy Markdown
Member Author

Rebased onto d401baee6154aec607cc71466c8ed7898b8f0169; new head 04c41aafc24fa9b34dec3acb58fa2304c08c834c. The conflict came from an adjacent test removed upstream in #167903. Kept that removal and all reply-boundary regressions; the production patch is unchanged.

Focused validation on Node 24.19.0: 31 tests passed across prompt-prelude.test.ts and runtime-context-prompt.test.ts (38.60 s wrapper wall time); core production types, agents-other/messaging test types, targeted lint, four-file formatting, and git diff --check passed. No fresh full-suite, build, or live Telegram proof.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 11, 2026
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Live before/after verification

Verified the requested Telegram quoted-reply regression on unchanged PR head 04c41aafc24fa9b34dec3acb58fa2304c08c834c, compared with its parent d401baee6154aec607cc71466c8ed7898b8f0169.

The same real sequence ran on both revisions: a leased Telegram Test Server user asked the bot to say “The restore finished.”; a pending synthetic automation event was queued in that conversation without waking another turn; the user replied to the observed bot message with Tldr. The real Claude CLI received the production-rendered prompt and returned its answer through Telegram. No model/provider mock or production-code patch was used.

Observation Before After
Actual CLI prompt Reply marker separated from Tldr; user text appended to the digest Digest before current-message block; #MESSAGE_ID: Tldr stays together
Bot progress Working Working
Bot answer “Got it. Design review → Friday, release checklist has 2 pending items.” “Restore complete.”

Both live cases passed their reply-association, prompt-ordering, return-message and cleanup checks. Successful Actions run, harness revision ca9e48465954fd25a3456855e9630892504cf6a1. The test-only overlay orders the event command before the reply and targets the actually observed bot response; production files were unchanged in each pinned checkout.

Videos: before first, after second. Each is an inspected 42-second live terminal recording, not a reconstructed Telegram UI. Startup/trailing idle were trimmed; dedicated QA account metadata is visibly redacted. The relevant prompt, user text and bot responses are retained. This is one real sequence per revision, not a statistical claim about all model outputs.

The temporary session-only branch, test runtimes, credential scratch and transfer artifacts were removed. No shared workflow or running Team Gateway was changed.

pr166869-before.mp4
pr166869-after.mp4

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

Live before/after Telegram Test Server + real Claude CLI proof is now attached and linked from the updated PR body: #166869 (comment) . Head remains 04c41aafc24fa9b34dec3acb58fa2304c08c834c; required CI is green. Please re-review the current evidence and report any remaining actionable concerns. Review only; native maintainer landing is being handled separately.

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 12, 2026
@roboclaw-bot
roboclaw-bot merged commit a3bbfaa into openclaw:main Oct 12, 2026
135 checks passed
@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
…6869)

Keep runtime additions and delivery instructions before inline current-message context so quoted Telegram reply text stays beside its message marker. Preserve existing paragraph joins and structured runtime fragments.

Verified with focused regression tests and a live Telegram Test Server → OpenClaw → Claude CLI → Telegram before/after run on the exact parent and reviewed head.

Co-authored-by: VACInc <[email protected]>
amittell added a commit to amittell/openclaw that referenced this pull request Oct 28, 2026
…logging and tests: 41 conflict files

Resolved against base v2026.10.8; each import kept only where the merged file uses it.

Ported onto beta.4's reshaped code (the fork change kept, beta.4's mechanism taken):
- heartbeat awareness dedupe: beta.4 (openclaw#169622) dropped the pre-send lifecycle recheck
  (`latest`); the dedupe compares the prepare-time worker read, the post-send re-read is
  readSessionEntryReadOnlyInWorker with readConsistency "latest".
- prompt prelude: openclaw#166869's space-joiner ordering applies to `text`; the fork's
  version-3 Telegram carrier keeps the paragraph order (no joiner completes it).
- directive acks: beta.4 removed the thinking-remap ack; the fork's queue-ack helper stays.
- secret redaction: beta.4 (openclaw#169063) removed the registry snapshot scope; the fork's
  getLongestRegisteredSecretLength loses its scoped branch and its scoped test case.
- committed-turn entry read (pending inputs): beta.4 replaced PendingInputScope.incognito
  with session-actor storage; the read goes through readSessionEntryReadOnlyInWorker.
- persisted install records: beta.4 (openclaw#169714) made the reader async; install-persistence
  and the CLI test mocks use readPersistedInstalledPluginIndexInstallRecordsAsync.
- sessions.patch and cron validation mock modules (fork line-cap extractions) take
  beta.4's readAcpSessionMetaForEntryAsync, cron-session-reader and inference-binding mocks.
- test cases beta.4 removed as low-value (openclaw#172040) stay removed; the fork's own cases stay.

Native in beta.4, fork side dropped: question-answer custody in prepared-assistant
validation (openclaw#169306), the realtime-voice turn exception, the cron host test helper.
amittell added a commit to amittell/openclaw that referenced this pull request Oct 28, 2026
…tart-recovery conflicts

Takes beta.4 where it carries a fork change natively. Elsewhere it keeps the
fork's delta on top of beta.4's code.

- Native on beta.4, fork copies dropped:
  - openclaw#169306 (e353566): session-manager-persistence.ts and
    session-manager-metadata.worker.ts are byte-identical to beta.4. The
    fork's session-manager-append-custody.ts pull-forward is deleted; it has
    no importers left.
  - openclaw#158161 (177b090): classify.legacy-provider-predicates.test.ts is
    byte-identical to beta.4, whose corpus carries the same three TGI rows.
  - runtime-read.ts is beta.4's re-export. The fork's skipInheritance option
    moves to runtime-read.types.ts, where beta.4 now defines
    LoadAuthProfileStoreOptions (store.ts and models auth clean pass it).
- Fork deltas kept on beta.4's code:
  - auth-controller.ts: openclaw#93952's withAuthDeadline around beta.4's
    forceRefresh argument object; the cooldown-probe extraction and its
    re-export stay (it inlines beta.4's file-local resolveUnavailableAuthReason).
  - auth-controller.test-support.ts: beta.4's runtime-provider change, which
    its SIWC tests need, moves into the fork's split-out harness.
  - failover tests: beta.4's case moves, plus the fork's Anthropic long-context
    429 overflow test and its classified-reason 5xx copy test.
  - assistant-failure.ts: union of imports (recordModelFallbackStop and
    isPreDispatchToolCallRejectionMessage).
  - session-store.ts: the fork's per-attempt contextSnapshot ahead of beta.4's
    buildMainSessionRecoveryAfterAgentRunPatch, so recovery sees its totals.
  - session-manager-entries.ts: the fork's checkpoint-handle formatter with
    beta.4's createEntry timestamp.
  - restart recovery (dispatch, delivery, tests): beta.4's
    prepareRestartRecoveryDeliveryCurrent and isCurrent structure; the fork's
    restart-cause wording passes cause to announceRestartRecoveryResumption.
  - oauth-common-mocks.test-support.ts: beta.4's importOriginal spread, keeping
    the fork's syncEnvBackedTokenCredentials identity override.
  - docs/concepts/oauth.md: the fork's dead-grant paragraph in beta.4's wording.
- Tests that follow upstream's openclaw#170532 pruning: 3 of the 5 tests in the
  fork's transcript-file-state.compaction-checkpoint.test.ts are removed,
  because upstream deleted the same tests; the 2 that remain keep the
  checkpoint-handle pins.
- runtime-context-prompt.ts: the clean merge ran the fork's carrierText
  through openclaw#166869's joiner-aware append, which puts late context first for a
  space joiner. The carrier is rendered without a joiner (prompt-prelude.ts),
  so it gets its own paragraph-order append. The existing joiner test now
  pins carrierText for both joiners.

Not built here (no builds on this host); tsgo and tests run on the M4.
amittell added a commit to amittell/openclaw that referenced this pull request Oct 29, 2026
…2 tests)

From the qualification fast gate at 81b7e06:

- main-session-restart-recovery.test.ts (3): beta.4's case records no restart
  cause, so the fork's resume prompt claims no restart (7bb739a). The test
  now pins the fork's no-cause wording instead of upstream's shared note.
- main-session-restart-recovery.restart-cause.test.ts (3, fork): beta.4's
  recovery reads the prepared runtime config. The suite sets and clears the
  snapshot like main-session-restart-recovery.test.ts does.
- main-session-restart-recovery-marking.test.ts (1, fork case): awaits
  captureRuntimeConfigAsyncReader()() like its beta.4 siblings.
- embedded-agent-subscribe.tools.media.test.ts (2, fork): transcript
  grounding reads through the history worker, which needs the snapshot.
- auth-profiles.env-token-sync.test.ts (2, fork): beta.4 admits credential
  writes only off worker threads, so the file joins
  vitest.database-worker-core-paths.mjs beside auth-profiles.readonly-sync.
- attempt-prompt-context.test.ts (1): the v3 carrier expectations follow
  openclaw#166869 (a space-joined text gets the system event first, so the header
  stays last) while the carrier keeps paragraph order.

Tests only; no product code changes. Not run here (no tests on this host).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

2 participants