Skip to content

fix(gateway): images on a rewound branch are deleted before switching back to it - #160471

Closed
masatohoshino wants to merge 1 commit into
openclaw:mainfrom
masatohoshino:fix/139670-inactive-branch-media
Closed

masatohoshino wants to merge 1 commit into
openclaw:mainfrom
masatohoshino:fix/139670-inactive-branch-media

Conversation

@masatohoshino

@masatohoshino masatohoshino commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #139670

What Problem This Solves

Fixes: generated images, audio, video, and documents are permanently deleted by routine cleanup after a rewind moves their message to an inactive branch, so switching back to that branch shows the message with a dead link.

User Impact

Users can rewind a conversation, let the Gateway restart or run maintenance, and later switch back to the earlier branch with its attachments intact. While the branch is inactive, its attachments stay unavailable for download (unchanged); they are served again as soon as the branch is active.

Why This Change Was Made

Rewind and branch switch keep every branch in the session transcript and only move the active leaf. Managed media cleanup decided deletion from the visible active-path history, so a message on an inactive branch read as unreferenced and its record and file were deleted.

This PR keeps two sets apart, the split the review on #139670 calls sound:

  • Restorable (unchanged): HTTP serving and artifact downloads still resolve against the visible active-path history, as established by fix(gateway): derive attachment visibility from current history #138377.
  • Retained (new): cleanup now reads the visible history plus the transcript rows that are not on the active path. The transcript read kernel gains a retained mode next to full; the extra rows come from one query in the session projection reader (transcript_events rows with no session_transcript_active_events entry), read inside the same snapshot and in the same history worker as today. The reset-archive fallback for empty history still depends on visible history alone.

Deliberate limits:

  • Only inactive branches are covered. Compaction checkpoint restore, the other trigger in the issue, was retired by refactor: remove compaction checkpoints #154131.
  • On the active path, reset windows still decide visibility, so media before an in-session reset is still reclaimed as before.
  • A corrupt row on an inactive branch makes the cleanup read reject, like a corrupt visible row already does, so nothing is deleted. Skipping the row could delete media it references.
  • No retention fence at deletion time is added. Rewind and branch switch copy existing rows and never add a reference to media that cleanup already found unreferenced, so they cannot race it into data loss.

The existing inactive-branch case in managed-image-attachments.sqlite-visibility.test.ts expected cleanup to delete the media. It now expects cleanup to keep it; its assertions that downloads return nothing for inactive branches stay the same. Production code grows by about 45 lines, mostly the new query and its comment.

Evidence

Tested at e102ebccea1 (base upstream/main 733ceac1a7e). The head f007e2c16e0 differs only in how the new query's NOT EXISTS filter is written (method-call form for the linter); the SQL and behavior are the same, and the focused test file passes on the head.

Both builds ran with pnpm build, then an isolated Gateway (own state directory, loopback port, token auth, channels skipped) with a local OpenAI-compatible mock model whose reply attaches a synthetic PNG through a MEDIA: line. A driver ran the same steps against each build through the built CLI (openclaw gateway call) and HTTP GETs: send a plain turn, send a turn that attaches the image, GET it, sessions.rewind to the second user message, GET again, restart the Gateway (startup maintenance runs managed media cleanup), sessions.branches.switch back to the old tip, read chat.history, GET again.

Before (base 733ceac1a7e):

[before] assistant message a930738c-87ab-48cb-8eb2-72859f59948e carries /api/chat/media/outgoing/<session>/01573408-befd-4dcd-963f-0130ad4fbf0a/full
[before] GET image (active branch): 200; originals on disk: 1
[before] sessions.rewind to before turn 2 -> history now 2 messages, image message visible: false
[before] GET image (branch inactive, before cleanup): 404
[before] inactive branch tip: 0a8c5355-7c25-46d8-acef-d7ff76370e0e
[before] gateway restarted (startup maintenance ran); originals on disk: 0
[before] sessions.branches.switch back -> image message visible: true
[before] GET image (branch restored): 404

After (this PR):

[after] assistant message e5d32b9b-c800-4ce4-9166-c5e13703765e carries /api/chat/media/outgoing/<session>/4e48108f-d26a-46b9-956b-5688054f3d13/full
[after] GET image (active branch): 200; originals on disk: 1
[after] sessions.rewind to before turn 2 -> history now 2 messages, image message visible: false
[after] GET image (branch inactive, before cleanup): 404
[after] inactive branch tip: e9bf4632-e4f8-4a6c-ab35-0981605e6bd4
[after] gateway restarted (startup maintenance ran); originals on disk: 1
[after] sessions.branches.switch back -> image message visible: true
[after] GET image (branch restored): 200

Observed result: on the base, cleanup deletes the original while its branch is inactive and the restored message's image returns 404. With this PR, the original survives cleanup, the inactive branch still returns 404, and the restored branch returns 200.

Not covered: the run uses a mock model and a single image; other media kinds share the same record and cleanup path. The hourly maintenance run was not waited for; it calls the same cleanup that runs at startup.

Focused tests and checks:

Test file Change pnpm test <file> --maxWorkers=1 wall CI seconds on f007e2c16e0
src/gateway/managed-image-attachments.sqlite-visibility.test.ts one existing case's cleanup expectation changed; no new test 73.1 s for the whole file (25 tests) 82.3 s of test time for the file (25 tests) in checks-node-changed-compact-large-17
  • The changed inactive-branch case fails on the base (cleanup deletes the record) and passes with this PR; the other 24 cases in the file pass unchanged, including the fresh-history, reset-only, and corrupt-row cases.
  • oxfmt --check and oxlint on the changed files pass; pnpm check:changed results are below.
  • The autoreview skill ran on the branch. One finding was fixed (inactive rows could have suppressed the empty-history reset-archive fallback; the fallback now looks at visible history only). One was kept on purpose: a corrupt inactive row makes cleanup reject (see the limits above). The final run is clean.

CI checks on f007e2c16e0

Two checks-node-changed jobs failed (CI run); neither failure comes from this change.

@clawsweeper

clawsweeper Bot commented Sep 28, 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 gateway Gateway runtime size: S labels Sep 28, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 12:37 PM ET / 16:37 UTC (Revision 2).

ClawSweeper review

What this changes

Gateway media cleanup now retains attachments referenced by inactive conversation branches while downloads continue to follow the active branch.

Merge readiness

✅ Ready for maintainer review

This PR addresses the still-open inactive-branch media loss reported in the linked issue. Current main still uses active-history visibility to decide cleanup, while the proposed change has focused regression coverage and a convincing Gateway before/after trace.

Priority: P0
Reviewed head: f007e2c16e02455a3ace3d5e803af02bccac4130

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused source changes, an existing regression case, and a real Gateway before/after trace provide good merge-readiness evidence.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The changed Gateway cleanup owner was exercised through an isolated Gateway restart after rewind, followed by branch switching and HTTP GETs: the attachment stayed inaccessible while inactive and returned 200 after restoration. The PR changes retention reads, not a stored-data format, so data-model compatibility is not applicable.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed Gateway cleanup owner was exercised through an isolated Gateway restart after rewind, followed by branch switching and HTTP GETs: the attachment stayed inaccessible while inactive and returned 200 after restoration. The PR changes retention reads, not a stored-data format, so data-model compatibility is not applicable.
Evidence reviewed 8 items Introduced cleanup change: The pinned PR delta changes cleanup's history read from full to retained; the HTTP download matcher continues to use its separate exact-message lookup.
Retention query and snapshot: The new reader selects transcript events absent from the active-event projection; the read kernel combines them with visible history inside the existing snapshot and bases reset-archive fallback on visible history alone.
Regression coverage: The existing SQLite visibility case now expects cleanup to retain an inactive branch's record and file, while continuing to expect its download to be unavailable; the other reset and fresh-history expectations remain destructive.
Findings None None.
Security None None.

How this fits together

The Gateway stores conversation events and managed media separately. Transcript reads tell cleanup which files to retain, while download requests check which attachments are visible in the current conversation.

flowchart LR
  A[Conversation events] --> B[Active branch]
  A --> C[Inactive branches]
  B --> D[Download visibility]
  B --> E[Retention read]
  C --> E
  E --> F[Media cleanup]
  F --> G[Retained files]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +58, Tests +7. Total +65 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 4 77 19 +58
Tests 1 10 3 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 87 22 +65

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #139670
Summary: This PR is a candidate repair for the open inactive-branch media-retention issue; the earlier same-cause repair closed unmerged.

Members:

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

Technical review

Best possible solution:

Keep download authorization tied to visible history and let the session transcript reader supply the broader restorable set to destructive cleanup.

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

Yes. The PR records an isolated Gateway before/after rewind, restart, and branch-switch run, and fetched main still has the source-level deletion path; this read-only review did not execute that run on current main.

Is this the best way to solve the issue?

Yes. The patch changes cleanup's retention read at the existing session-reader boundary while preserving active-history checks for downloads.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P0: The PR addresses irreversible loss of generated media during ordinary conversation rewind and cleanup.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed Gateway cleanup owner was exercised through an isolated Gateway restart after rewind, followed by branch switching and HTTP GETs: the attachment stayed inaccessible while inactive and returned 200 after restoration. The PR changes retention reads, not a stored-data format, so data-model compatibility is not applicable.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Gateway cleanup owner was exercised through an isolated Gateway restart after rewind, followed by branch switching and HTTP GETs: the attachment stayed inaccessible while inactive and returned 200 after restoration. The PR changes retention reads, not a stored-data format, so data-model compatibility is not applicable.

Evidence

What I checked:

  • Introduced cleanup change: The pinned PR delta changes cleanup's history read from full to retained; the HTTP download matcher continues to use its separate exact-message lookup. (src/gateway/managed-image-attachments.ts:1001, f007e2c16e02)
  • Retention query and snapshot: The new reader selects transcript events absent from the active-event projection; the read kernel combines them with visible history inside the existing snapshot and bases reset-archive fallback on visible history alone. (src/config/sessions/session-accessor.sqlite-projection-read.ts:131, f007e2c16e02)
  • Regression coverage: The existing SQLite visibility case now expects cleanup to retain an inactive branch's record and file, while continuing to expect its download to be unavailable; the other reset and fresh-history expectations remain destructive. (src/gateway/managed-image-attachments.sqlite-visibility.test.ts:413, f007e2c16e02)
  • Real Gateway behavior proof: The PR body records an isolated Gateway and HTTP before/after run: after rewind and restart, the inactive image remains unavailable, then returns HTTP 200 after switching back; the base run returned 404 after switching back. The model was mocked, but the Gateway, cleanup, branch RPCs, and HTTP requests were exercised. (f007e2c16e02)
  • Current-main necessity: Fetched main still asks the full, active-path reader for cleanup membership, so it does not contain this retained-branch repair. (src/gateway/managed-image-attachments.ts:1001, ad7669535c37)
  • Related issue and prior work: The linked issue remains open and describes the same inactive-branch deletion. Its earlier repair PR was closed unmerged; the merged checkpoint-removal PR narrowed the remaining problem without repairing ordinary rewind and branch switching.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

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

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

Workflow

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

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T13:34:33.639Z sha f007e2c :: needs maintainer review before merge. :: none

steipete added a commit that referenced this pull request Sep 30, 2026
## What Problem This Solves

Finishes four small helper cleanups found during the maintainer-requested eighth config sweep.

## User Impact

No user-visible change. Config schemas, defaults, environment handling, migration decisions, refusal order, and persisted session keys stay the same.

## Why This Change Was Made

- Remove the unused `DiscoveryToggleConfig` type left after its model discovery fields were retired. It has no repository consumers or public SDK export; the still-used Bedrock type remains.
- Re-export the docs baseline functions directly through the existing lazy runtime facade, preserving names and dependency order.
- Let the canonical main-session-key builder perform main-key normalization once.
- Classify cron ownership once instead of allocating two filtered arrays and repeating the same lookups.

Production diff: 23 added / 40 removed, **17 net lines removed**. No tests changed.

## Evidence

- Independent review found no actionable P0-P2 findings.
- Blacksmith Testbox `tbx_01m3sxdrf1qfe6fc408sjgf0bf`, [run 36767521248](https://github.com/openclaw/openclaw/actions/runs/36767521248), verified the four source hashes against base `3c0ae56c634e664ff12cfc2664bcdb9cf330ce5f`.
- 63 tests passed across docs baseline, cron ownership, session key, session path, and filesystem import-boundary suites.
- Generated config docs hashes/counts, core typechecking, and changed-file lint passed.
- Both import-cycle checks reported zero cycles.
- No schema, generated snapshots, dependencies, or protected SQLite accessor files changed.

### Config compatibility assessment

The review's requested compatibility assessment is complete. This changes no schema, default, environment variable, migration marker, redaction rule, or stored format. The docs facade exposes the same five operations in the same dependency order. Main-key normalization remains with `buildAgentMainSessionKey`, which already calls `normalizeMainKey`; persisted keys are unchanged. Cron classification preserves both predicates, counts, refusal order, and the existing repair/recheck path. The removed type has no consumers and is absent from public SDK exports. No updater or live-upgrade execution is claimed.

### Exact-head hosted CI

[Run 36769831270](https://github.com/openclaw/openclaw/actions/runs/36769831270) completed on `91162736eeb2b9660af6c7c48ab32438ed70c23a`: 143 jobs passed, 22 skipped, two test jobs failed, and the CI gate failed downstream. Security-fast, dependency review, security-sensitive review, all selected types/lint/build checks, and architecture checks passed.

`checks-node-changed-compact-large-26` ([job 110073528939](https://github.com/openclaw/openclaw/actions/runs/36769831270/job/110073528939)) fails `setup-inference.first-signin.integration.test.ts:420:38`: expected `confirm`, received `note`, in the same-owner sign-in/revoked-retry case. The identical failure is present on unrelated PR #162093, head `be4f3855425d239b494f77e308881b2b0c7a3157`, [run 36769218900 / job 110071456815](https://github.com/openclaw/openclaw/actions/runs/36769218900/job/110071456815). That PR changes only `src/agents/apply-patch-paths.ts`. The assertion was introduced by #162020, which is already this PR's base; no Gateway/authentication source or test changes here.

`checks-node-changed-compact-small-4-1` ([job 110073535262](https://github.com/openclaw/openclaw/actions/runs/36769831270/job/110073535262)) fails `server.catalog-startup.test.ts:86:3`, “starts with provider settings without model rows when a channel is auto-enabled,” with `Test timed out in 90000ms`. The same case/error appears in the latest CI for unrelated PR #160471's still-current head `f007e2c16e02455a3ace3d5e803af02bccac4130`: [September 28 run 36428787158 / job 108950748546](https://github.com/openclaw/openclaw/actions/runs/36428787158/job/108950748546). This is independent current-PR evidence, not a claim that the latest hourly main reproduced the timeout.

The docs facade is only loaded by docs baseline generation, the removed type has no runtime effect, and the session helper still applies the same canonical normalization. The cron change only combines synchronous classification; it adds no await, retry, startup operation, or changed refusal decision. The startup fixture has no legacy cron jobs. Gateway/catalog/auth source and both failing tests are unchanged by this PR. These inherited failures remain with the main-CI coordinator; no retry, timeout increase, assertion change, or main repair is included. The maintainer-authorized exception is pinned to the exact tested head and does not describe the hosted run as green.

The catalog-startup test has identical Git blob `d60a895ece760b2cfb5f066acf0787a8a2ee4f11` at this PR's base/head and the independent PR head above.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
## What Problem This Solves

Finishes four small helper cleanups found during the maintainer-requested eighth config sweep.

## User Impact

No user-visible change. Config schemas, defaults, environment handling, migration decisions, refusal order, and persisted session keys stay the same.

## Why This Change Was Made

- Remove the unused `DiscoveryToggleConfig` type left after its model discovery fields were retired. It has no repository consumers or public SDK export; the still-used Bedrock type remains.
- Re-export the docs baseline functions directly through the existing lazy runtime facade, preserving names and dependency order.
- Let the canonical main-session-key builder perform main-key normalization once.
- Classify cron ownership once instead of allocating two filtered arrays and repeating the same lookups.

Production diff: 23 added / 40 removed, **17 net lines removed**. No tests changed.

## Evidence

- Independent review found no actionable P0-P2 findings.
- Blacksmith Testbox `tbx_01m3sxdrf1qfe6fc408sjgf0bf`, [run 36767521248](https://github.com/openclaw/openclaw/actions/runs/36767521248), verified the four source hashes against base `c3dd660f699728d5ba714e447f8484590d085f5d`.
- 63 tests passed across docs baseline, cron ownership, session key, session path, and filesystem import-boundary suites.
- Generated config docs hashes/counts, core typechecking, and changed-file lint passed.
- Both import-cycle checks reported zero cycles.
- No schema, generated snapshots, dependencies, or protected SQLite accessor files changed.

### Config compatibility assessment

The review's requested compatibility assessment is complete. This changes no schema, default, environment variable, migration marker, redaction rule, or stored format. The docs facade exposes the same five operations in the same dependency order. Main-key normalization remains with `buildAgentMainSessionKey`, which already calls `normalizeMainKey`; persisted keys are unchanged. Cron classification preserves both predicates, counts, refusal order, and the existing repair/recheck path. The removed type has no consumers and is absent from public SDK exports. No updater or live-upgrade execution is claimed.

### Exact-head hosted CI

[Run 36769831270](https://github.com/openclaw/openclaw/actions/runs/36769831270) completed on `91162736eeb2b9660af6c7c48ab32438ed70c23a`: 143 jobs passed, 22 skipped, two test jobs failed, and the CI gate failed downstream. Security-fast, dependency review, security-sensitive review, all selected types/lint/build checks, and architecture checks passed.

`checks-node-changed-compact-large-26` ([job 110073528939](https://github.com/openclaw/openclaw/actions/runs/36769831270/job/110073528939)) fails `setup-inference.first-signin.integration.test.ts:420:38`: expected `confirm`, received `note`, in the same-owner sign-in/revoked-retry case. The identical failure is present on unrelated PR openclaw#162093, head `be4f3855425d239b494f77e308881b2b0c7a3157`, [run 36769218900 / job 110071456815](https://github.com/openclaw/openclaw/actions/runs/36769218900/job/110071456815). That PR changes only `src/agents/apply-patch-paths.ts`. The assertion was introduced by openclaw#162020, which is already this PR's base; no Gateway/authentication source or test changes here.

`checks-node-changed-compact-small-4-1` ([job 110073535262](https://github.com/openclaw/openclaw/actions/runs/36769831270/job/110073535262)) fails `server.catalog-startup.test.ts:86:3`, “starts with provider settings without model rows when a channel is auto-enabled,” with `Test timed out in 90000ms`. The same case/error appears in the latest CI for unrelated PR openclaw#160471's still-current head `f007e2c16e02455a3ace3d5e803af02bccac4130`: [September 28 run 36428787158 / job 108950748546](https://github.com/openclaw/openclaw/actions/runs/36428787158/job/108950748546). This is independent current-PR evidence, not a claim that the latest hourly main reproduced the timeout.

The docs facade is only loaded by docs baseline generation, the removed type has no runtime effect, and the session helper still applies the same canonical normalization. The cron change only combines synchronous classification; it adds no await, retry, startup operation, or changed refusal decision. The startup fixture has no legacy cron jobs. Gateway/catalog/auth source and both failing tests are unchanged by this PR. These inherited failures remain with the main-CI coordinator; no retry, timeout increase, assertion change, or main repair is included. The maintainer-authorized exception is pinned to the exact tested head and does not describe the hosted run as green.

The catalog-startup test has identical Git blob `d60a895ece760b2cfb5f066acf0787a8a2ee4f11` at this PR's base/head and the independent PR head above.
@masatohoshino

Copy link
Copy Markdown
Contributor Author

Closing as superseded: #163043 (merged 2026-10-02) fixes the same defect on main. Media cleanup now reads off-path transcript messages (includeOffPathMessages), so attachments referenced by an inactive rewound branch are kept, and the inactive-branch regression case expects them to survive. Thanks for the reviews.

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

Labels

gateway Gateway runtime P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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.

Managed media reachable only through an inactive transcript branch or a live compaction checkpoint is permanently deleted by cleanup

1 participant