Skip to content

fix(gateway): drain root work continuations before stop process exit - #105848

Merged
vincentkoc merged 3 commits into
openclaw:mainfrom
wm0018:fix/gateway-stop-session-end-drain
Jul 29, 2026
Merged

vincentkoc merged 3 commits into
openclaw:mainfrom
wm0018:fix/gateway-stop-session-end-drain

Conversation

@wm0018

@wm0018 wm0018 commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Close #105697

When a gateway process receives a direct stop signal (SIGTERM/SIGINT without a restart intent), any session_end plugin hooks already started by session reset/delete/compaction may be truncated before they complete. Affected plugins may lose database writes, memory summaries, or external resource cleanups.

Why This Change Was Made

Adds a bounded drain of the existing gateway root-work set to the direct-stop path. The drain uses a referenced setTimeout poll (not .unref()) so the timer keeps the event loop alive. Bounded at 2 seconds; the caller always invokes exitProcess(0) after return. Per ClawSweeper clarification: the force-exit watchdog is cleared at run-loop.ts:705 before handleStopAfterServerClose is entered at line 710; the drain is self-bounded by its own referenced timer.

User Impact

No visible impact. Pending session_end hooks get up to 2 seconds to complete before exit. Stuck hooks cannot block shutdown.

Evidence

1. Real Gateway startup + shutdown log (PR branch, 10 production plugins, Node v22.23.1)

[gateway] loading configuration…
[gateway] resolving authentication…
[gateway] starting...
[secrets] [***S_REF_IGNORED_INACTIVE_SURFACE] channels.discord.***: no enabled account inherits this top-level Discord ***.
[gateway] session: imported legacy session metadata/transcripts into SQLite:
- targets=1 legacyEntries=8 sqliteEntries=8
- importedEntries=8 importedTranscriptEvents=0
[gateway] session: session SQLite migration warnings:
- [entry_invalid] agent:main:cron:4fa39e4c-188d-411d-a223-a81128de1695: Session entry is missing a valid sessionId.
[gateway] starting HTTP server...
[gateway] ⚠️  Gateway is binding to a non-loopback address. Ensure authentication is configured before exposing to public networks.
[health-monitor] started (interval: 300s, startup-grace: 60s, channel-connect-grace: 120s)
[gateway] agent model: vendor/model-name (thinking=off, fast=off)
[gateway] http server listening (10 plugins: acpx, anthropic, browser, canvas, device-pair,
           file-transfer, memory-core, ollama, phone-control, talk-voice; 8.7s)
[gateway] log file: /tmp/openclaw/openclaw-YYYY-MM-DD.log
[gateway] security warning: dangerous config flags enabled: gateway.controlUi.allowInsecureAuth=true,
           gateway.controlUi.dangerouslyDisableDeviceAuth=true. Run `openclaw security audit`.
[gateway] starting channels and sidecars...
[hooks] loaded 4 internal hook handlers
[plugins] embedded acpx runtime backend registered lazily
[gateway] startup outcomes: internal-hooks=loaded; internal-startup-hook=scheduled;
           gateway-start-hooks=scheduled; memory-qmd=skipped (not-configured);
           gmail-watcher=skipped (hooks-disabled); gmail-model=skipped (not-configured)
[gateway] ready
[heartbeat] started
[gateway] agent runtime plugins pre-warmed in 187ms

                                 … gateway running, channels connected …

[gateway] received SIGTERM; shutting down
[gmail-watcher] gmail watcher stopped
[shutdown] completed cleanly in 261ms

Gateway under this PR starts cleanly with 10 production plugins (including acpx, browser, canvas, device-pair, file-transfer, memory-core, ollama, phone-control, talk-voice), reaches ready state, and shuts down in 261ms with zero errors.

2. Drain mechanism proof (12/12 passed)

Each case: real child process, real gateway-work-admission module, real OS SIGTERM, real waitForGatewayRootWorkDrain(). Continuations created via the same root.run() → runWithGatewayIndependentRootWorkContinuation() → root.release() pattern as session-reset-service.ts.

=== Gateway Drain — Real Process Proof ===

[Case 1] No hooks:         exit=0 20ms
[Case 2] 350ms hook+SIGTERM: exit=0 315ms  sentinel=done 1783951839244
[Case 3] Stuck hook:       exit=0 1020ms
[Case 4] 2 concurrent:     exit=0 364ms

=== 12/12 passed ===
  • Case 2: continuation mid-flight when SIGTERM arrives → drain blocks until hook writes file → file confirmed on disk. Without the drain fix, Node exits before the 350ms write.
  • Case 3: never-releasing hook → drain returns false after 1s timeout → exits cleanly
  • Case 4: two concurrent hooks → drain waits for slowest → both files confirmed

3. Unit tests (62 passed)

$ node scripts/run-vitest.mjs src/process/gateway-work-admission.test.ts src/cli/gateway-cli/run-loop.test.ts
✓ |unit| src/process/gateway-work-admission.test.ts (17 tests)
✓ |cli|  src/cli/gateway-cli/run-loop.test.ts (45 tests)
Test Files 2 passed (2) | Tests 62 passed (62)

4. Change scope: 4 files, +116 lines. No config, CLI, SDK, docs, or changelog surface. No new dependencies.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Jul 13, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 8:08 AM ET / 12:08 UTC.

ClawSweeper review

What this changes

This PR fences new gateway root work on direct stop signals, waits within the shutdown budget for already-admitted session-finalization continuations, and adds unit plus packaged-gateway coverage for durable session_end completion.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open: current main still exits direct SIGTERM/SIGINT shutdown without first fencing and draining the tracked gateway root-work set, while this branch adds that missing bounded path. The linked bug remains open, and the final branch commit plus recent maintainer validation provide strong implementation and real-runtime evidence; only normal merge-head CI/review remains.

Priority: P2
Reviewed head: 7ec94a5cfb0abe4189ab0b6fc9ba7bed1da46ceb

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The patch reuses the canonical tracked-work primitive, covers the direct signal path with unit and packaged-runtime tests, and has recent maintainer validation on the current head.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The PR body provides real child-process SIGTERM evidence, and a current maintainer validation reports a real packaged gateway with authenticated WebSocket session reset, configured plugin finalization, actual SIGTERM, and durable completion. Any future posted logs or screenshots should remain redacted.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR body provides real child-process SIGTERM evidence, and a current maintainer validation reports a real packaged gateway with authenticated WebSocket session reset, configured plugin finalization, actual SIGTERM, and durable completion. Any future posted logs or screenshots should remain redacted.
Evidence reviewed 6 items Current-main direct-stop gap: On current main, a stop signal sets shutdown state and runs the accepted stop request without synchronously closing gateway root-work admission; after server close, the stop handler releases the lock and exits. That leaves independently tracked finalizers without a direct-stop drain.
Canonical continuation contract: The shared admission module explicitly tracks independent detached continuations as root work and exposes a waiter that resolves when the tracked set drains or its timeout expires. The proposed path reuses this existing product primitive rather than changing ordinary session-finalization latency.
Current-main waiter behavior: waitForActiveGatewayRootWork returns immediately when empty, otherwise waits on root-drain waiters and reports whether active work remains after the bounded timeout.
Findings None None.
Security None None.

How this fits together

Gateway signal handling decides whether a process stops or restarts, then closes the gateway server and exits. Session reset/delete/compaction can launch detached session_end plugin work, which is tracked in the shared gateway root-work admission set and must be drained before direct process exit.

flowchart TD
  A[Session reset, delete, or compaction] --> B[Detached session_end plugin hook]
  B --> C[Tracked gateway root work]
  D[SIGTERM or SIGINT] --> E[Gateway stop handler]
  E --> F[Close new root-work admission]
  F --> G[Bounded root-work drain]
  G --> H[Close gateway and exit]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is reported as behind main; required checks should cover the actual merge result before landing, because gateway shutdown code has continued to evolve on the base branch.
  • Complete next step (P2) - No mechanical repair is indicated: the remaining action is ordinary merge-head validation and maintainer landing review.
Agent review details

Security

None.

PR surface

Source +19, Tests +281. Total +300 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 22 3 +19
Tests 2 281 0 +281
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 303 3 +300

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: test/gateway-session-end-shutdown.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #105697
Summary: This PR directly addresses the linked report's tracked-but-not-drained session_end continuation during direct gateway shutdown.

Members:

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

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Refresh the branch against current main if needed, let required checks validate the resulting merge head, then land this bounded reuse of the existing root-work admission contract and close the linked bug.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Refresh the branch against current main if needed, let required checks validate the resulting merge head, then land this bounded reuse of the existing root-work admission contract and close the linked bug.

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

Yes, at source level: a session-finalization continuation is separately tracked after the session leaves the active-session shutdown tracker, while current direct-stop handling exits without waiting for that root-work set. The PR also supplies a real packaged-gateway SIGTERM scenario that exercises this path.

Is this the best way to solve the issue?

Yes. Reusing the existing gateway root-work admission and bounded drain is narrower and safer than making every session_end emission synchronous or introducing a parallel shutdown tracker.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This fixes a bounded gateway shutdown reliability gap that can affect plugin finalization work, without evidence of a current emergency or widespread core-runtime outage.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR body provides real child-process SIGTERM evidence, and a current maintainer validation reports a real packaged gateway with authenticated WebSocket session reset, configured plugin finalization, actual SIGTERM, and durable completion. Any future posted logs or screenshots should remain redacted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides real child-process SIGTERM evidence, and a current maintainer validation reports a real packaged gateway with authenticated WebSocket session reset, configured plugin finalization, actual SIGTERM, and durable completion. Any future posted logs or screenshots should remain redacted.

Evidence

What I checked:

  • Current-main direct-stop gap: On current main, a stop signal sets shutdown state and runs the accepted stop request without synchronously closing gateway root-work admission; after server close, the stop handler releases the lock and exits. That leaves independently tracked finalizers without a direct-stop drain. (src/cli/gateway-cli/run-loop.ts:3753, bdb3918f4dad)
  • Canonical continuation contract: The shared admission module explicitly tracks independent detached continuations as root work and exposes a waiter that resolves when the tracked set drains or its timeout expires. The proposed path reuses this existing product primitive rather than changing ordinary session-finalization latency. (src/process/gateway-work-admission.ts:1635, bdb3918f4dad)
  • Current-main waiter behavior: waitForActiveGatewayRootWork returns immediately when empty, otherwise waits on root-drain waiters and reports whether active work remains after the bounded timeout. (src/process/gateway-work-admission.ts:1806, bdb3918f4dad)
  • PR implementation and regression coverage: The branch head adds the direct-stop admission fence and bounded root-work wait in the gateway loop, together with signal-path unit coverage and a packaged gateway end-to-end test that resets a session, sends a real SIGTERM, and verifies the plugin finalizer completes durably. (src/cli/gateway-cli/run-loop.ts:746, 7ec94a5cfb0a)
  • Maintainer runtime validation: A recent maintainer comment for the current head reports a successful packaged build, a real authenticated-WebSocket session-reset plus actual-SIGTERM E2E test, six related shutdown suites with 152 passing tests, changed-path checks, and a fresh autoreview with no actionable findings. (7ec94a5cfb0a)
  • Canonical linked report: The linked open report describes the same root cause: session finalization starts a tracked independent continuation after the session leaves the active-session shutdown tracker. This PR is a candidate fix for that report rather than a duplicate item. (src/gateway/session-reset-service.ts:130, bdb3918f4dad)

Likely related people:

  • steipete: Authored the current PR head that integrates the final shutdown design and posted the recent maintainer validation covering packaged gateway behavior, session reset, and SIGTERM exit. (role: recent gateway shutdown contributor; confidence: high; commits: 7ec94a5cfb0a; files: src/cli/gateway-cli/run-loop.ts, test/gateway-session-end-shutdown.e2e.test.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 (16 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-13T11:16:18.396Z sha c1a35a39a2cf55b3f695f0ce1452eebc5261228b :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-13T15:01:53.871Z sha c1a35a39a2cf55b3f695f0ce1452eebc5261228b :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-14T00:46:43.221Z sha de2e1e5486338a4c788a140126d04597484ae35b :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-14T00:55:40.023Z sha de2e1e5486338a4c788a140126d04597484ae35b :: needs real behavior proof before merge. :: [P1] Reuse the existing root-work drain primitive
  • reviewed 2026-07-14T01:15:04.785Z sha de2e1e5486338a4c788a140126d04597484ae35b :: needs real behavior proof before merge. :: [P1] Reuse the referenced root-work drain waiter
  • reviewed 2026-07-14T01:37:13.378Z sha 7b163fff378a479073cd11766a28f627087b1d93 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-14T02:11:27.405Z sha 7189191 :: needs maintainer review before merge. :: none
  • reviewed 2026-07-28T07:14:48.304Z sha 42586f0 :: needs real behavior proof before merge. :: none

@wm0018 wm0018 changed the title fix(gateway): drain root work continuations before stop process exit (#105697) fix(gateway): drain root work continuations before stop process exit Jul 13, 2026
@wm0018

wm0018 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 13, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. labels Jul 13, 2026
@wm0018
wm0018 force-pushed the fix/gateway-stop-session-end-drain branch from d84d46a to 2c627c6 Compare July 13, 2026 03:06
@wm0018

wm0018 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 13, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@wm0018
wm0018 force-pushed the fix/gateway-stop-session-end-drain branch from 2c627c6 to 674e389 Compare July 13, 2026 05:50
@wm0018

wm0018 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 13, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@wm0018
wm0018 force-pushed the fix/gateway-stop-session-end-drain branch from 674e389 to c1a35a3 Compare July 13, 2026 06:02
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 13, 2026
@wm0018

wm0018 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 13, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@wm0018

wm0018 commented Jul 13, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 14, 2026
@wm0018
wm0018 force-pushed the fix/gateway-stop-session-end-drain branch from de2e1e5 to 7b163ff Compare July 14, 2026 01:32
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 14, 2026
@wm0018
wm0018 force-pushed the fix/gateway-stop-session-end-drain branch from 7b163ff to 7189191 Compare July 14, 2026 01:45
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jul 14, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. and removed 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 Jul 28, 2026
…05697)

Preserve the original contributor branch and merge current main. Fence new root work before stopping, drain the canonical work set inside the existing watchdog budget, and verify real packaged gateway, plugin, WebSocket, and operating-system SIGTERM behavior.
@steipete

Copy link
Copy Markdown
Contributor

Maintainer validation for 7ec94a5cfb0abe4189ab0b6fc9ba7bed1da46ceb (fast-forward from the original contributor head; author and history preserved):

  • pnpm build: passed, including the packaged gateway, public plugin SDK, and UI.
  • test/gateway-session-end-shutdown.e2e.test.ts: passed against the real packaged gateway, authenticated WebSocket session reset, configured plugin, actual SIGTERM, and durable session_end completion.
  • Six gateway/process/session shutdown suites: 152 passed.
  • pnpm check:changed -- src/cli/gateway-cli/run-loop.ts src/cli/gateway-cli/run-loop.test.ts test/gateway-session-end-shutdown.e2e.test.ts: passed.
  • Fresh gpt-5.6-sol xhigh branch autoreview: no actionable findings.

The fix marks root admission draining immediately and waits for admitted gateway root work before closing the gateway, bounded within the existing shutdown watchdog.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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 Jul 28, 2026
@vincentkoc vincentkoc self-assigned this Jul 29, 2026
@vincentkoc
vincentkoc merged commit a1d3120 into openclaw:main Jul 29, 2026
128 of 139 checks passed
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
vincentkoc added a commit that referenced this pull request Jul 29, 2026
…ifecycle-hooks

* origin/main:
  fix(mattermost): key private channels as group on outbound routing (#96645)
  fix(ci): grant Telegram QA runtime scratch access (#115659)
  fix(telegram): stop retrying blocked recipients (#115640)
  fix(tts): persist generated speech in media store (#115647)
  fix(gateway): preserve complete streamed chat completions (#115652)
  fix(mac): prevent app auth from blocking node-host startup (#115533)
  fix(heartbeat): keep message-tool final replies private (#115629)
  fix(gateway): drain root work continuations before direct-stop process exit (#105848)
  fix(ollama): keep active streams within their idle timeout (#115648)
  fix(delivery): keep session keys out of inferred message targets (#115657)
  fix(ci): type code mode matrix catch callback (#115674)
  refactor(agents): centralize bundled CLI backend auth policy (#115633)
  refactor: remove 3,527 lines of runtime and test duplication (#115626)
  [AI] fix(doctor): stop repeated bundledDiscovery migration noise on beta (#115208)

# Conflicts:
#	scripts/code-mode-model-matrix.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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.

[Bug] Asynchronous Truncation of session_end Hooks During Gateway Shutdown

3 participants