Skip to content

fix(doctor): session SQLite restore installs an empty session index over the valid archive - #117221

Merged
vincentkoc merged 5 commits into
openclaw:mainfrom
harjothkhara:oss-find/openclaw-2026-07-31-e
Aug 1, 2026
Merged

vincentkoc merged 5 commits into
openclaw:mainfrom
harjothkhara:oss-find/openclaw-2026-07-31-e

Conversation

@harjothkhara

@harjothkhara harjothkhara commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #116163

What Problem This Solves

openclaw doctor --session-sqlite restore could install a later recreated empty sessions.json instead of the original pre-migration index when several migration runs archived the same destination. The old path processed manifests immediately, so filesystem order became an implicit data-selection policy.

The initial PR reversed that ordering, but still inferred that a missing losing archive had been consumed by an earlier restore. If the original archive had actually been deleted or lost, Doctor could silently install a later empty index and report success.

Root cause and owner

The violated invariant belongs to the doctor session-SQLite migration-run owner: all archives targeting one destination must be evaluated before any archive is moved, and a missing archive may be suppressed only when durable per-archive evidence proves an earlier restore consumed it.

Repair

The rewritten restore path now plans every duplicate destination before writes:

  • identical archives may select the earliest recorded copy;
  • one valid nonempty legacy session index may supersede valid empty-object copies created by older writers;
  • distinct nonempty indexes, distinct transcript archives, invalid/unsafe archives, and archives missing without prior-consumption evidence fail closed before rename;
  • losing archives remain untouched;
  • every successful rename records its exact archive path in additive restore.consumedArchives provenance;
  • shipped manifests that only have restore.restoredFiles are upgraded in place when one restored source maps unambiguously to one archive;
  • transcript-like archives are fingerprinted in 64 KiB chunks, avoiding synchronous whole-file allocation during duplicate planning.

This does not change the SQLite schema or schema version, and it does not bump the migration-manifest version. The optional manifest field is backward-readable; runtime session storage remains SQLite-only.

Operator-visible behavior

The destructive fixtures use the real import and restore entry points rather than hand-written result objects:

state result
original nonempty index + later empty indexes original index restored; empty archives preserved; no conflict
two distinct nonempty indexes destination remains absent; both archives preserved; two explicit conflicts
original archive deleted + later empty index destination remains absent; later empty archive preserved; missing-original conflict remains visible
original archive malformed + later empty index destination remains absent; both archives preserved; invalid-original conflict remains visible
restore -> re-import -> restore exact consumed-archive provenance keeps repeat restore clean, including a shipped manifest without the new field
duplicate 4 MiB transcript archives one identical archive restores intact, the losing archive remains preserved, and planning stays bounded

Redacted after-fix Doctor transcript from a real built CLI run on Blacksmith Testbox. The fixture performed one import from a nonempty legacy index, two later imports from recreated empty indexes, then restore:

$ openclaw doctor --session-sqlite restore --session-sqlite-all-agents --json
{
  "mode": "restore",
  "targets": [
    {
      "agentId": "main",
      "issues": [],
      "sqliteEntries": 1,
      "storePath": "<fixture>/state/agents/main/sessions/sessions.json",
      "restore": {
        "conflicts": [],
        "manifestPaths": [
          "<fixture>/state/session-sqlite-migration-runs/<run-1>.json",
          "<fixture>/state/session-sqlite-migration-runs/<run-2>.json",
          "<fixture>/state/session-sqlite-migration-runs/<run-3>.json"
        ],
        "restoredFiles": [
          "<fixture>/state/agents/main/sessions/session-1.jsonl",
          "<fixture>/state/agents/main/sessions/sessions.json"
        ],
        "skippedFiles": [
          "<fixture>/state/agents/main/sessions/sessions.json",
          "<fixture>/state/agents/main/sessions/sessions.json"
        ]
      }
    }
  ],
  "totals": {
    "issues": 0,
    "sqliteEntries": 1,
    "targets": 1
  }
}
legacy_index_entries=1
preserved_empty_archives=2

Evidence

Focused destructive, upgrade, and large-archive coverage:

node scripts/run-vitest.mjs src/commands/doctor-session-sqlite.test.ts
Test Files  1 passed (1)
Tests       83 passed (83)

Adjacent callers:

server-startup-session-migration.test.ts   12 passed
register.maintenance.test.ts               32 passed
doctor-session-sqlite-github-issue.test.ts  1 passed

Fresh Blacksmith Testbox changed gate on the frozen branch, including core/test typecheck, changed-file lint, dead exports, database-first guard, native schema-version guard, and import-cycle checks:

Remote SQLite flip lifecycle E2E:

sqlite-sessions-transcripts-flip-proof.e2e.test.ts
Test Files  1 passed (1)
Tests       1 passed (1)

Autoreview on exact local head 6e956006605ee5595f8f4125b69bd94658b0a72c is clean: patch correct 0.91, no accepted/actionable P0 or P1 findings, secret scan clean.

ClawSweeper rank-up moves

  • durable per-archive consumption provenance
  • deleted-earliest-archive regression
  • malformed-earliest-archive regression
  • fail-closed distinct-data policy
  • bounded duplicate transcript fingerprinting
  • literal redacted after-fix Doctor report
  • remote changed gate and lifecycle E2E

Scope

Relative to frozen base 1f40646f7e058adb7a796f039e0027eb0052ad83: production is +398 net lines, tests +335, docs +5. The production growth is the cross-manifest planner, safe archive inspection/fingerprint recheck, and persisted upgrade evidence required to remove the silent data-loss path; no unrelated runtime, provider, channel, config, or SQLite behavior changed.

@openclaw-barnacle openclaw-barnacle Bot added commands Command implementations size: S labels Aug 1, 2026
@harjothkhara
harjothkhara marked this pull request as ready for review August 1, 2026 05:00
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 2:57 AM ET / 06:57 UTC.

ClawSweeper review

What this changes

The PR makes Doctor plan all session-SQLite restore archives for a destination before moving any, selecting safe duplicates or a valid nonempty legacy index while recording which archive was consumed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding. This PR moves duplicate-archive selection into the Doctor migration-run owner, preserves per-archive consumption facts, and fails closed before a restore can replace a valid session index with an empty later archive. The embedded redacted built-CLI transcript directly shows the repaired outcome; keep this PR open for normal owner review and exact-head checks.

Priority: P1
Reviewed head: 6e956006605ee5595f8f4125b69bd94658b0a72c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A well-scoped recovery fix with direct terminal proof, focused regressions, and no blocking review finding.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body includes a redacted built-CLI after-fix Doctor restore transcript showing the original index selected, no conflicts, and later empty archives preserved; focused destructive and lifecycle test evidence supplements it.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body includes a redacted built-CLI after-fix Doctor restore transcript showing the original index selected, no conflicts, and later empty archives preserved; focused destructive and lifecycle test evidence supplements it.
Evidence reviewed 8 items Current-main failure path: Current main restores one manifest at a time, immediately moving an archive when its source path is absent; it has no cross-manifest candidate-planning step, so manifest ordering can decide which duplicate archive reaches the destination first.
Canonical repair owner: The branch loads every trusted manifest, creates one restore plan across them, and passes that plan into each manifest restore. This fixes selection before any rename rather than trying to compensate in reporting or callers.
Persisted recovery provenance: Each manifest now records consumed archive paths, with a narrow upgrade path for older manifests that only recorded restored source paths when that source maps to exactly one archive.
Findings None None.
Security None None.

How this fits together

Doctor imports legacy session files into SQLite and records source-to-archive moves in migration manifests so operators can later restore file-backed sessions. The restore-report command and startup recovery both call the migration-run restore owner, which decides whether an archived file can safely return to its original path.

flowchart LR
  Legacy[Legacy session index and transcripts] --> Import[Doctor import]
  Import --> Manifests[Migration manifests and archives]
  Manifests --> Planner[Duplicate archive planner]
  Planner --> Decision[Validate, select, or conflict]
  Decision --> Restore[Safe file restore]
  Restore --> Report[Doctor report and startup recovery]
Loading

Before merge

  • Resolve merge risk (P1) - This changes interpretation and writing of persisted migration manifests: ambiguous or unrecorded-missing archives now remain conflicts instead of being silently selected, so the existing legacy-manifest and repeat-restore coverage should remain intact through any rebase.
  • Complete next step (P2) - No concrete automated repair remains; retain this PR for normal owner review while exact-head checks finish.
Agent review details

Security

None.

PR surface

Source +398, Tests +335, Docs +5. Total +738 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 415 17 +398
Tests 1 335 0 +335
Docs 1 6 1 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 756 18 +738

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-session-sqlite-migration-run.ts, migration/backfill/repair: src/commands/doctor-session-sqlite.test.ts, unknown-data-model-change: src/commands/doctor-session-sqlite-migration-run.ts, unknown-data-model-change: src/commands/doctor-session-sqlite.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #116163
Summary: This PR is the active candidate fix for the canonical report of duplicate session-index archive selection during Doctor restore.

Members:

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

Merge-risk options

Maintainer options:

  1. Merge with the documented recovery policy (recommended)
    Accept the intentional fail-closed behavior for ambiguous persisted archives after exact-head checks confirm the migration-manifest compatibility coverage remains green.

Technical review

Best possible solution:

Land the centralized planner with its archive-provenance and old-manifest upgrade tests, preserving the documented fail-closed outcome for any ambiguous recovery state.

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

Yes, source reproduction is high confidence: on current main, multiple manifests for one missing source are restored independently in manifest order, while the branch fixture creates the original nonempty index followed by later empty indexes and verifies the selected result.

Is this the best way to solve the issue?

Yes. Planning candidates at src/commands/doctor-session-sqlite-migration-run.ts:368 is the narrow owner-boundary repair; modifying the report layer or startup caller would not protect the normal Doctor restore command or preserve a single archive-selection policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 78486e27511c.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes a redacted built-CLI after-fix Doctor restore transcript showing the original index selected, no conflicts, and later empty archives preserved; focused destructive and lifecycle test evidence supplements it.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body includes a redacted built-CLI after-fix Doctor restore transcript showing the original index selected, no conflicts, and later empty archives preserved; focused destructive and lifecycle test evidence supplements it.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 availability: Current PR review merge-risk labels are merge-risk: 🚨 session-state.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: The current restore path can make valid recoverable session state appear empty, affecting the operator recovery workflow.
  • merge-risk: 🚨 session-state: The PR changes how Doctor selects and records persisted session-index archives during restore.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 PR body includes a redacted built-CLI after-fix Doctor restore transcript showing the original index selected, no conflicts, and later empty archives preserved; focused destructive and lifecycle test evidence supplements it.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body includes a redacted built-CLI after-fix Doctor restore transcript showing the original index selected, no conflicts, and later empty archives preserved; focused destructive and lifecycle test evidence supplements it.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Authored the earlier session-migration restore hardening commit and four of the five commits on this repair branch; the PR timeline also shows current assignment to vincentkoc. (role: migration restore owner and recent area contributor; confidence: high; commits: 3dc38267cdd1, 854ef0d0e6d8, 673f77f7ed85; files: src/commands/doctor-session-sqlite-migration-run.ts, src/commands/doctor-session-sqlite.test.ts)
  • Peter Steinberger: Current-main blame attributes the manifest-at-a-time restore loop that the PR replaces to this file introduction, making this a useful routing contact for the current behavior. (role: current-main code carrier; confidence: medium; commits: d8ba00f8a262; files: src/commands/doctor-session-sqlite-migration-run.ts)

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 (3 earlier review cycles)
  • reviewed 2026-08-01T05:05:21.841Z sha 39d2718b36f72c6b16f0b92363cccdc7a88f7026 :: needs real behavior proof before merge. :: [P1] Preserve a conflict for an unrecorded missing archive
  • reviewed 2026-08-01T05:41:36.050Z sha 39d2718b36f72c6b16f0b92363cccdc7a88f7026 :: needs real behavior proof before merge. :: [P1] Preserve a conflict for an unrecorded missing archive
  • reviewed 2026-08-01T06:34:47.454Z sha 673f77f :: needs real behavior proof before merge. :: [P1] Avoid loading duplicate transcript archives into memory

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 1, 2026
@vincentkoc vincentkoc self-assigned this Aug 1, 2026
harjothkhara and others added 4 commits August 1, 2026 13:57
…a store

Restore picked the winning archive by manifest iteration order, newest first.
When a legacy writer recreated an empty sessions.json between migrations, the
newest run had archived that empty file, so restore installed it and then
refused the only archive holding real sessions as a conflict.

Resolve one winning archive per destination before writing anything, preferring
the earliest run whose archive is still restorable. Losing archives are never
deleted and stay visible as conflicts.

Closes openclaw#116163
@vincentkoc
vincentkoc force-pushed the oss-find/openclaw-2026-07-31-e branch from 39d2718 to 673f77f Compare August 1, 2026 06:24
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L and removed size: S labels Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. and removed triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. labels Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 1, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Final P0 landing gate for exact head 6e956006605ee5595f8f4125b69bd94658b0a72c:

  • exact-head CI: 82 successful, 37 skipped/neutral, 0 failed/pending; openclaw/ci-gate green
  • focused doctor restore suite: 83/83
  • real built CLI: original one-entry index restored; later empty archives preserved; zero issues/conflicts
  • destructive duplicate/archive proof includes the 4 MiB streaming-hash regression
  • autoreview: no P0/P1 findings
  • ClawSweeper: exact-head no findings, proof sufficient; no remaining rank-up moves
  • review threads: 0 unresolved
  • live main: edfeec49e7a705edc9ec40dfcc61715945f0384d
  • touched-path drift: 0
  • clean synthetic merge tree: a4f92b29d63b43ecfbed5fdaf56fb8afab45c475

Landing via squash with contributor authorship preserved.

@vincentkoc
vincentkoc merged commit 2358566 into openclaw:main Aug 1, 2026
216 of 230 checks passed
vincentkoc added a commit that referenced this pull request Aug 1, 2026
* origin/main: (41 commits)
  test(ci): update memory helper routing expectation (#117295)
  fix(canvas): emit successful control results in JSON mode (#117297)
  fix(imessage): settle native inbound reply delivery (#117282)
  fix(agents): reject invalid UTF-8 LSP responses (#117271)
  fix(line): centralize card and template message alt text (#117280)
  fix(release): validate candidates before Docker publication (#117252)
  fix(media): validate provider-owned generated media downloads (#117281)
  fix(feishu): restore custom HTTPS API domains (#117278)
  fix(models): reuse prepared plugin metadata (#117131)
  fix(agents): stop fallback after delivered-but-failed attempts (#114628)
  fix(memory): reuse targeted session corpus snapshot (#117247)
  fix(matrix): reconcile durable sends after response loss
  test(release): repair full validation regressions (#116931)
  fix(linux-canvas): report socket watcher fallback (#109502)
  fix(codex): preserve authoritative turn completion (#117185)
  fix(canvas): preserve widgets across derived-name collisions (#117132)
  fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (#117206)
  fix(msteams): prevent duplicate final replies (#116398)
  fix(doctor): session SQLite restore installs an empty session index over the valid archive (#117221)
  fix(plugins): preserve workspace plugins across CLI and control UI (#117265)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
…ver the valid archive (openclaw#117221)

* fix(doctor): restore the pre-migration session index when runs share a store

Restore picked the winning archive by manifest iteration order, newest first.
When a legacy writer recreated an empty sessions.json between migrations, the
newest run had archived that empty file, so restore installed it and then
refused the only archive holding real sessions as a conflict.

Resolve one winning archive per destination before writing anything, preferring
the earliest run whose archive is still restorable. Losing archives are never
deleted and stay visible as conflicts.

Closes openclaw#116163

* fix(doctor): fail closed on ambiguous session restores

* test(doctor): key restore conflicts by archive

* fix(doctor): narrow restored archive lookup

* fix(doctor): stream restore archive hashing

---------

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main: (41 commits)
  test(ci): update memory helper routing expectation (openclaw#117295)
  fix(canvas): emit successful control results in JSON mode (openclaw#117297)
  fix(imessage): settle native inbound reply delivery (openclaw#117282)
  fix(agents): reject invalid UTF-8 LSP responses (openclaw#117271)
  fix(line): centralize card and template message alt text (openclaw#117280)
  fix(release): validate candidates before Docker publication (openclaw#117252)
  fix(media): validate provider-owned generated media downloads (openclaw#117281)
  fix(feishu): restore custom HTTPS API domains (openclaw#117278)
  fix(models): reuse prepared plugin metadata (openclaw#117131)
  fix(agents): stop fallback after delivered-but-failed attempts (openclaw#114628)
  fix(memory): reuse targeted session corpus snapshot (openclaw#117247)
  fix(matrix): reconcile durable sends after response loss
  test(release): repair full validation regressions (openclaw#116931)
  fix(linux-canvas): report socket watcher fallback (openclaw#109502)
  fix(codex): preserve authoritative turn completion (openclaw#117185)
  fix(canvas): preserve widgets across derived-name collisions (openclaw#117132)
  fix(channels): config validation rejects documented channels.<id>.configWrites on 13 channels (openclaw#117206)
  fix(msteams): prevent duplicate final replies (openclaw#116398)
  fix(doctor): session SQLite restore installs an empty session index over the valid archive (openclaw#117221)
  fix(plugins): preserve workspace plugins across CLI and control UI (openclaw#117265)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commands Command implementations docs Improvements or additions to documentation merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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.

Session SQLite restore can select an empty sessions.json before the valid pre-migration archive

2 participants