Skip to content

fix(agents): keep provider history append-only across runs - #197874

Merged
obviyus merged 4 commits into
mainfrom
fix/prompt-cache-append-only-history
Nov 13, 2026
Merged

obviyus merged 4 commits into
mainfrom
fix/prompt-cache-append-only-history

Conversation

@obviyus

@obviyus obviyus commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

The Anthropic prompt cache of a long session broke at the first request of a new run, even with no compaction and no config change. The existing [prompt-cache] detector reported:

[prompt-cache] message N (assistant) differs from the previous request; history must be append-only;
changed fields: content.length, content[k].type, content[k].id, content[k].name, content[k].arguments

and sometimes content[0].thinking/thinkingSignature or envelope.api/provider/model. On a production gateway over 2 days there were 23 of these. Each re-wrote the whole conversation (up to ~500k tokens) at cache-write price.

I matched every event to its session transcript. Each one comes from one of two writes that put different bytes into the transcript than the live run sent to the provider.

Root cause

  1. Unknown tool calls were dropped at persistence (~16 of 23 events). src/agents/session-tool-result-guard.ts (guardedAppend) sanitized each assistant message with the run's tool allowlist before persisting it. The model sometimes calls a tool name that does not exist, often in parallel with a valid call. The live run answers that call (Tool X not found) and keeps it in provider history. But at append time the result does not exist yet, so the guard treated the call as incomplete and removed it from the transcript. The next run replayed the transcript: that assistant message lost a block (content.length, content[k].*), and the orphaned result was dropped. Replay sanitization (sanitizeToolCallInputs) already keeps completed calls and applies the allowlist only to calls without results ("Completed replay facts survive capability removal"). The append-time filter predates that rule and contradicted it.

  2. Publication receipts were inserted mid-history (~7 of 23 events). src/gateway/github-publication-transcript.ts appends the gateway-publication receipt (a model-visible assistant row) when the publication finishes. That often happens while a run is active, for example between a tool call and its tool result. The live run never sees the row. The next run replays it in the middle of history, so every later message shifts (envelope.api/provider/model changes, and the "thinking changed" variants are the same shift). Background automation results already handle this case: during active work they are written as pending rows, and the live run's next request places them at the end (openclaw.background-result-placement). Receipts did not use that path.

Fix

  • The guard no longer filters persisted tool calls by allowlist. The live run and the transcript now hold the same assistant message. Replay still drops unknown calls that never got a result. Format checks (missing id/input, invalid names, partial JSON) are unchanged. The now-unused allowedToolNames guard option and its plumbing (including a perf probe script) are removed.
  • A publication receipt that lands while the session has active work is written as the existing pending background-result row (automation-result, excludeFromContext, openclawModelPlacement: "pending"). It keeps its github-publication:<requestId> response id. The placement predicates do not change, and this adds no new stored shape: current and older versions already place these rows. A receipt written while the session is idle is unchanged.

Proof

Real route, before vs after (cause 1). Isolated throwaway gateway (scratch state, no channels), real Anthropic-compatible provider route, cacheRetention: short. A logging proxy recorded the provider's own cache_read_input_tokens / cache_creation_input_tokens. Opus does not call an undefined tool on request; production calls are spontaneous. So the proxy renamed the second of two parallel exec calls in the provider's first tool response to an unknown name (mesh_process, a name seen in production). Every request after that, and all cache numbers, are the real provider's.

request before: read / write after: read / write
turn 1 11,640 / 20,813 11,640 / 20,813
turn 1, tool results 32,453 / 240 32,453 / 240
turn 2 12,260 / 20,759 32,693 / 493
turn 3 33,019 / 406 33,186 / 408
  • Before: the gateway logged message 2 (assistant) differs from the previous request … changed fields: content.length, content[1].type, content[1].id, content[1].name, content[1].arguments and cache read dropped 32453 -> 12260. This is the production signature.
  • After: no [prompt-cache] warnings. Session cache writes fell from 42.2k to 22.0k. In production, each such event re-wrote the full conversation.

Cause 2 has no isolated trigger: a receipt needs an accepted GitHub publication, and the throwaway gateway refuses before acceptance. It is covered by an integration test through the real session manager and SQLite transcript (below). The production mapping above is the field evidence.

Focused tests:

  • attempt-session-tool-call-persistence.test.ts (new; fails on the base, passes here): through the production prepareEmbeddedAttemptSessionManager path, a parallel call to an unknown tool and its results persist exactly as the live run sent them.
  • background-session-result.test.ts (fails on the base, passes here): a publication receipt that lands during a tool call appears after the tool result in the live request, and the cold replay prefix equals that request.
  • agent-session-code-mode-source.test.ts: updated. The answered unavailable call now stays in the persisted message, as the provider saw it.

Not covered (follow-up)

systemPromptSuffix changes on inter-session turns (sessions_send, subagent settle) in Session routing / Tooling. suggest_task is offered only when the triggering client is a Control UI operator client with the task-suggestions capability (chat-send-request.ts, agent-run-execution-phase.ts). Inter-session, cron and wake turns have no such client, so the tool and its Session routing bullet appear and disappear by trigger. This PR does not change it.

Two transcript writes changed earlier messages of a session between runs, so the next run's first request broke the Anthropic prompt cache at that message.

- The session tool-result guard dropped tool calls with unknown names when it persisted an assistant message. The live run had already answered those calls ("Tool X not found") and kept them in provider history; the next run replayed the transcript without them. Replay already keeps completed calls and applies the tool allowlist only to calls without results, so the guard no longer filters by allowlist.
- GitHub publication receipts were appended to the transcript while a run was active, between that run's tool call and tool result. The next run replayed the receipt in the middle of history. A receipt that lands during active work now uses the existing pending background-result placement, so the run's next request appends it at the end.

Real route (cacheRetention short, isolated gateway): after a parallel call to an unknown tool, the next user turn read 12,260 and re-wrote 20,759 tokens before; after, it read 32,693 and wrote 493, with no history-rewrite warning.

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 12, 2026
@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Preserve unknown tool calls during persistence and place active-run GitHub publication receipts at the next model-request boundary.

Example: An assistant calls read and mesh_process in parallel, and mesh_process returns a tool-not-found error.

  • Before: Persistence drops mesh_process, so the next run changes the assistant history and rebuilds the provider cache.
  • After: The transcript retains both calls and their results, preserving the previously sent prefix.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The focused implementation and useful regressions support correctness, but runtime proof covers only one of the two changed producers.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Continuing a long conversation can rewrite previously sent history and incur another full provider cache write.
Reason: The collaborator-authored direction restores the documented append-only contract using existing owners and no new setting.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs two source-confirmed history rewrites still present on main, and no definite introduced code defect was found.

Priority: P2
Reviewed head: 88155e3d3d0d123993e3c33993f072c70552e787

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply an after-fix Gateway trace of a publication receipt arriving during active work, its next provider request, and matching cold replay; redact credentials, IPs, and non-public endpoints.
Agent review details

How this fits together

The embedded agent persists live messages through the transcript guard; session replay reconstructs provider history, while publication receipts enter through the Gateway transcript reporter.

flowchart LR
  A[Live agent messages] --> B[Transcript guard]
  C[GitHub publication receipt] --> D[Pending background result]
  B --> E[Session transcript]
  D --> E
  E --> F[Request boundary and replay]
  F --> G[Provider history]
Loading

Technical review

Best possible solution:

Keep persistence faithful to live assistant history and route publication receipts through the existing request-boundary placement owner.

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

Current-main source contains both reported paths, and the contributor supplies before/after provider cache output for the unknown-tool trigger; no target code was executed during this review.

Is this the best way to solve the issue?

The patch is the smallest complete repair for the two stated producers: remove premature filtering and reuse established placement semantics while preserving format validation, receipt identity, and run attribution.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 4fe269315d67.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 1929324 adds src/agents/session-tool-result-guard-wrapper.ts:374 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1929324867c3; files: src/agents/session-tool-result-guard-wrapper.ts)
  • Ayaan Zaidi: Raw commit b39eca3 adds src/agents/session-tool-result-guard.ts:115 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b39eca3dd5da; files: src/agents/session-tool-result-guard.ts)

PR surface

Source +9, Tests +117, Other 0. Total +126 across 15 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 7 24 15 +9
Tests 7 127 10 +117
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 15 152 26 +126

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repeated history rewrites increase provider cache-write costs in long conversations without establishing an urgent availability or delivery failure.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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-11-12T19:18:56.314Z sha 21a34e2 :: blocked before merge. :: [P2] Exercise the original allowlist in the unknown-tool regression
  • reviewed 2026-11-12T19:45:08.464Z sha 320ca08 :: blocked before merge. :: [P2] Exercise the original allowlist in the unknown-tool regression
  • reviewed 2026-11-12T20:05:10.752Z sha 88155e3 :: blocked before merge. :: none

Reviewed November 12, 2026, 3:48 PM ET / 20:48 UTC (Revision 4).

@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 12, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 12, 2026
…d results

A publication receipt that lands during active work now uses the pending automation-result row that background results already use, instead of a new pending gateway-publication shape. Older versions already place that row, so a downgrade keeps working, and the placement predicates stay unchanged. The receipt keeps its github-publication response id.

The unknown-tool regression now runs through the production session preparation path, which supplied the persistence allowlist; it fails on the base and passes here.

Co-authored-by: obviyus <[email protected]>
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 12, 2026
…aration path

The guard-level variant could not fail on the base: it installed the guard without the allowlist that production preparation supplied. The prepared-session test covers the regression.

Co-authored-by: obviyus <[email protected]>
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 12, 2026
@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

Compatibility proof for the stored-data item.

What this PR writes. No new stored shape:

  • Assistant messages may now keep an answered call to an unknown tool. That message and its toolResult shape already exist, and every version already replays completed calls (sanitizeToolCallInputs keeps them).
  • A publication receipt that lands during active work is written as the existing pending automation-result row (excludeFromContext, openclawModelPlacement: "pending") that background results already use. Older versions place it the same way. The placement predicates and SQL are unchanged from main.

Upgrade run from latest stable (real route). Isolated throwaway Gateway, fresh state, real Anthropic-compatible provider, logging proxy for provider usage. One session (agent:main:upgrade-5):

  1. [email protected] (npm latest): a turn with two parallel exec calls (the proxy renames the second to an unknown tool), then a plain turn. Stable shows the defect this PR fixes:
    [prompt-cache] message 2 (assistant) differs from the previous request … content.length, content[1].type, content[1].id, content[1].name, content[1].arguments and cache read dropped 29209 -> 9481.
  2. openclaw doctor --fix --non-interactive with this PR's build (the normal upgrade step; agent DB schema migration from main). Exit 0.
  3. This PR's build continues the same session for four turns:
request messages cache read / write
first post-upgrade turn 10 11,640 / 23,051 (system prompt changed with the version)
parallel call incl. unknown tool 13 34,691 / 1,018
tool results 15 35,709 / 242
next turn 18 35,951 / 1,058
final turn 21 37,009 / 970

The stable-era transcript, including its old dropped-call artifact, loads and replays. After the one rebuild for the version change, every request reads the full previous prefix. The PR phase logged no [prompt-cache] warning.

Downgrade. A downgrade to 2026.11.3 is blocked by main's agent DB schema (27 → 41), independent of this PR. The rows this PR writes are shapes 2026.11.3 already reads.

Publication receipt at runtime. An accepted publication cannot run on a throwaway Gateway: publishing refuses before acceptance without GitHub credentials, so no receipt is written. background-session-result.test.ts › places a GitHub publication receipt that lands during a tool call after the tool result drives the real reportGitHubPublicationTranscript against a live AgentSession and SQLite transcript. The receipt arrives while the tool runs; the next provider request contains [user, toolCall, toolResult, receipt]; and the reopened session's replay prefix is byte-equal to that request. It fails on main (the live request lacks the receipt and replay inserts it before the tool result) and passes here.

@obviyus

obviyus commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 12, 2026
@obviyus
obviyus merged commit cff99b2 into main Nov 13, 2026
154 of 155 checks passed
@obviyus
obviyus deleted the fix/prompt-cache-append-only-history branch November 13, 2026 03:49
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 13, 2026
RomneyDa added a commit that referenced this pull request Nov 17, 2026
Release adaptation: remove persistence-time live-tool filtering while retaining replay sanitization and execution authority. Adapt pending publication receipt attribution to the release report identity (params rather than later recipient). Keep all current custody and lifecycle checks. Scoped self-review found no unrelated behavior changes.

Proof: production guard reproduction fails on base by dropping missing_tool; fixed proof pending collection. Vitest initial setup failed compiling missing local dependency links, repaired using parent links. Full focused qualification and typed lint remain pending; no gate waiver.

(cherry picked from commit cff99b2)

Co-authored-by: obviyus <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
maplel pushed a commit to maplel/openclaw that referenced this pull request Nov 24, 2026
)

* fix(plugins): portable plugin-state keys for PostgreSQL

Use an exclusive SQL lower bound for Doctor pagination instead of a NUL-suffixed cursor. Reject new NUL keys in test-only plugin-state fixtures while retaining legacy SQLite adoption reads.

Add real PostgreSQL Doctor regression coverage and register it in conformance and database-worker lanes. Refs openclaw#184862 openclaw#188642.

* test: account for rebased plugin-state coverage

* test(clickclack): import legacy revocations before adoption

(cherry picked from commit 395cac7)

Release adaptation: Only exclusive SQL lower bound in kernel and Doctor pagination; preserve legacy SQLite keys and public validation. Regression exercises real Doctor paging and inspected executed SQL bindings; no NUL-key fixture policy, schema or unrelated tests.

Follow-up dispositions: 8253356 fix: preserve child results after source lifecycle changes (openclaw#202708); f3f89c7 fix: show saved child results when completion delivery fails (openclaw#202664); c45faa8 fix: align CI tests with admitted tool calls (openclaw#202655); 5c9389a fix: make channels add report required plugin install failures (openclaw#202091); 52b9188 fix: show hosted model details in `models list` without a Gateway (openclaw#202490); d248a76 fix: show an outcome when kept child chats return no answer (openclaw#202423); 5148804 fix(discord): check a queued message's access again when its turn starts (openclaw#202330); 2470d62 fix: let setup use account models with a fresh catalog (openclaw#202019); 9fa0b92 fix: let PostgreSQL Gateways start with plugin-backed secrets (openclaw#201063); c180824 fix(plugins): Talk and plugin-loading requests fail on PostgreSQL Gateways (openclaw#201976); cb5cfb2 fix: keep a doubtful killed-update recovery on the repair path (openclaw#201361); 17c5fb0 fix(state): PostgreSQL state created before Template bootstrap deferral is refused as schema drift (openclaw#197425); b5c1277 fix: let resumed parents collect children stopped by restart (openclaw#201460); f920a7e chore(postgres): qualify cron completion during graceful shutdown (openclaw#201246); 1680f54 fix(openai): new ChatGPT subscription models missing until an OpenClaw release (openclaw#201130); 0d8820a fix(media): image descriptions use the ChatGPT OAuth route when OpenAI has no API key (openclaw#199299); ee3e16e test(agents): trim and fold low-value regression suites (openclaw#198916); b8029b4 test(agents): qualify PostgreSQL simple-completion acquisition (openclaw#200956); 703c82d fix(sessions): record queued input end causes and recover them across crashes (openclaw#200533); 23fca1a fix: let the next update continue after a killed update when nothing is left to repair (openclaw#200680); d565e17 fix(ci): retire deleted session fork test from inventory (openclaw#200611); 4cf12c6 chore(postgres): qualify prompt refresh and rebalance CI (openclaw#200488); d460273 fix(templates): release earlier Template-managed agents (openclaw#200303); ff75829 fix(update): --no-restart update fails when the Gateway restarts itself during Doctor's stop (openclaw#200181); 0b2ad60 chore(postgres): cover compaction watched-session prompts (openclaw#200117); b90c573 test: consolidate redundant coverage (198795 recut) (openclaw#198943); a042363 test: consolidate redundant coverage (198793, part 2) (openclaw#198936); 9bfad2b test: consolidate suites while retaining recovery owners (openclaw#198933); 4e9812c test: consolidate redundant coverage (198789, part 2) (openclaw#198932); 90814f5 fix(subagents): stops a finished sub-agent's chat being deleted before its parent reads the result; 799bc0b fix(ci): stabilize hourly fixtures and retire unused exports (openclaw#199851); e4a3093 perf(update): replace the candidate canary with a runtime contract check (openclaw#198268); a4cc2ad fix: undo cold-session compaction CPU and latency regressions (openclaw#199561); 55fec79 fix(agents): stop divergent mid-turn overflow recovery (openclaw#199636); 2c4413a fix: reduce Gateway stalls under filesystem pressure (openclaw#197510); 37d977f fix: output reducers are skipped in headless and Code Mode runs (openclaw#199434); c9ee264 fix(compaction): concurrent sessions wait for each other's summaries during compaction (openclaw#196550); 2471ddc feat: let agents review generated images before delivery (openclaw#198227); 21f7dc6 fix(github): publication fails with PostgreSQL session or state stores (openclaw#193749); 63d9e57 fix(ci): new PostgreSQL suites are omitted from conformance (openclaw#198390); 466a4b6 fix(telegram): steered answers quote the wrong input (openclaw#178124); 87b6f52 fix(delivery): resend routed Telegram finals after an ambiguous network failure (openclaw#192779); 68a839b fix: isolate held agent databases until explicit restoration (openclaw#198180); cff99b2 fix(agents): keep provider history append-only across runs (openclaw#197874); 8a328bf feat: add an opt-in usage-ranked tool index (openclaw#197128); 097e648 fix(ci): plan only executable infra tests (openclaw#197911); 76385fd fix(models): discovered models become "Unknown model" after restart or an ended sign-in (openclaw#197784); 89d4177 fix(plugin-state): guarded calls fail until Gateway restart after an unknown write outcome (openclaw#197790); baca36e fix(sessions): commit selected invitations with original messages (openclaw#184512); 699e538 fix(sessions): drain passive notices on sessions_send resumes; d6ded18 chore(ci): drop retired test-lines allocation records (2/3) (openclaw#197656); e0dd020 fix(agents): collect process results at suspended-run capacity; 4897740 feat(auth): preserve delegated OCE user profiles and permissions (openclaw#196856); 7197ce1 feat(templates): install bundled plugins through native management (openclaw#196349); 9c6ee9b feat: let Template automations start paused for onboarding (openclaw#196323); 79a6214 fix(message): retain local final replies in conversation history (openclaw#187795); caa978c feat(templates): open durable chat before verified setup (openclaw#196392); 78e73aa fix(sessions): cold PostgreSQL conversations fail after idle readers close (openclaw#189991); b6ed907 perf(sessions): persist active transcript facts for hydration (openclaw#193682); 1595dd2 feat(plugins): reauthorize accepted session work (openclaw#176886); b43ad0a fix(models): avoid reloading plugins on catalog refresh (openclaw#193903); 0947d02 fix(ci): avoid unrelated PostgreSQL runs and admit owned tests (openclaw#193870); 428ca7d feat(openclaw-id): add Gateway membership authority and publication behind the Labs flag (openclaw#192335); c718583 fix(update): repair refuses forever after a verified update fails a later step (openclaw#193132); 3f64174 fix: deliver background replies after a reload retires the turn registry (openclaw#193130); 982f3b1 fix(imessage): report Automation failures after Gateway updates (openclaw#186117); 31b28e9 fix(agents): wait for a peer OAuth refresh before failing request auth (openclaw#192906); cf50d4a feat(storage): support read-only PostgreSQL standby inspection (openclaw#192645); 82fd4e6 fix(agents): retain stale session target refusal reasons (openclaw#192681); 8ac4e19 fix(worktrees): reserve capacity on PostgreSQL (openclaw#192537); 718b349 fix: reduce session startup stalls under storage contention; 08f4a19 refactor(skills): move Skill Workshop into its bundled plugin (openclaw#192471); 837402a fix(clawrouter): keep upstream credit failures off the shared key (openclaw#192575); f38495f fix(plugins): reject late routing from canceled runs (openclaw#192492); dc5d61a improve(sessions): reduce unnecessary maintenance query rows (openclaw#192023); c4bf0dc fix(sessions): avoid extra maintenance scans for embedded archives (openclaw#184507); e44b3d6 fix(team-reports): recover after database connection loss (openclaw#192020); 991fb33 fix(logbook): recover after database connection loss (openclaw#192011); e6d0d2e fix(test): include omitted PostgreSQL conformance suites (openclaw#191962); da5ff0f fix(codex): reject native hooks from a previous run (openclaw#191788); 09f0b0b feat(plugins): add skill usage runtime for plugins (openclaw#191661); 00b2ff4 fix: parent sessions miss child approvals with a custom session store (openclaw#189827); be44b10 fix: stop completed session writes retaining request data (openclaw#191197); d40aa7c fix(sessions): replay creation requests across Gateway restarts (openclaw#190862); d894035 fix: await Doctor shared-state repair preparation (openclaw#190875); b515cc7 feat: fork threaded conversations with Telegram support (openclaw#190783); def6349 feat(plugins): plugins can run a hidden forked turn of a session with their own tools (openclaw#190950); d983e34 feat(plugins): plugin commands can continue the agent with a replacement prompt, on every channel (openclaw#190908); ea3f0b8 fix(ci): provision Node test prerequisites and retain Baseten routing (openclaw#191050); 29503e1 fix(update): Gateway stays stopped after the updater process dies mid-update (openclaw#188497); fc8c2d0 fix(update): preserve unfinished handoff artifacts (openclaw#190571); 7c26e8c fix(ci): cover PostgreSQL managed update handoffs (openclaw#190336); 4913d41 fix(ci): prevent truncated PostgreSQL target listings (openclaw#189509); 8925f62 fix(gateway): start restored PostgreSQL homes on the first attempt (openclaw#190291); 177fe32 feat(models): preserve inference capabilities in opt-in catalog v3 (openclaw#189678); 7faf32d feat: retain repository disk authority through recovery (openclaw#189106); a658df3 feat(database): capture externally quiesced SQLite migrations; 0f9e7f7 feat(database): capture exact SQLite migration capsules; 4fb684e feat(backup): add PostgreSQL local companion checkpoints; c89a101 fix(doctor): migrate auth profiles on PostgreSQL stores (openclaw#189639); 799de09 fix(ci): split oversized workspace and setup files (openclaw#189356); 21ee847 fix(acp): keep completed run conversations resumable (openclaw#189273); fce0e56 perf(sessions): open cold history without restoring archives (schema 39) (openclaw#188397)

Validation: Baseline1 NUL-binding assertion failure/21passing; candidate22/22passes (188693-green.log). Real SQLite Doctor path and generated SQL proved; no native PostgreSQL server execution claimed.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 0895146d8c1493146f5c6461eee0b10c329bdd1e)
(cherry picked from commit f8ccaa70bc9773d6bbb569bc0e275eee0c544ead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts 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.

1 participant