Skip to content

fix(agents): reject bundle LSP calls after disposal - #133340

Merged
steipete merged 2 commits into
openclaw:mainfrom
qingminglong:codex/code-bug-untagged-spill-flush-20260830
Aug 31, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
qingminglong:codex/code-bug-untagged-spill-flush-20260830

Conversation

@qingminglong

@qingminglong qingminglong commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A retained bundle LSP tool could still send requests after its runtime began disposal. The child remains alive during the shutdown handshake, so waiting for process exit lets stale hover, definition, and references calls succeed. An outstanding request also retained its abort listener: aborting it during shutdown sent $/cancelRequest after shutdown.

Why This Change Was Made

Close requests at their lifecycle owner. The canonical request function rejects new tool calls as soon as the existing session is disposed, while permitting the internal shutdown handshake. Disposal synchronously rejects outstanding requests before sending shutdown; the pending-request registry releases their abort listeners, so late caller aborts cannot write cancellation notifications. The final rejection remains to clean up a timed-out shutdown request. This preserves the LSP shutdown contract: only exit may follow shutdown.

User Impact

Retained LSP handles and outstanding requests reject promptly when their runtime closes. Normal requests, cancellation before disposal, and the shutdown/exit handshake keep working. All three materialized tools share the same owner; no configuration, protocol, or persistent state changes.

Evidence

Before editing production, independently authored regressions on trusted main 37db48c3e93cef9330bad6de67fd7d77183e05da showed all three retained methods succeeding during shutdown and after dispose() returned. The expanded tests first perform valid requests and then assert rejection without further child requests. A separate outstanding-request test failed on the initial request-gate-only repair: a caller abort during held shutdown won over disposal and emitted cancellation. After moving pending-request rejection to disposal entry, all 24 tests in src/agents/agent-bundle-lsp-runtime.test.ts pass, including normal cancellation, transport failure, final stdout drainage, framing, and global cleanup.

The real-process harness below uses createBundleLspToolRuntime, production spawn/framing/cleanup, and a synthetic Node child whose shutdown reply is held. The first probe showed each method reaching the live child twice before the repair and once afterward. The extended probe preserves normal pre-disposal cancellation, then starts another outstanding request and aborts it during shutdown. Before the owner-order repair it records a second cancellation after shutdown; afterward the outstanding request rejects as disposed and the only cancellation precedes shutdown. Retained tool calls still reject, shutdown/exit are recorded, and the child closes. This is a real local LSP-process boundary, not editor or external-provider proof.

Node 24.20.0 extended real-process wall times were 4.07 seconds before the owner-order repair and 5.85 seconds after; the JSON below records process RSS and the measured harness duration. These are proof observations, not a performance claim. The full repaired 24-test command took 25.69 seconds, maximum RSS 1,710,211,072 bytes. The recorded passing source hash precedes only an explanatory lifecycle comment; production behavior and tests are identical to the candidate. Contributor code was not executed locally.

Production +11/-1 (net+10), tests +82/-0. The bounded growth adds one shared lifecycle gate, centralizes the disposal error, releases pending requests before protocol shutdown, and explains both ordering constraints. A per-tool guard or another cancellation guard would duplicate ownership. This addresses the latest ClawSweeper production-growth note. Contributor ancestry and credit are preserved. Thanks @qingminglong.

Changed-scope validation passed formatting, core and core-test typechecks, targeted lint, and required repository guards. The full checker covered the initial guard and poll repair; the added pending-request repair passed fresh core/test typechecks, targeted lint, formatting, the full 24-test owner suite, and the real-child probe. The temporary full-check checkout initially lacked the UI workspace dependency link and resolved an older root pako without declarations; linking the existing pinned UI installation corrected that checkout layout, with no dependency or source change.

Published-head CI is green. The real-child runtime results above are from separately authored equivalents on trusted main; hosted CI also executes the exact published source.

Run from the reviewed, dependency-complete checkout with Node 24:

node --import ./scripts/tsx.mjs /path/to/probe.mts "$PWD"
Inspectable synthetic proof harness
// Authored proof draft: run only in a released, dependency-complete trusted checkout.
// Exercises the public runtime factory, production spawn/framing, and tree cleanup.
import assert from "node:assert/strict";
import { createHash } from "node:crypto";
import { readFile } from "node:fs/promises";
import path from "node:path";
import { performance } from "node:perf_hooks";
import { pathToFileURL } from "node:url";
import type { ChildProcess } from "node:child_process";

const repo = process.argv[2];
if (!repo) throw new Error("usage: tools-lsp-real-probe.mts <trusted-checkout>");
const started = performance.now();
const owner = path.join(repo, "src/agents/agent-bundle-lsp-runtime.ts");
const { createBundleLspToolRuntime } = await import(pathToFileURL(owner).href);
const { defaultBundleLspRuntimeDependencies: defaults } = await import(
  pathToFileURL(path.join(repo, "src/agents/agent-bundle-lsp-dependencies.ts")).href
);
const childSource = String.raw`
let buffer = Buffer.alloc(0);
let shutdownId;
function send(id, result) {
  const body = JSON.stringify({ jsonrpc: "2.0", id, result });
  process.stdout.write("Content-Length: " + Buffer.byteLength(body) + "\r\n\r\n" + body);
}
process.on("SIGUSR1", () => {
  if (shutdownId !== undefined) send(shutdownId, null);
});
process.stdin.on("data", (chunk) => {
  buffer = Buffer.concat([buffer, chunk]);
  for (;;) {
    const end = buffer.indexOf("\r\n\r\n");
    if (end < 0) return;
    const size = Number(/Content-Length: (\d+)/i.exec(buffer.subarray(0, end).toString())[1]);
    if (buffer.length < end + 4 + size) return;
    const msg = JSON.parse(buffer.subarray(end + 4, end + 4 + size));
    buffer = buffer.subarray(end + 4 + size);
    process.stderr.write(JSON.stringify({ method: msg.method }) + "\n");
    if (msg.method === "initialize") {
      send(msg.id, { capabilities: { hoverProvider: true, definitionProvider: true, referencesProvider: true } });
    } else if (msg.method === "shutdown") {
      shutdownId = msg.id;
    } else if (msg.method === "exit") {
      process.exit(0);
    } else if (typeof msg.id === "number" && msg.params?.position?.character !== 1) {
      send(msg.id, { contents: "synthetic response", method: msg.method });
    }
  }
});
`;
let child: ChildProcess | undefined;
let runtime: Awaited<ReturnType<typeof createBundleLspToolRuntime>> | undefined;
let disposal: Promise<void> | undefined;
let childClosed: Promise<void> | undefined;
const methods: string[] = [];
let stderrBuffer = "";
let announceShutdown!: () => void;
const shutdownSeen = new Promise<void>((resolve) => { announceShutdown = resolve; });
const observations: Array<Record<string, unknown>> = [];
let closeCode: number | null | undefined;
let closeSignal: NodeJS.Signals | null | undefined;
const deadlines = new Set<ReturnType<typeof setTimeout>>();
function bounded<T>(promise: Promise<T>, label: string): Promise<T> {
  let timer: ReturnType<typeof setTimeout>;
  const deadline = new Promise<never>((_, reject) => {
    timer = setTimeout(() => reject(new Error(`proof deadline: ${label}`)), 3_000);
    deadlines.add(timer);
  });
  return Promise.race([promise, deadline]).finally(() => {
    clearTimeout(timer);
    deadlines.delete(timer);
  });
}
const input = { uri: "file:///synthetic/proof.ts", line: 0, character: 0 };
try {
  assert.notEqual(process.platform, "win32", "this POSIX child-control probe uses SIGUSR1");
  runtime = await bounded(createBundleLspToolRuntime({
    workspaceDir: repo,
    dependencies: {
      ...defaults,
      loadLspConfig: () => ({
        lspServers: { proof: { command: process.execPath, args: ["-e", childSource] } },
        diagnostics: [],
      }),
      spawnServerProcess: (config: unknown) => {
        child = defaults.spawnServerProcess(config);
        childClosed = new Promise<void>((resolve) => {
          child!.once("close", (code, signal) => { closeCode = code; closeSignal = signal; resolve(); });
        });
        child!.stderr!.on("data", (chunk) => {
          stderrBuffer += chunk.toString();
          let end: number;
          while ((end = stderrBuffer.indexOf("\n")) !== -1) {
            const line = stderrBuffer.slice(0, end);
            stderrBuffer = stderrBuffer.slice(end + 1);
            const record = JSON.parse(line);
            methods.push(record.method);
            if (record.method === "shutdown") announceShutdown();
          }
        });
        return child;
      },
    },
  }), "initialize");
  assert.equal(runtime.tools.length, 3);
  for (const tool of runtime.tools) {
    await bounded(tool.execute("before-dispose", input), `valid ${tool.name}`);
  }
  const hover = runtime.tools.find((tool: any) => tool.name === "lsp_hover_proof");
  assert(hover);
  const normalAbort = new AbortController();
  const normalPending = hover.execute("normal-abort", { ...input, character: 1 }, normalAbort.signal).then(
    () => "accepted", (error: unknown) => error instanceof Error ? error.message : String(error),
  );
  normalAbort.abort(new Error("normal caller abort"));
  assert.equal(await normalPending, "normal caller abort");
  const controller = new AbortController();
  const outstanding = hover.execute("outstanding-at-dispose", { ...input, character: 1 }, controller.signal).then(
    () => "accepted", (error: unknown) => error instanceof Error ? error.message : String(error),
  );
  disposal = runtime.dispose();
  await bounded(shutdownSeen, "shutdown reached child");
  assert.equal(child!.exitCode, null);
  assert.equal(child!.signalCode, null);
  controller.abort(new Error("caller aborted during shutdown"));
  const outstandingOutcome = await bounded(outstanding, "outstanding request settlement");
  for (const tool of runtime.tools) {
    const outcome = await bounded(tool.execute("during-dispose", input).then(
      () => "accepted",
      (error: unknown) => error instanceof Error ? error.message : String(error),
    ), `retained ${tool.name}`);
    observations.push({ tool: tool.name, phase: "shutdown-pending", outcome });
  }
  // Release only the synthetic server's held response; runtime still owns exit/termination.
  child!.kill("SIGUSR1");
  await bounded(disposal, "dispose");
  await bounded(childClosed!, "child close");
  const expectedMethods = ["textDocument/hover", "textDocument/definition", "textDocument/references"];
  const requestCounts = Object.fromEntries(expectedMethods.map((method) => [
    method, methods.filter((seen) => seen === method).length,
  ]));
  const passed = observations.every((entry) => entry.outcome === "LSP session disposed") &&
    requestCounts["textDocument/hover"] === 3 && requestCounts["textDocument/definition"] === 1 &&
    requestCounts["textDocument/references"] === 1 && outstandingOutcome === "LSP session disposed" &&
    !methods.slice(methods.indexOf("shutdown") + 1).includes("$/cancelRequest") &&
    methods.filter((method) => method === "$/cancelRequest").length === 1 &&
    methods.filter((method) => method === "shutdown").length === 1;
  console.log(JSON.stringify({
    passed, sourceSha256: createHash("sha256").update(await readFile(owner)).digest("hex"),
    node: process.version, platform: process.platform, observations, requestCounts, methods,
    outstandingOutcome, normalAbortOutcome: "normal caller abort",
    closeCode, closeSignal, wallMs: performance.now() - started, rssBytes: process.memoryUsage().rss,
  }, null, 2));
  if (!passed) process.exitCode = 1;
} finally {
  if (child && child.exitCode === null && child.signalCode === null) {
    child.kill("SIGUSR1");
  }
  await disposal?.catch(() => undefined);
  if (runtime && !disposal) await runtime.dispose();
  if (childClosed) await bounded(childClosed, "final child cleanup");
  for (const timer of deadlines) clearTimeout(timer);
}
Before owner-order repair: retained requests blocked, outstanding abort still leaks after shutdown
{
  "passed": false,
  "sourceSha256": "28e047dd5ee03987546da352ab3b76d45e0db12b0a1bf330b55e8b8943aec8fe",
  "node": "v24.20.0",
  "platform": "darwin",
  "observations": [
    {
      "tool": "lsp_hover_proof",
      "phase": "shutdown-pending",
      "outcome": "LSP session disposed"
    },
    {
      "tool": "lsp_definition_proof",
      "phase": "shutdown-pending",
      "outcome": "LSP session disposed"
    },
    {
      "tool": "lsp_references_proof",
      "phase": "shutdown-pending",
      "outcome": "LSP session disposed"
    }
  ],
  "requestCounts": {
    "textDocument/hover": 3,
    "textDocument/definition": 1,
    "textDocument/references": 1
  },
  "methods": [
    "initialize",
    "initialized",
    "textDocument/hover",
    "textDocument/definition",
    "textDocument/references",
    "textDocument/hover",
    "$/cancelRequest",
    "textDocument/hover",
    "shutdown",
    "$/cancelRequest",
    "exit"
  ],
  "outstandingOutcome": "caller aborted during shutdown",
  "normalAbortOutcome": "normal caller abort",
  "closeCode": null,
  "closeSignal": "SIGTERM",
  "wallMs": 3881.992875,
  "rssBytes": 346505216
}
After owner-order repair: normal cancellation preserved, no cancellation after shutdown
{
  "passed": true,
  "sourceSha256": "1a038c6967b10889c9598d59c31b09b2f73f5e5df82871945c1a9583538830c7",
  "node": "v24.20.0",
  "platform": "darwin",
  "observations": [
    {
      "tool": "lsp_hover_proof",
      "phase": "shutdown-pending",
      "outcome": "LSP session disposed"
    },
    {
      "tool": "lsp_definition_proof",
      "phase": "shutdown-pending",
      "outcome": "LSP session disposed"
    },
    {
      "tool": "lsp_references_proof",
      "phase": "shutdown-pending",
      "outcome": "LSP session disposed"
    }
  ],
  "requestCounts": {
    "textDocument/hover": 3,
    "textDocument/definition": 1,
    "textDocument/references": 1
  },
  "methods": [
    "initialize",
    "initialized",
    "textDocument/hover",
    "textDocument/definition",
    "textDocument/references",
    "textDocument/hover",
    "$/cancelRequest",
    "textDocument/hover",
    "shutdown",
    "exit"
  ],
  "outstandingOutcome": "LSP session disposed",
  "normalAbortOutcome": "normal caller abort",
  "closeCode": null,
  "closeSignal": "SIGTERM",
  "wallMs": 5327.99325,
  "rssBytes": 353878016
}

The exact published commit 5820ed59acc3224fef2a32c6ee6ce418a5af9a3d passes CI attempt 2. All 24 LSP owner tests, including the three retained-tool cases and pending-abort ordering regression, passed in the original LSP test job.

The first full run failed during an unchanged UI shared-page startup: the fixture did not become visible before its existing deadline, and the rejected setup promise propagated to later cases. The complete UI, test harness, workflow and dependency inputs matched a successful companion run. One failed-jobs-only rerun, with no code, deadline or assertion change, passed all affected cases in their original order. The initial render stall remains unexplained; a repeat should capture page, request and Vite diagnostics at shared setup rather than increase timeouts.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XS labels Aug 30, 2026
@qingminglong
qingminglong marked this pull request as ready for review August 30, 2026 15:22
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 3:34 PM ET / 19:34 UTC.

ClawSweeper review

What this changes

The PR makes bundled Language Server Protocol tools reject retained and pending requests once their runtime begins disposal, before the child-process shutdown handshake.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open: current main still admits bundled LSP requests during disposal and leaves pending abort listeners active until after the shutdown wait, while the introduced owner-boundary ordering closes both paths. No blocking defect was found in the patch.

Priority: P2
Reviewed head: 5820ed59acc3224fef2a32c6ee6ce418a5af9a3d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with credible real child-process proof and regression coverage; exact-head CI is the remaining merge gate.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The supplied PR body describes an after-fix terminal probe through the production runtime factory, spawn/framing path, and a real Node child with held shutdown, observing no retained tool or late cancellation write; this matches the changed lifecycle owner. The detailed output lies in an omitted body range and could not be re-fetched because DNS failed, but the reviewed context marks the proof sufficient.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The supplied PR body describes an after-fix terminal probe through the production runtime factory, spawn/framing path, and a real Node child with held shutdown, observing no retained tool or late cancellation write; this matches the changed lifecycle owner. The detailed output lies in an omitted body range and could not be re-fetched because DNS failed, but the reviewed context marks the proof sufficient.
Evidence reviewed 7 items Current-main failure path: Current main marks the session disposed, then waits for shutdown before rejecting pending requests; its request function has no disposed-state gate, so retained tools can still write during that window.
Introduced lifecycle repair: The head rejects every post-disposal request except the runtime’s internal shutdown request and rejects pending requests immediately after closing the session.
Production entry and cleanup owner: Embedded attempts materialize the LSP runtime into the effective tool set, and their early-exit cleanup calls its disposer; gateway shutdown also invokes the global LSP disposer.
Findings None None.
Security None None.

How this fits together

Bundled LSP tools send editor-style requests to a child language-server process. Runtime disposal must stop tool traffic while still completing the child process shutdown and exit sequence.

flowchart LR
  A[Agent tool call] --> B[Bundle LSP runtime]
  B --> C[Pending request registry]
  B --> D[Language server child]
  E[Runtime disposal] --> B
  B --> F[Reject retained and pending calls]
  B --> G[Shutdown then exit]
  D --> G
Loading

Before merge

  • Resolve merge risk (P1) - The production change is net +10 lines; review finds the shared gate, shared error, and synchronous registry close are proportionate to the lifecycle invariant, but exact-head CI remains required before merge.
  • Resolve merge risk (P1) - The official LSP shutdown text and omitted PR-body proof output could not be independently re-fetched because DNS failed; this is a reviewer limitation, not a request for new contributor proof.
  • Complete next step (P2) - No repair job is needed: the patch has no actionable review finding, and the remaining work is normal exact-head CI and maintainer landing.
Agent review details

Security

None.

PR surface

Source +10, Tests +82. Total +92 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 11 1 +10
Tests 1 82 0 +82
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 93 1 +92

Review metrics

Metric Value Why it matters
Production versus regression coverage production +11/-1 (net +10), tests +82/-0 The production growth is limited to one shared disposed-state gate, one shared error constructor, and synchronous pending-request cleanup; the added tests cover every materialized position tool plus the abort ordering race.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one lifecycle-owner rule: synchronously reject non-shutdown calls and detach pending abort listeners at disposal entry, then land once exact-head CI is green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one lifecycle-owner rule: synchronously reject non-shutdown calls and detach pending abort listeners at disposal entry, then land once exact-head CI is green.

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

Yes, source-reproducible: on current main, invoke a retained LSP tool or abort an in-flight tool request after disposal begins but before its shutdown wait completes. The supplied body also describes a matching real-child process scenario, though its detailed output was outside the supplied excerpt.

Is this the best way to solve the issue?

Yes. Closing the shared request owner at disposal entry handles both new retained calls and already-pending abort listeners; per-tool guards or cleanup after the shutdown wait would leave one of those paths open.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0820b89d3b20.

Labels

Label justifications:

  • P2: This repairs a bounded agent-tool lifecycle race without evidence of data loss, a security bypass, or a broader runtime outage.
  • 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 supplied PR body describes an after-fix terminal probe through the production runtime factory, spawn/framing path, and a real Node child with held shutdown, observing no retained tool or late cancellation write; this matches the changed lifecycle owner. The detailed output lies in an omitted body range and could not be re-fetched because DNS failed, but the reviewed context marks the proof sufficient.
  • proof: sufficient: Contributor real behavior proof is sufficient. The supplied PR body describes an after-fix terminal probe through the production runtime factory, spawn/framing path, and a real Node child with held shutdown, observing no retained tool or late cancellation write; this matches the changed lifecycle owner. The detailed output lies in an omitted body range and could not be re-fetched because DNS failed, but the reviewed context marks the proof sufficient.

Evidence

What I checked:

Likely related people:

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

Rank-up moves

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

  • Allow the exact current-head CI run to complete green before landing.

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-08-30T15:27:45.267Z sha 081a77c :: needs maintainer review before merge. :: none

@steipete steipete self-assigned this Aug 31, 2026
Reject retained tools at disposal and release outstanding request abort listeners before the shutdown handshake. Preserve normal cancellation, shutdown, exit, and final cleanup.

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

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

The lifecycle repair now closes pending requests before shutdown as well as rejecting retained calls. The updated body includes inspectable real-child before/after evidence for the cancellation race,24 passing owner tests, fresh type/lint checks, and complete-candidate Codex review. New-head CI is required before landing.

@clawsweeper

clawsweeper Bot commented Aug 31, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete
steipete merged commit 54e2801 into openclaw:main Aug 31, 2026
476 of 480 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
* fix(agents): reject bundle LSP calls after disposal

* fix(agents): close LSP requests before shutdown

Reject retained tools at disposal and release outstanding request abort listeners before the shutdown handshake. Preserve normal cancellation, shutdown, exit, and final cleanup.

Co-authored-by: qingminlong <[email protected]>

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: qingminlong <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants