Skip to content

fix(acp): start a fresh session after /acp close - #168522

Open
synthalorian wants to merge 4 commits into
openclaw:mainfrom
synthalorian:fix/issue-107487
Open

synthalorian wants to merge 4 commits into
openclaw:mainfrom
synthalorian:fix/issue-107487

Conversation

@synthalorian

@synthalorian synthalorian commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

/acp close cleared the SQLite acp_sessions row but left the acpx FileSessionStore record reusable. The next turn called session/resume with the stale acp_session_id instead of session/new.

Why This Change Was Made

Manual close omitted discardPersistentState. acpx treats that as release: it saves a closed record without reset_on_next_ensure, and its reuse policy accepts that record. The manager already forwards discard and already drops its handle cache. The missing piece was asking acpx to discard, and, when close recovery only has a persisted locator, running acpx's existing prepare-fresh path so that exact record gets the durable marker. In-memory markFresh does not survive restart. The write still goes through acpx and the existing physical-record fence. Unrelated session files are not touched. Owner-repair verdicts are unchanged. A missing backend stays best-effort; once fresh-session preparation actually runs, a failure is raised before metadata is cleared.

User Impact

After /acp close, the next message for that session starts a new ACP conversation, including after the runtime is recreated. Other sessions keep their stored identity and can still resume.

Evidence

  • Head 1608bcad00d6c84b2ff39fce8449bda1657a6e53.
  • src/auto-reply/reply/commands-acp.close-restart.process.test.ts calls shipped handleAcpCommand with /acp close. That enters getAcpSessionManager().closeSession. The command reply was ✅ Closed ACP session agent:main:acp:closed. Removed 0 bindings.
  • After that close, only the closed acpx record had reset_on_next_ensure: true. Its fixture history file was removed. The unrelated session file was unchanged and had no marker.
  • After disposing the manager and starting a new acpx runtime, the closed session opened as backend 636ab8ae-ef3d-44a7-ab1b-848f675f24be with history ["after"]. agent:main:acp:kept resumed 833e8a49-1b90-4749-9b60-a6558cdb66f9 with history ["kept-before","kept-reopen","kept-after"].
  • Data model: an on-disk acpx.session.v1 record with no acpx object and no reset marker (agent:main:acp:kept, sha256 803b9c922cd20ac5d12eec9ff661e7fcf1137e12538e77fc8c87a5a1daec8b4f before reopen) still opened through the manager and resumed that same backend session. Untouched agent:main:acp:legacy stayed sha256 2ad1c8e260b2095ac320db0e09d009794cba3106ddf74ee898bcf2c7dfdb9998 across reopen, /acp close, and restart.
  • Owner-repair rejection and missing-backend best-effort are unchanged. Invoked fresh-session preparation failures are still raised before metadata is cleared.

Fixes #107487

@clawsweeper

clawsweeper Bot commented Oct 10, 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.

@synthalorian

Copy link
Copy Markdown
Contributor Author

Proof for head a30faded3c38d066e4ba267330e4c3a4731669a5.

/acp close now requests discardPersistentState. Before that flag, src/auto-reply/reply/commands-acp.test.ts failed because the close call omitted it. After the change it passes.

Also passed on this head's patch (rebased onto current main without touching these files):

  • extensions/acpx/src/runtime-fresh-close.test.ts — restarted runtime sees reset_on_next_ensure only on the closed record
  • extensions/acpx/src/runtime-manual-close.process.test.ts — real acpx runtime and fixture agent: after discard close and runtime recreation, the closed session's next prompt is a new backend session id with history ["after"]; the unrelated session resumes ["kept-before", "kept-after"]
  • extensions/acpx/src/runtime.admission.test.ts — 16 passed
  • src/acp/control-plane/manager.runtime-resume-state.test.ts — 4 passed, including invoked preparation failure propagation and owner-repair rejection
  • src/acp/control-plane/manager.test.ts — missing-backend close recovery still succeeds

@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: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

Manual ACP close requests persistent-state discard, durably prepares persisted sessions for fresh creation, and surfaces preparation failures before clearing metadata.

Example: Close agent:main:acp:closed, restart OpenClaw, then initialize that session again.

  • Before: The stored backend identity can resume the previous conversation.
  • After: The durable reset marker prevents reuse, so reinitialization creates a fresh backend conversation.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and no actionable code defect was found, but the supplied shipped run does not establish the central fresh-conversation outcome. Compatibility remains unproven: the capture expressly excludes released-state upgrade, and planted legacy records do not replace an isolated upgrade from current stable v2026.10.9 with settings and unrelated histories intact; this supersedes the earlier version-specific upgrade request.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: A later initialization can silently resume the backend conversation that the user explicitly closed.
Reason: Manual close should end OpenClaw's session lifecycle; the patch restores that intent using existing contracts without adding configuration or public APIs.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this PR addresses a current ACP session-reuse bug, and neither earlier repair merged; no introduced correctness defect was identified.

Priority: P2
Reviewed head: e689b32effa6234549a4e7cfbfcab37337dadec6

Before merge

  • Add real behavior proof - The exact-head Gateway output now proves durable discard, unsupported-close recovery, unrelated-session preservation, and preparation failure before metadata clearing, resolving those previous requests. However, its closed spawned session rejects the next message with missing metadata rather than starting a fresh conversation; provide redacted shipped-flow output for the reported configured persistent-agent case showing a new backend ID and fresh history after close and restart. Redact IPs, keys, phone numbers, and non-public endpoints. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.

Findings

None.

Tests

  • Low-value test extensions/acpx/src/runtime-manual-close.process.test.ts: Remove or consolidate this direct-runtime restart scenario: the retained command-and-manager process regression already exercises the same real runtime, file store, fresh identity, and unrelated-session continuity.
  • Missing end-to-end proof: The supplied Gateway run does not demonstrate fresh backend creation through the reported configured persistent-agent message flow after close and restart; the committed test explicitly initializes the session first.
Agent review details

How this fits together

ACP chat commands enter the session manager, which coordinates OpenClaw metadata and the ACPX plugin; ACPX delegates backend close and persistent-record updates to acpx.

flowchart TD
 A[ACP close command] --> B[Session manager]
 B --> C[ACPX plugin]
 C --> D[acpx runtime]
 D --> E[Persistent session record]
 B --> F[OpenClaw session metadata]
 E --> G[Later session initialization]
Loading

Technical review

Best possible solution:

Keep manual discard and durable preparation in the existing manager and ACPX lifecycle owners.

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

Current-main command arguments and the verified acpx release/reuse contract establish stale backend identity reuse during later initialization; no target code was executed in this review.

Is this the best way to solve the issue?

Using existing discard and prepare-fresh operations fixes the owning lifecycle boundary without deleting unrelated records or introducing another persistence policy.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Manual close command changes intended behavior with a stated reason (6b78544: The available history records consolidation of repeated ACP command flows, not an explicit decision that manual close should retain a reusable backend identity.)
  • Persisted-locator fresh preparation keeps the original intent (ce11e2e: Reset recovery retires timed-out ownership and fences late work; the patch retains those owners while invoking acpx's durable preparation path.)
  • Preparation error handling changes intended behavior with a stated reason (90329e2: The extraction preserved best-effort close recovery; the PR explains why failures after actual preparation starts must prevent metadata clearing while missing-backend cleanup remains best-effort.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still omits discard intent: The current-main manual close handler passes clearMeta and allowBackendUnavailable without discardPersistentState; persisted-locator preparation still only retires process-local generation state. (src/auto-reply/reply/commands-acp/lifecycle.ts:445, 4aaefe346732)
  • Introduced durable preparation: The new persisted-locator path validates ownership, loads the exact record, and invokes the existing closeSession prepare-fresh operation rather than writing a parallel reset format. (extensions/acpx/src/runtime.ts:1217, e689b32effa6)
  • Dependency contract applies: The reviewed plugin pins acpx 0.19.4, imports acpx/runtime, and delegates persistent close/preparation to it; this affirmatively makes that dependency's persistence contract relevant. (extensions/acpx/package.json:14, e689b32effa6)
  • Existing discard and reuse contracts: Verified v0.19.4 resolves to this dependency commit. Ordinary release preserves resumability; discard and prepare-fresh set reset_on_next_ensure, which reuse-policy rejects. (src/runtime/engine/manager.ts:1976, 8e3966092380)
  • New Gateway evidence: The contributor's exact-head isolated Gateway capture shows durable discard, unrelated-session continuity, unsupported-close recovery, and EROFS preserving metadata. After restart, sending directly to the closed spawned key returns missing metadata rather than creating a fresh backend conversation: fix(acp): start a fresh session after /acp close #168522 (comment). (e689b32effa6)
  • Harness explicitly reinitializes after close: The committed command regression calls openSession after restarting the backend, which invokes manager.initializeSession before prompting; it therefore proves fresh reinitialization, not automatic creation by a subsequent Gateway message. (src/auto-reply/reply/commands-acp.close-restart.process.test.ts:301, e689b32effa6)

PR surface

Source +67, Tests +565. Total +632 across 9 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 3 67 0 +67
Tests 6 565 0 +565
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 632 0 +632

Review metrics

Metric Value Why it matters
Production versus test growth Production +67/-0; tests +564/-0 Production growth connects existing discard and preparation owners; restart and persistence coverage has value, but the direct-runtime process case duplicates the stronger command-and-manager case.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #107487
Summary: The canonical issue tracks reusable backend identity after manual close; this PR supplies the remaining repair.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Unwanted conversation reuse affects explicit persistent ACP close operations with limited blast radius.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Consolidate redundant direct-runtime process coverage into the retained command-and-manager regression.

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 (5 earlier review cycles)
  • reviewed 2026-10-10T16:28:10.485Z sha a30faded3c38d066e4ba267330e4c3a4731669a5 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T01:18:52.101Z sha fd21d6e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T01:59:57.833Z sha 1608bca :: needs real behavior proof before merge. :: [P2] Load ACPX through its public service facade in the core test
  • reviewed 2026-10-13T02:39:16.670Z sha 159ee42 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-13T03:16:22.331Z sha e689b32 :: needs real behavior proof before merge. :: none

Reviewed November 2, 2026, 10:38 AM ET / 15:38 UTC (Revision 6).

Manual close released the acpx record, so the stored session id stayed
reusable and the next turn resumed it. Request discard, and persist
acpx's reset marker when recovery only has a persisted record. Leave
unrelated sessions in place. Surface an invoked fresh-session
preparation failure before metadata is cleared; missing-backend cleanup
stays best-effort.
@synthalorian

Copy link
Copy Markdown
Contributor Author

Live proof for head fd21d6eadd871f14cf8ae04816ed33880f0c8c9c (rebased onto upstream/main 582b6dd0041c811fe8dbd24dd88aa33b448b8223).

The harness uses the real AcpxRuntime, createFileSessionStore, and test/fixtures/acp/owner-agent.mjs, the same close/restart path as extensions/acpx/src/runtime-manual-close.process.test.ts. The harness file was not committed. It wrote /tmp/pr-168522-acp-close-proof.json. That file is pasted below unchanged. No secrets were present; local paths were not included in the capture.

Command:

node scripts/run-vitest.mjs extensions/acpx/src/runtime-manual-close.proof.test.ts --maxWorkers=1 --reporter=verbose

Result:

 ✓  extension-acpx  extensions/acpx/src/runtime-manual-close.proof.test.ts > prints live close/restart store proof, including an old record without the reset marker 5165ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  21:08:20
   Duration  24.10s (transform 72%, tests 22%, import 3%, worker 2%, setup 1%)

[test] passed 1 Vitest shard in 25.96s

/tmp/pr-168522-acp-close-proof.json:

{
  "beforePrompts": {
    "closed": {
      "backendSessionId": "d5f9fa02-fafb-47cc-92c0-5276e4523da2",
      "acpxRecordId": "agent:main:acp:closed",
      "history": [
        "before"
      ]
    },
    "kept": {
      "backendSessionId": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "acpxRecordId": "agent:main:acp:kept",
      "history": [
        "kept-before"
      ]
    }
  },
  "fixtureBeforeClose": [
    {
      "file": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05.json",
      "history": [
        "kept-before"
      ]
    },
    {
      "file": "d5f9fa02-fafb-47cc-92c0-5276e4523da2.json",
      "history": [
        "before"
      ]
    }
  ],
  "afterLegacyPlant": [
    {
      "file": "agent%3Amain%3Aacp%3Aclosed.json",
      "bytes": 2496,
      "sha256": "b3b64e724829496effea2be68e759f50ca81e837dfe9df85a416350e4dfa6b99",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:closed",
      "acp_session_id": "d5f9fa02-fafb-47cc-92c0-5276e4523da2",
      "name": "agent:main:acp:closed",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": [
        "config_options"
      ]
    },
    {
      "file": "agent%3Amain%3Aacp%3Akept.json",
      "bytes": 2505,
      "sha256": "5ab473254c2d9c893f88c03a9a8569bb4bde6f9b50f7a2a91c24f79215a72f09",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:kept",
      "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "name": "agent:main:acp:kept",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": [
        "config_options"
      ]
    },
    {
      "file": "agent%3Amain%3Aacp%3Alegacy.json",
      "bytes": 1790,
      "sha256": "b038ba695e7030916af8b9ebfb0b64dbed95dfb36a2cdd06ee37539e988b6821",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:legacy",
      "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "name": "agent:main:acp:legacy",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": []
    }
  ],
  "loadedWithoutRewrite": {
    "legacyReset": null,
    "keptReset": null,
    "closedReset": null,
    "legacySchema": "acpx.session.v1",
    "storeAfterLoad": [
      {
        "file": "agent%3Amain%3Aacp%3Aclosed.json",
        "bytes": 2496,
        "sha256": "b3b64e724829496effea2be68e759f50ca81e837dfe9df85a416350e4dfa6b99",
        "schema": "acpx.session.v1",
        "acpx_record_id": "agent:main:acp:closed",
        "acp_session_id": "d5f9fa02-fafb-47cc-92c0-5276e4523da2",
        "name": "agent:main:acp:closed",
        "closed": false,
        "reset_on_next_ensure": null,
        "acpx_keys": [
          "config_options"
        ]
      },
      {
        "file": "agent%3Amain%3Aacp%3Akept.json",
        "bytes": 2505,
        "sha256": "5ab473254c2d9c893f88c03a9a8569bb4bde6f9b50f7a2a91c24f79215a72f09",
        "schema": "acpx.session.v1",
        "acpx_record_id": "agent:main:acp:kept",
        "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
        "name": "agent:main:acp:kept",
        "closed": false,
        "reset_on_next_ensure": null,
        "acpx_keys": [
          "config_options"
        ]
      },
      {
        "file": "agent%3Amain%3Aacp%3Alegacy.json",
        "bytes": 1790,
        "sha256": "b038ba695e7030916af8b9ebfb0b64dbed95dfb36a2cdd06ee37539e988b6821",
        "schema": "acpx.session.v1",
        "acpx_record_id": "agent:main:acp:legacy",
        "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
        "name": "agent:main:acp:legacy",
        "closed": false,
        "reset_on_next_ensure": null,
        "acpx_keys": []
      }
    ]
  },
  "afterMissingRecordPrepareFresh": [
    {
      "file": "agent%3Amain%3Aacp%3Aclosed.json",
      "bytes": 2496,
      "sha256": "b3b64e724829496effea2be68e759f50ca81e837dfe9df85a416350e4dfa6b99",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:closed",
      "acp_session_id": "d5f9fa02-fafb-47cc-92c0-5276e4523da2",
      "name": "agent:main:acp:closed",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": [
        "config_options"
      ]
    },
    {
      "file": "agent%3Amain%3Aacp%3Akept.json",
      "bytes": 2505,
      "sha256": "5ab473254c2d9c893f88c03a9a8569bb4bde6f9b50f7a2a91c24f79215a72f09",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:kept",
      "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "name": "agent:main:acp:kept",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": [
        "config_options"
      ]
    },
    {
      "file": "agent%3Amain%3Aacp%3Alegacy.json",
      "bytes": 1790,
      "sha256": "b038ba695e7030916af8b9ebfb0b64dbed95dfb36a2cdd06ee37539e988b6821",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:legacy",
      "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "name": "agent:main:acp:legacy",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": []
    }
  ],
  "afterDiscardClose": [
    {
      "file": "agent%3Amain%3Aacp%3Aclosed.json",
      "bytes": 2572,
      "sha256": "2dc6d04a470a856945c4a360de8f6be0c3e73fff5c6b44f2bcbd2824ffc64ca6",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:closed",
      "acp_session_id": "d5f9fa02-fafb-47cc-92c0-5276e4523da2",
      "name": "agent:main:acp:closed",
      "closed": true,
      "reset_on_next_ensure": true,
      "acpx_keys": [
        "config_options",
        "reset_on_next_ensure"
      ]
    },
    {
      "file": "agent%3Amain%3Aacp%3Akept.json",
      "bytes": 2505,
      "sha256": "5ab473254c2d9c893f88c03a9a8569bb4bde6f9b50f7a2a91c24f79215a72f09",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:kept",
      "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "name": "agent:main:acp:kept",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": [
        "config_options"
      ]
    },
    {
      "file": "agent%3Amain%3Aacp%3Alegacy.json",
      "bytes": 1790,
      "sha256": "b038ba695e7030916af8b9ebfb0b64dbed95dfb36a2cdd06ee37539e988b6821",
      "schema": "acpx.session.v1",
      "acpx_record_id": "agent:main:acp:legacy",
      "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "name": "agent:main:acp:legacy",
      "closed": false,
      "reset_on_next_ensure": null,
      "acpx_keys": []
    }
  ],
  "fixtureAfterDiscardClose": [
    {
      "file": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05.json",
      "history": [
        "kept-before"
      ]
    }
  ],
  "afterRestart": {
    "closed": {
      "previousBackendSessionId": "d5f9fa02-fafb-47cc-92c0-5276e4523da2",
      "backendSessionId": "c34e5c3e-c78f-4aaf-8575-966979005452",
      "sameBackendSession": false,
      "history": [
        "after"
      ]
    },
    "kept": {
      "previousBackendSessionId": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "backendSessionId": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
      "sameBackendSession": true,
      "history": [
        "kept-before",
        "kept-after"
      ]
    },
    "store": [
      {
        "file": "agent%3Amain%3Aacp%3Aclosed.json",
        "bytes": 2493,
        "sha256": "979498835eb43c85164018b525360d79b60cfd476c5f8f4ef84d48268a3b32df",
        "schema": "acpx.session.v1",
        "acpx_record_id": "agent:main:acp:closed",
        "acp_session_id": "c34e5c3e-c78f-4aaf-8575-966979005452",
        "name": "agent:main:acp:closed",
        "closed": false,
        "reset_on_next_ensure": null,
        "acpx_keys": [
          "config_options"
        ]
      },
      {
        "file": "agent%3Amain%3Aacp%3Akept.json",
        "bytes": 3021,
        "sha256": "ec75a9afa056d26ac27ba2836cdf18871a9ee88f5b706f9c77d73b1ed98dd168",
        "schema": "acpx.session.v1",
        "acpx_record_id": "agent:main:acp:kept",
        "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
        "name": "agent:main:acp:kept",
        "closed": false,
        "reset_on_next_ensure": null,
        "acpx_keys": [
          "config_options"
        ]
      },
      {
        "file": "agent%3Amain%3Aacp%3Alegacy.json",
        "bytes": 1790,
        "sha256": "b038ba695e7030916af8b9ebfb0b64dbed95dfb36a2cdd06ee37539e988b6821",
        "schema": "acpx.session.v1",
        "acpx_record_id": "agent:main:acp:legacy",
        "acp_session_id": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05",
        "name": "agent:main:acp:legacy",
        "closed": false,
        "reset_on_next_ensure": null,
        "acpx_keys": []
      }
    ],
    "fixture": [
      {
        "file": "c34e5c3e-c78f-4aaf-8575-966979005452.json",
        "history": [
          "after"
        ]
      },
      {
        "file": "c772d0b2-c2c5-4d87-ae73-62c901e8ec05.json",
        "history": [
          "kept-before",
          "kept-after"
        ]
      }
    ]
  }
}

Reading that capture:

  • Before discard close, agent:main:acp:closed was backend session d5f9fa02-fafb-47cc-92c0-5276e4523da2 with fixture history ["before"] and reset_on_next_ensure null. agent:main:acp:kept was c772d0b2-c2c5-4d87-ae73-62c901e8ec05 with ["kept-before"] and the marker null.
  • After discard close, only the closed record changed: closed: true, reset_on_next_ensure: true, sha256 2dc6d04a470a856945c4a360de8f6be0c3e73fff5c6b44f2bcbd2824ffc64ca6. The kept record stayed sha256 5ab473254c2d9c893f88c03a9a8569bb4bde6f9b50f7a2a91c24f79215a72f09 with the marker null. The closed fixture history file was gone; the kept fixture file still had ["kept-before"].
  • After runtime recreation, the closed session was not resumed: backend session c34e5c3e-c78f-4aaf-8575-966979005452 (sameBackendSession: false) and history ["after"]. The unrelated session resumed the same backend id with history ["kept-before", "kept-after"].
  • Data model: agent:main:acp:legacy is an old acpx.session.v1 record with no acpx object. store.load returned it with legacyReset: null and legacySchema: "acpx.session.v1". Its sha256 stayed b038ba695e7030916af8b9ebfb0b64dbed95dfb36a2cdd06ee37539e988b6821 after load, after prepare-fresh for a missing persisted record, after the other session's discard close, and after restart. Prepare-fresh for the missing record did not rewrite the closed or kept files either.

Committed tests on the same head:

node scripts/run-vitest.mjs extensions/acpx/src/runtime-manual-close.process.test.ts extensions/acpx/src/runtime-fresh-close.test.ts src/acp/control-plane/manager.runtime-resume-state.test.ts --maxWorkers=1
 ✓  acp  src/acp/control-plane/manager.runtime-resume-state.test.ts > tryPrepareFreshManagerRuntimeSession > records a skip outcome when the backend is not registered 51ms
 ✓  acp  src/acp/control-plane/manager.runtime-resume-state.test.ts > tryPrepareFreshManagerRuntimeSession > records a skip outcome when the backend lacks prepareFreshSession 1ms
 ✓  acp  src/acp/control-plane/manager.runtime-resume-state.test.ts > propagates an invoked fresh-session preparation failure 3ms
 ✓  acp  src/acp/control-plane/manager.runtime-resume-state.test.ts > does not turn an owner migration rejection into successful fresh preparation 1ms
 Test Files  1 passed (1)
      Tests  4 passed (4)

 ✓  extension-acpx  extensions/acpx/src/runtime-manual-close.process.test.ts > starts a new ACP session after manual close and still resumes an unrelated session 5015ms
 ✓  extension-acpx  extensions/acpx/src/runtime-fresh-close.test.ts > persists a fresh-session marker for the closed ACPX record only 3ms
 Test Files  2 passed (2)
      Tests  2 passed (2)
node scripts/run-vitest.mjs src/auto-reply/reply/commands-acp.test.ts -t "closes the bound thread ACP session" --maxWorkers=1
 ✓  infra  src/auto-reply/reply/commands-acp.test.ts > /acp command > closes the bound thread ACP session when an explicit session token is unresolvable 3661ms
 Test Files  1 passed (1)
      Tests  1 passed | 41 skipped (42)

Missing-backend and missing-hook preparation still return. An invoked preparation failure is still raised. Owner-migration rejection is still rethrown.

@synthalorian

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Drive handleAcpCommand through the session manager, then restart.
The closed session starts a new backend conversation. An on-disk
record without the reset marker still opens, and an untouched
legacy record is not rewritten.
@synthalorian

Copy link
Copy Markdown
Contributor Author

Live proof for head 1608bcad00d6c84b2ff39fce8449bda1657a6e53.

This run calls the shipped command handleAcpCommand with /acp close. That handler is the /acp close entry in src/auto-reply/reply/commands-acp.ts, and it closes through getAcpSessionManager().closeSession (discardPersistentState, allowBackendUnavailable, clearMeta, reason manual-close). Sessions are opened and prompted through that same manager. Restart disposes the manager and starts a new acpx runtime on the same on-disk store.

Command:

node scripts/run-vitest.mjs src/auto-reply/reply/commands-acp.close-restart.process.test.ts --maxWorkers=1 --reporter=verbose

Stdout from the test (one JSON line), then the Vitest summary:

{"beforeClose":{"closed":{"backendSessionId":"9df7d9dc-13cf-4c95-b765-f9c874df7c6a","history":["before"]},"kept":{"backendSessionId":"833e8a49-1b90-4749-9b60-a6558cdb66f9","history":["kept-before"]},"fixture":[{"file":"833e8a49-1b90-4749-9b60-a6558cdb66f9.json","history":["kept-before"]},{"file":"9df7d9dc-13cf-4c95-b765-f9c874df7c6a.json","history":["before"]}]},"preUpgradeOnDisk":[{"file":"agent%3Amain%3Aacp%3Aclosed.json","bytes":2574,"sha256":"22129005fcc5252b7229905a77307dfa299f61848ba81e09ca27e8694fe2e627","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:closed","acp_session_id":"9df7d9dc-13cf-4c95-b765-f9c874df7c6a","closed":true,"reset_on_next_ensure":null,"acpx_keys":["config_options"]},{"file":"agent%3Amain%3Aacp%3Akept.json","bytes":1860,"sha256":"803b9c922cd20ac5d12eec9ff661e7fcf1137e12538e77fc8c87a5a1daec8b4f","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:kept","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":true,"reset_on_next_ensure":null,"acpx_keys":[]},{"file":"agent%3Amain%3Aacp%3Alegacy.json","bytes":1864,"sha256":"2ad1c8e260b2095ac320db0e09d009794cba3106ddf74ee898bcf2c7dfdb9998","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:legacy","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":true,"reset_on_next_ensure":null,"acpx_keys":[]}],"preUpgradeOpen":{"previousBackendSessionId":"833e8a49-1b90-4749-9b60-a6558cdb66f9","backendSessionId":"833e8a49-1b90-4749-9b60-a6558cdb66f9","sameBackendSession":true,"history":["kept-before","kept-reopen"],"store":[{"file":"agent%3Amain%3Aacp%3Aclosed.json","bytes":2574,"sha256":"22129005fcc5252b7229905a77307dfa299f61848ba81e09ca27e8694fe2e627","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:closed","acp_session_id":"9df7d9dc-13cf-4c95-b765-f9c874df7c6a","closed":true,"reset_on_next_ensure":null,"acpx_keys":["config_options"]},{"file":"agent%3Amain%3Aacp%3Akept.json","bytes":3060,"sha256":"7dbb5d63f992e0835c28b39211b12c15f269807d6c59cd01b2e67c2c93e5a70a","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:kept","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":false,"reset_on_next_ensure":null,"acpx_keys":["config_options"]},{"file":"agent%3Amain%3Aacp%3Alegacy.json","bytes":1864,"sha256":"2ad1c8e260b2095ac320db0e09d009794cba3106ddf74ee898bcf2c7dfdb9998","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:legacy","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":true,"reset_on_next_ensure":null,"acpx_keys":[]}]},"command":{"text":"✅ Closed ACP session agent:main:acp:closed. Removed 0 bindings."},"afterCommand":{"store":[{"file":"agent%3Amain%3Aacp%3Aclosed.json","bytes":2608,"sha256":"80191a41555d228dc91a3dae2c5c7227760e8fce7a8c6cd744e229a74c7242c4","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:closed","acp_session_id":"9df7d9dc-13cf-4c95-b765-f9c874df7c6a","closed":true,"reset_on_next_ensure":true,"acpx_keys":["config_options","reset_on_next_ensure"]},{"file":"agent%3Amain%3Aacp%3Akept.json","bytes":3060,"sha256":"7dbb5d63f992e0835c28b39211b12c15f269807d6c59cd01b2e67c2c93e5a70a","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:kept","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":false,"reset_on_next_ensure":null,"acpx_keys":["config_options"]},{"file":"agent%3Amain%3Aacp%3Alegacy.json","bytes":1864,"sha256":"2ad1c8e260b2095ac320db0e09d009794cba3106ddf74ee898bcf2c7dfdb9998","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:legacy","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":true,"reset_on_next_ensure":null,"acpx_keys":[]}],"fixture":[{"file":"833e8a49-1b90-4749-9b60-a6558cdb66f9.json","history":["kept-before","kept-reopen"]}]},"afterRestart":{"closed":{"previousBackendSessionId":"9df7d9dc-13cf-4c95-b765-f9c874df7c6a","backendSessionId":"636ab8ae-ef3d-44a7-ab1b-848f675f24be","sameBackendSession":false,"history":["after"]},"kept":{"previousBackendSessionId":"833e8a49-1b90-4749-9b60-a6558cdb66f9","backendSessionId":"833e8a49-1b90-4749-9b60-a6558cdb66f9","sameBackendSession":true,"history":["kept-before","kept-reopen","kept-after"]},"store":[{"file":"agent%3Amain%3Aacp%3Aclosed.json","bytes":2529,"sha256":"185d0bb01138a041d999678529a9d80ac1d93e068acce6bc2a0239cde572067e","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:closed","acp_session_id":"636ab8ae-ef3d-44a7-ab1b-848f675f24be","closed":false,"reset_on_next_ensure":null,"acpx_keys":["config_options"]},{"file":"agent%3Amain%3Aacp%3Akept.json","bytes":3592,"sha256":"a8e235ae630511eae533d50b45a394b1140827a1566546f9b41a0cb186bae18b","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:kept","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":false,"reset_on_next_ensure":null,"acpx_keys":["config_options"]},{"file":"agent%3Amain%3Aacp%3Alegacy.json","bytes":1864,"sha256":"2ad1c8e260b2095ac320db0e09d009794cba3106ddf74ee898bcf2c7dfdb9998","schema":"acpx.session.v1","acpx_record_id":"agent:main:acp:legacy","acp_session_id":"833e8a49-1b90-4749-9b60-a6558cdb66f9","closed":true,"reset_on_next_ensure":null,"acpx_keys":[]}],"fixture":[{"file":"636ab8ae-ef3d-44a7-ab1b-848f675f24be.json","history":["after"]},{"file":"833e8a49-1b90-4749-9b60-a6558cdb66f9.json","history":["kept-before","kept-reopen","kept-after"]}]}}
 ✓  infra  src/auto-reply/reply/commands-acp.close-restart.process.test.ts > closes through shipped /acp close, then restarts without resuming that session 9476ms

 Test Files  1 passed (1)
      Tests  1 passed (1)
   Start at  21:49:22
   Duration  12.32s (tests 79%, transform 11%, import 9%, setup 2%)

[test] passed 1 Vitest shard in 15.55s

What that stdout shows:

  • Shipped command reply: ✅ Closed ACP session agent:main:acp:closed. Removed 0 bindings.
  • After that command, only agent:main:acp:closed has reset_on_next_ensure: true (sha256 80191a41555d228dc91a3dae2c5c7227760e8fce7a8c6cd744e229a74c7242c4). Its fixture history file is gone. agent:main:acp:kept stays sha256 7dbb5d63f992e0835c28b39211b12c15f269807d6c59cd01b2e67c2c93e5a70a with the marker absent.
  • After manager dispose and a new runtime, the closed session is not resumed: backend 636ab8ae-ef3d-44a7-ab1b-848f675f24be (sameBackendSession: false), history ["after"]. The unrelated session resumes 833e8a49-1b90-4749-9b60-a6558cdb66f9 with history ["kept-before","kept-reopen","kept-after"].
  • Data model: before reopen, agent:main:acp:kept is an on-disk acpx.session.v1 record with acpx_keys: [] and reset_on_next_ensure: null (sha256 803b9c922cd20ac5d12eec9ff661e7fcf1137e12538e77fc8c87a5a1daec8b4f). Opening it through the manager resumes the same backend session and history ["kept-before","kept-reopen"]. Untouched agent:main:acp:legacy stays sha256 2ad1c8e260b2095ac320db0e09d009794cba3106ddf74ee898bcf2c7dfdb9998 through that open, the /acp close, and the restart. It is not bulk-rewritten and never gains the marker.

@synthalorian

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

The close-restart proof imported extensions/acpx/src/runtime.js, which
the core boundary rejects, and it called Array#sort(). Register the
shipped acpx plugin instead and keep /acp close on handleAcpCommand.
@synthalorian

synthalorian commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

Head 159ee42c5ac43f0a99b86db9e544ad8f3f1e8046.

1608bcad00d failed on the new proof file, not on owner-repair or the close behavior.

Quoted logs:

  • checks-node-changed-boundary: AssertionError: expected [ { …(2) } ] to strictly equal [] at test/extension-test-boundary.test.ts:285. Received src/auto-reply/reply/commands-acp.close-restart.process.test.ts importing ../../../extensions/acpx/src/runtime.js.
  • check-additional-boundaries: lint:tmp:tsgo-core-boundary failed (exit 1) with Core tsgo graphs must not include bundled extension files, including core-test-messaging: extensions/acpx/src/runtime.ts.
  • check-lint-core-4: src/auto-reply/reply/commands-acp.close-restart.process.test.ts:52:28: error: Use Array#toSorted() instead of Array#sort(). (unicorn(no-array-sort)) (also lines 70 and 77).
  • checks-node-changed-compact-large-14 failed in unrelated src/gateway/github-repository-publication-restart.test.ts:138 (expected undefined to match object { confirmation: null, result: { code: "session_changed" } } and Error: My GitHub owner changed; retry from your current profile.). That file is not in this diff. This push retriggers it.

Fix: the proof no longer imports extension source. It loads the shipped acpx plugin through loadBundledPluginFacade (pluginId: "acpx", artifactBasename: "index.js"), starts that service, and still closes with handleAcpCommand("/acp close"). Sorts use toSorted(). Owner-repair, the writer, and the pre-upgrade record case are unchanged.

Local proof still passed: command reply ✅ Closed ACP session agent:main:acp:closed. Removed 0 bindings.; only that record gained reset_on_next_ensure: true; after restart the closed session was a new backend id with history ["after"]; agent:main:acp:kept resumed; untouched legacy sha256 a2c91ceb2c07b79c73e179231f9e8c59db2be99d655a2c8c2e71cb81687be220 stayed the same.

CI for this head is still queued: https://github.com/openclaw/openclaw/actions/runs/38337132885

registerService can pass OpenClawPluginServiceV2. Keep the runtime
guard on the v1 getRuntime service the shipped acpx plugin registers.
@synthalorian

Copy link
Copy Markdown
Contributor Author

Shipped Gateway proof for head e689b32effa6234549a4e7cfbfcab37337dadec6.

Isolated Gateway only. Temp state dir. Not the operator Gateway, not the live session store, not port 18789. git rev-parse HEAD was e689b32effa6234549a4e7cfbfcab37337dadec6 before the run. The process was this worktree's dist/index.js.

openclaw gateway call chat.send is refused in this exec context (OPENCLAW_SHELL=exec), so the turns below are Gateway WebSocket RPCs (chat.send, agent.wait, chat.history) against that isolated process. Health returned ok with plugins acpx and memory-core loaded. No live model credentials. This is not a v2026.10.2 upgrade: nothing here loaded a store produced by that version.

Command:

unshare --user --map-root-user --mount bash ns-gateway.sh \
  node <worktree>/dist/index.js gateway --port <ephemeral> --bind loopback --allow-unconfigured

The private user/mount namespace is only so the preparation-failure step can remount the temp acpx sessions directory read-only. The host mount table and the operator Gateway were not changed. acpx chmods that directory to 0700 before writing, so a plain chmod does not stick.

1. close/restart

Spawned two persistent support sessions and prompted them.

RPC /acp spawn support lastAssistant="✅ Spawned ACP session agent:main:acp:5f79dfcd-9717-471c-8443-ed6f6dcf436a (persistent, backend acpx). Session is unbound (use /acp spawn ... --bind here to create a session bound to this conversation)."
RPC /acp spawn support lastAssistant="✅ Spawned ACP session agent:main:acp:0c7ad5e8-7ee6-47a6-b6ff-16ca5753306b (persistent, backend acpx). Session is unbound (use /acp spawn ... --bind here to create a session bound to this conversation)."
RPC prompt session=agent:main:acp:5f79dfcd-9717-471c-8443-ed6f6dcf436a text="before-closed" wait={"status":"ok"} backend={"sessionId":"5998565a-2798-4640-b2d0-11f3aff06a78","history":["before-closed"]}
RPC prompt session=agent:main:acp:0c7ad5e8-7ee6-47a6-b6ff-16ca5753306b text="before-kept" wait={"status":"ok"} backend={"sessionId":"016bb4fa-5fc0-42f9-98ee-8d364339369f","history":["before-kept"]}

/acp close on the first session:

RPC /acp close agent:main:acp:5f79dfcd-9717-471c-8443-ed6f6dcf436a wait={"status":"ok"} lastAssistant="✅ Closed ACP session agent:main:acp:5f79dfcd-9717-471c-8443-ed6f6dcf436a. Removed 0 bindings."

After that command, the closed session's acp_sessions row was gone. The kept row remained (acpxSessionId 016bb4fa-5fc0-42f9-98ee-8d364339369f). The closed acpx record was closed: true, reset_on_next_ensure: true, sha256 7ded4e6a643540684cfd9a2b93fdd034238c6b5d49ea6c53a506731a4167d22f. The kept record stayed sha256 572d659b0839ce3b6ada69b715d06dac1273312030f2ec979f7d6c190b4e6377 with reset_on_next_ensure: null. The closed fixture history file was gone. The kept fixture file was still ["before-kept"].

Stopped that Gateway and started the same dist/index.js entry on the same temp state, again not port 18789.

RPC prompt session=agent:main:acp:5f79dfcd-9717-471c-8443-ed6f6dcf436a text="after-closed" wait={"status":"error","error":"AcpRuntimeError [ACP_SESSION_INIT_FAILED]: ACP metadata is missing for agent:main:acp:5f79dfcd-9717-471c-8443-ed6f6dcf436a. Recreate this ACP session with /acp spawn and rebind the thread."}
RPC prompt session=agent:main:acp:0c7ad5e8-7ee6-47a6-b6ff-16ca5753306b text="after-kept" wait={"status":"ok"} backend={"sessionId":"016bb4fa-5fc0-42f9-98ee-8d364339369f","history":["before-kept","after-kept"]}

The closed session did not resume 5998565a-2798-4640-b2d0-11f3aff06a78. Its metadata was still absent, its acpx sha256 was still 7ded4e6a643540684cfd9a2b93fdd034238c6b5d49ea6c53a506731a4167d22f, and after-closed was not appended to a fixture history file. The unrelated session resumed the same backend id with history ["before-kept","after-kept"] and still had reset_on_next_ensure: null.

2. unsupported-close recovery

The noclose fixture speaks ACP but does not advertise session/close.

RPC /acp spawn noclose lastAssistant="✅ Spawned ACP session agent:main:acp:08196df8-8be2-4e43-8312-f0e0b85c3da2 (persistent, backend acpx). Session is unbound (use /acp spawn ... --bind here to create a session bound to this conversation)."
RPC prompt session=agent:main:acp:08196df8-8be2-4e43-8312-f0e0b85c3da2 text="before-unsupported" wait={"status":"ok"} backend={"sessionId":"003e66bd-e1c1-40c9-91ae-8c169a0f0c4b","history":["before-unsupported"]}
RPC /acp close agent:main:acp:08196df8-8be2-4e43-8312-f0e0b85c3da2 wait={"status":"ok"} lastAssistant="✅ Closed ACP session agent:main:acp:08196df8-8be2-4e43-8312-f0e0b85c3da2 (Agent does not support session/close for agent:main:acp:08196df8-8be2-4e43-8312-f0e0b85c3da2.). Removed 0 bindings."

Recovery still closed it. That acp_sessions row was gone. Its acpx record was closed: true, reset_on_next_ensure: true, sha256 45e3201a24895ed08058f66b10b8c5b9a22787de1935d39bcafaf5cd4a7d0773. The kept session row and sha256 f74a92fd81b65d296761cad247ae1fa6b47d5f7f7b799a150747fec941920fb9 were unchanged.

3. preparation failure before metadata clearing

Spawned another noclose session, prompted before-prep-fail (backend ac193f9f-7c4d-4af0-9c09-1a623ce507e4), then remounted <proof>/acpx-state/sessions read-only inside the Gateway's mount namespace and sent /acp close.

Before close, that row existed and the record was sha256 d47c10db3fb3c7a6ef084329740c1b70a0602e97dd39add7cbf6da5b2a1a8ba7, closed: false, reset_on_next_ensure: null.

RPC /acp close agent:main:acp:2d75d0a1-0af3-4954-b5df-b4b38a0edc31 wait={"status":"ok"} lastAssistant="ACP error (ACP_TURN_FAILED): EROFS: read-only file system, chmod '<proof>/acpx-state/sessions'"

After that error the same acp_sessions row was still present (acpxSessionId ac193f9f-7c4d-4af0-9c09-1a623ce507e4). The record sha256 was still d47c10db3fb3c7a6ef084329740c1b70a0602e97dd39add7cbf6da5b2a1a8ba7, closed: false, reset_on_next_ensure: null. Metadata was not cleared.

@synthalorian

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 2, 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. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 2, 2026

This branch has not been deployed

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

Labels

extensions: acpx P2 Normal backlog priority with limited blast radius. proof: telegram-e2e This PR needs Telegram Test Server proof with the repository E2E skill. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: /acp close does not clear acpx FileSessionStore — stale acp_session_id causes unwanted session/resume instead of session/new

1 participant