Repository navigation
fix(test): session-store suites fail teardown with ENOTEMPTY while agent-database workers are live - #161871
Merged
Conversation
… roots Session entry writes kick deferred maintenance Workers and transcript reads retain history Workers on the store's agent database. Suites removed the store directory while those owners were live, so an owner could reopen the database mid-removal and fail rmdir with ENOTEMPTY. Add useSessionStoreTempDirs: case directories under one canonical suite root, drained once with closeOpenClawAgentDatabasesAsync before removal. Suites with an existing suite root drain it inline.
…e parent withDeclaredCommandPlugin reset the plugin runtime synchronously and removed its parent while the loaded registry and cache retirement still released a source-capture SQLite staging token under <parent>/state. The removal could race that retirement (seen as SQLITE_IOERR_FSTAT). Dispose the registry and await cache retirement, asserting no cleanup failures, before removal.
Releasing agent leases can reopen shared-state handles, and cases may keep their shared state under the suite root. Follow cleanupSessionStateForTest ordering: drain agent databases, close shared state, then remove.
Session writes and transcript reads retain maintenance and history Workers. Synchronous close does not join retirement, so recursive teardown can race a database reopening and leave new SQLite sidecars. Keep case stores under canonical suite roots and use the shared awaited agent and shared-state cleanup before removal. Fix shared history and local store fixtures, preserve explicit cold-read and schema closes, and drain the case-owned Windows fixture before removal.
…drain The suite already awaited its per-case agent drain; root canonicalization for macOS matching belongs with the lifecycle owner, not this change.
Session writes and transcript reads retain agent database resources after test bodies settle. Synchronous cache closes do not join Worker retirement, so removing temporary roots can race with owners reopening SQLite files. Keep case roots until suite teardown and await the agent database drain before removal. Canonicalize roots used by existing fixture drains so they match native database paths on macOS. Preserve callback-owned cleanup and cover the native transcript-preparation handles behind mocked sessions.
Let the shared suite helper own agent and shared-state drainage before removing roots. Remove ordering wrappers and redundant per-case closes, while preserving incognito cleanup, restart simulation, and other fixtures. Move the five remaining session-tool store fixtures to suite-owned roots. Restore canonicalization-only changes for the separate lifecycle-owner path-matching follow-up, and attach the existing temp-dir allowance to its nested allocation.
… roots Session writes and transcript reads retain maintenance and history Workers. Synchronous database closure does not join those resources, so deleting their roots can race a reopened database and fail with ENOTEMPTY. Retain isolated case stores beneath canonical suite roots and await agent database drainage before removal through existing SDK testing contracts. Keep shared state alive until agent retirement completes, and route Telegram context stores through their existing draining state fixture.
Session writes and transcript reads retain agent database resources after synchronous close. Removing their temp roots before retirement settles can reopen SQLite files during removal and race rmdir with ENOTEMPTY. Keep case stores under canonical suite roots and await one agent database drain before removal. Fix the shared queue, Doctor, heartbeat, and Gateway fixtures at their owners. Browser fixtures retain per-case drainage and bind placement state to their request context so later replies cannot reopen a previous Gateway home. The original probe observed live owners at 250 removals across 42 suites. Fixed observations across 72 suites and 1,220 cases contain no live owners at removal or unexpected directory recreation. Focused tests, formatting, lint, selected type checks, and Codex review passed. Same-lease cost trials remain unmeasured because the Testbox workflow was cancelled during warm-up.
…ch/tlon Expose the existing session-store fixture through the private first-party SQLite testing facade, replace the duplicate Codex helper, and consolidate Copilot, Slack, and Telegram suite teardown on the shared owner. Drain agent Workers, await shared-state closure, then remove canonical roots. Cover Twitch and Tlon dispatch stores, including Twitch envelope reads that otherwise open the default session database outside the fixture root. Retire the side-question provider fixture before shared-state cleanup by registering its suite-root cleanup first at the same hook scope.
Use the shared suite cleanup's agent-then-state shutdown ordering and remove redundant per-case cache closes. Preserve the queue media temp parent and Doctor's explicit physical /tmp fixtures, with their own ordered joins. Revert canonicalization-only changes to three already-draining fixtures; root matching belongs to the lifecycle-owner follow-up. Join retained stores in status summary, catalog selection, child custody, and late-abort Gateway proof fixtures. Keep per-case release where Gateway HOME teardown requires it. Prepare the existing agent.wait handler before the late-abort fixture's timed assertion without changing request deadlines. The supplied probe covers 76 suites and 1,256 cases with zero agent owners at removal. Original proof ran only the four new suites in a detached 28a8620 worktree, which was removed afterward. Normal tests, formatting, lint, selected type lanes, and Codex review passed. Preserve the initial agent.wait timeout and its unresolved attribution in the lane report; a passing replay is not treated as a fix. Cost A/B remains coordinator-owned.
The agent.wait handler pre-warm addressed one unexplained CLIENT_TIMEOUT without an established cause; it is unrelated to the teardown change.
The per-case plugin-state reset closed shared state while the case's agent workers could still hold shared-state admission; the suite helper now closes it after draining agents.
…e-agent-db-drain Conflict resolutions: - tlon monitor: retain main's awaited per-case drain and queued-maintenance regression unchanged. - sessions-spawn-cloud: preserve main's long-task/schema assertions with suite-owned session directories. - database-runtime-schema-checks: preserve main's admission APIs and cases; move both new fixtures to the suite cleanup helper. The both-sides probe also found an incognito handle outside the Codex suite root; drain all of that isolated suite's agent handles before its test home is removed.
Incognito fixtures retain a cached agent handle under the isolated test home, outside the session-store suite root. Await the isolated suite agent-database drain before test-env removes that home. Validation: all 94 conversation-binding tests pass. The removal probe changed from one retained handle to zero, with no reappearing roots. Scoped formatting and lint pass; resolution review found no actionable issues.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Preserve the retired whole-session-store APIs and deleted tests from main. Keep suite-root asynchronous database teardown for the surviving SDK history and runtime cases, dropping obsolete imports and the compatibility suite name.
Album cases depend on a ~20 ms wall-clock media-group window. Deferring every case's agent-database drain to suite end let earlier cases' maintenance and history Workers run during later album cases. Drain each case root and close shared state before the next case; directory removal stays with the suite helper.
Keep main test removals and API changes in compact and host-hook contracts. Retain suite-owned session-store directories for surviving cases and remove the obsolete global-state fixture prefix argument.
Keep main’s consolidated session-cost usage cases and API changes. Use the shared suite-root helper to drain agent and state databases before removing their temporary directories.
Keep main's test consolidation and API changes; retain suite-owned session-store roots until agent database owners and state workers drain. - agentsapi-attempt: preserve PDF steering coverage; use suite teardown. - matrix handler: retain test-fixtures imports; drain notice stores. - slack slash: preserve extracted harnesses; drain metadata stores. - internal-session-effects: retain consolidated cases; replace withTestDir. - status summary: preserve scan/projection cases; retain store roots. - health collector: preserve async summary cases; drain all fixture stores. - chat-history omission: retain expectDefined; defer directory removal. - transcript read-fence: preserve consolidated seedHistory and cases. - upstream monitor: preserve async/owner tests; drain suite roots last. Audited six automatic merges, including new cases and the per-case child-custody drain; no additional cleanup changes needed.
Keep main's Telegram coalescing mocks and deterministic windows, then retain suite-root session-store cleanup in telegram-ingress-coalescing. Keep bot.media's per-case agent database drain before shared-state close. Preserve main's deleted question-answer case and consolidated SQLite export-budget cases; their remaining stores use suite-owned directories.
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Oct 2, 2026
…ent-database workers are live (openclaw#161871) * test(auto-reply): drain agent databases before removing session-store roots Session entry writes kick deferred maintenance Workers and transcript reads retain history Workers on the store's agent database. Suites removed the store directory while those owners were live, so an owner could reopen the database mid-removal and fail rmdir with ENOTEMPTY. Add useSessionStoreTempDirs: case directories under one canonical suite root, drained once with closeOpenClawAgentDatabasesAsync before removal. Suites with an existing suite root drain it inline. * test(auto-reply): settle plugin capture owners before removing fixture parent withDeclaredCommandPlugin reset the plugin runtime synchronously and removed its parent while the loaded registry and cache retirement still released a source-capture SQLite staging token under <parent>/state. The removal could race that retirement (seen as SQLITE_IOERR_FSTAT). Dispose the registry and await cache retirement, asserting no cleanup failures, before removal. * test: close shared state before removing session-store suite roots Releasing agent leases can reopen shared-state handles, and cases may keep their shared state under the suite root. Follow cleanupSessionStateForTest ordering: drain agent databases, close shared state, then remove. * test(sessions): drain agent databases before removing fixture roots Session writes and transcript reads retain maintenance and history Workers. Synchronous close does not join retirement, so recursive teardown can race a database reopening and leave new SQLite sidecars. Keep case stores under canonical suite roots and use the shared awaited agent and shared-state cleanup before removal. Fix shared history and local store fixtures, preserve explicit cold-read and schema closes, and drain the case-owned Windows fixture before removal. * test(sessions): keep archive-worker teardown on its existing awaited drain The suite already awaited its per-case agent drain; root canonicalization for macOS matching belongs with the lifecycle owner, not this change. * test(agents): drain agent databases before removing session-store roots Session writes and transcript reads retain agent database resources after test bodies settle. Synchronous cache closes do not join Worker retirement, so removing temporary roots can race with owners reopening SQLite files. Keep case roots until suite teardown and await the agent database drain before removal. Canonicalize roots used by existing fixture drains so they match native database paths on macOS. Preserve callback-owned cleanup and cover the native transcript-preparation handles behind mocked sessions. * test(agents): simplify session-store teardown and cover remaining suites Let the shared suite helper own agent and shared-state drainage before removing roots. Remove ordering wrappers and redundant per-case closes, while preserving incognito cleanup, restart simulation, and other fixtures. Move the five remaining session-tool store fixtures to suite-owned roots. Restore canonicalization-only changes for the separate lifecycle-owner path-matching follow-up, and attach the existing temp-dir allowance to its nested allocation. * test(extensions): drain agent databases before removing session-store roots Session writes and transcript reads retain maintenance and history Workers. Synchronous database closure does not join those resources, so deleting their roots can race a reopened database and fail with ENOTEMPTY. Retain isolated case stores beneath canonical suite roots and await agent database drainage before removal through existing SDK testing contracts. Keep shared state alive until agent retirement completes, and route Telegram context stores through their existing draining state fixture. * test(session-store): drain agent databases before removing temp roots Session writes and transcript reads retain agent database resources after synchronous close. Removing their temp roots before retirement settles can reopen SQLite files during removal and race rmdir with ENOTEMPTY. Keep case stores under canonical suite roots and await one agent database drain before removal. Fix the shared queue, Doctor, heartbeat, and Gateway fixtures at their owners. Browser fixtures retain per-case drainage and bind placement state to their request context so later replies cannot reopen a previous Gateway home. The original probe observed live owners at 250 removals across 42 suites. Fixed observations across 72 suites and 1,220 cases contain no live owners at removal or unexpected directory recreation. Focused tests, formatting, lint, selected type checks, and Codex review passed. Same-lease cost trials remain unmeasured because the Testbox workflow was cancelled during warm-up. * test(extensions): share the session-store suite helper and cover twitch/tlon Expose the existing session-store fixture through the private first-party SQLite testing facade, replace the duplicate Codex helper, and consolidate Copilot, Slack, and Telegram suite teardown on the shared owner. Drain agent Workers, await shared-state closure, then remove canonical roots. Cover Twitch and Tlon dispatch stores, including Twitch envelope reads that otherwise open the default session database outside the fixture root. Retire the side-question provider fixture before shared-state cleanup by registering its suite-root cleanup first at the same hook scope. * test(session-store): simplify teardown and cover remaining suites Use the shared suite cleanup's agent-then-state shutdown ordering and remove redundant per-case cache closes. Preserve the queue media temp parent and Doctor's explicit physical /tmp fixtures, with their own ordered joins. Revert canonicalization-only changes to three already-draining fixtures; root matching belongs to the lifecycle-owner follow-up. Join retained stores in status summary, catalog selection, child custody, and late-abort Gateway proof fixtures. Keep per-case release where Gateway HOME teardown requires it. Prepare the existing agent.wait handler before the late-abort fixture's timed assertion without changing request deadlines. The supplied probe covers 76 suites and 1,256 cases with zero agent owners at removal. Original proof ran only the four new suites in a detached 28a8620 worktree, which was removed afterward. Normal tests, formatting, lint, selected type lanes, and Codex review passed. Preserve the initial agent.wait timeout and its unresolved attribution in the lane report; a passing replay is not treated as a fix. Cost A/B remains coordinator-owned. * test(gateway): keep abort live-proof timing unchanged The agent.wait handler pre-warm addressed one unexplained CLIENT_TIMEOUT without an established cause; it is unrelated to the teardown change. * test(doctor): close incident shared state after the suite agent drain The per-case plugin-state reset closed shared state while the case's agent workers could still hold shared-state admission; the suite helper now closes it after draining agents. * test(codex): drain incognito agent handles before home cleanup Incognito fixtures retain a cached agent handle under the isolated test home, outside the session-store suite root. Await the isolated suite agent-database drain before test-env removes that home. Validation: all 94 conversation-binding tests pass. The removal probe changed from one retained handle to zero, with no reappearing roots. Scoped formatting and lint pass; resolution review found no actionable issues. * test(codex): remove obsolete teardown import after merge * test(telegram): drain media harness stores per case Album cases depend on a ~20 ms wall-clock media-group window. Deferring every case's agent-database drain to suite end let earlier cases' maintenance and history Workers run during later album cases. Drain each case root and close shared state before the next case; directory removal stays with the suite helper.
amittell
added a commit
to amittell/openclaw
that referenced
this pull request
Oct 9, 2026
…removed Main's test lifecycle now fails a file whose agent or state database outlives its fixture directory, and openclaw#163045 moved the active-stats read this branch's snapshot test used into a test-support module. After the merge that left three of the branch's own suites red: - transcript-grounding.test.ts and session-accessor.sqlite-conversation-snapshot.test.ts passed their cases and then failed teardown with "Agent database close failed" (ENOENT on the removed state/openclaw.sqlite). Both now await the agent and state database closes in afterEach, as session-accessor.sqlite-active-events.test.ts does. - The snapshot test called readSessionTranscriptActiveStats, which no longer exists; it reads the same count through readActiveTranscriptStats. - embedded-agent-subscribe.tools.media.test.ts closed its databases synchronously. Its case stores now sit under one suite root from useSessionStoreTempDirs, drained once before removal (openclaw#161871). No assertion changes.
This was referenced Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #161536 (same fix for
src/auto-reply/reply/agent-runner-memory.test.ts; that file is untouched here)What Problem This Solves
Fixes: test suites intermittently fail teardown with
ENOTEMPTY(or leave recreated directories behind) when they remove a temp directory that holds a session store while its agent-database Workers are still running.User Impact
No user-visible change. Removes a class of CI teardown flakes across about 230 test files in core, agents, gateway, commands, cron, plugins, packages, and extensions, and lowers their summed measured test time by about 6%.
No config, default, or stored-data surface changes and no migration. Of the 225 changed files, all are tests or test support except
src/plugin-sdk/sqlite-runtime-testing.ts. That file is a local-only, non-production Plugin SDK testing entry (scripts/lib/plugin-sdk-entries.mts), and it gains one test-helper re-export.Why This Change Was Made
A custom session
storePathresolves to an agent SQLite database inside the same directory. Session entry writes schedule reclamation on a mutation Worker, transcript reads retain history Workers, and plugin loading retains source-capture staging tokens. Those owners retire only when their owner is drained. Suites removed the directory while they were live, so an owner could reopen the database mid-removal (quarantineOrphanedSqliteSidecarscreates*.sqlite-wal.orphaned-<ts>) andrmdirfailed or the directory came back. The synchronouscloseOpenClawAgentDatabasesForTest()does not help: it firesrevokeAgentDatabaseResources()without awaiting it.One test owner now handles this teardown.
useSessionStoreTempDirs(afterAll, prefix)insrc/test-utils/session-state-cleanup.tshands out case directories under one canonical suite root and, at suite end, awaitscloseOpenClawAgentDatabasesAsync(root), thencloseStateDatabaseForTest()(agent lease release can reopen shared state), then removes the root. Extensions use the same helper through the private first-party testing subpathopenclaw/plugin-sdk/sqlite-runtime-testing; no public SDK surface changes. Shared fixtures (delivery-queue hooks, Doctor SQLite fixture, browser follow-up fixture, Slack/Copilot/QA/Telegram/iMessage fixtures, and others) drain at their owner so every caller is covered.A suite-level drain is the default because per-case drains wait for each case's Workers; #161536 measured that at about 20 s on a 124-case suite. Two Gateway fixtures keep a per-case awaited drain because each case gets its own Gateway home:
useBrowserFollowupFixture(7 suites) andsessions-create.child-custody. The browser fixture also gets a per-case placement store, because the process-local placement fallback kept the previous case's deleted home open and recreated it. No retries, sleeps, longer timeouts, or weakened assertions were added, and no product code changed.Also fixed in passing:
commands-plugin.test.tsremoved its plugin fixture parent while plugin-cache retirement still used a source-capture SQLite staging token under it (seen asSQLITE_IOERR_FSTAT); it now disposes the registry and awaitswaitForPluginCacheRetirement()first.Evidence
Root cause, observed per suite. A temporary, uncommitted probe hooks
fs.rm/rmSync/promises.rmand records live agent-DB handles, Worker resources, pending opens, and retained closes under each removed directory, plus whether the directory reappears 1.2 s later. Original code (the same suites at the branch point):tools/sessions-*suites.sessions-create.child-custody.commands-plugin: a capture staging token was still present in 7 of 8 parent removals.Fixed code: zero owners at removal, zero removal errors, and no reappearing roots in every probed suite.
Checks. All changed test files pass (per-area local runs plus all 828 measured Testbox executions). The 9 affected E2E suites pass on a Linux Testbox. Also clean:
pnpm tsgo:core:test,pnpm tsgo:extensions:test, oxfmt, oxlint (core and extension configs), plugin SDK export, surface, and boundary checks,node scripts/report-test-temp-creations.mjs(no warnings), andgit diff --check. Codex autoreview (P0–P2) is clean for every lane and for the integrated branch after one accepted finding: a Doctor incident fixture closed shared state before the suite agent drain, now fixed.Cost. Same-lease A/B on three Blacksmith Testbox leases (Linux, 8 vCPU). The original variant is the complete forward patch reversed on the same lease, with source hashes verified per trial. Each file ran
--maxWorkers=1, one discarded warm-up per variant, then O1/F1/O2/F2. Per-file vitest duration covers tests plus hooks, excluding transform.unit-fastbecause the planner classifies by source text and they no longer callfsdirectly. They passed there in all trials.useBrowserFollowupFixture's 7 suites plussessions-create.child-custody) are not changed test files, so a separate same-lease A/B measured them: 55.4 s → 65.4 s (+18%). That result is noisy (pair 1 −1.2 s, pair 2 +21.3 s). Child-custody was slower in all three pairs, +2.0 s mean (+11%). A suite-level alternative passed all 127 tests, but the probe caught 16 recreated Gateway HOMEs. The Gateway test harness removes each case's HOME, and external store leases kept to suite end reopened shared state under it. So the per-case drain is required in those two fixtures.Telegram album E2E in CI.
checks-node-changed-2failed twice on this branch inextensions/telegram/src/bot.media.downloads-media-file-path-no-file-download.e2e.test.ts> "preserves captions and a later mention from every message in a forum album". The reply contained only the second album caption. Investigation on Linux Testbox (8 vCPU, the same size as the CI runner):Because this branch had deferred the media harness's per-case drains to suite end, earlier cases' agent-database Workers could keep running during later wall-clock-sensitive album cases. The harness now drains each case's store and closes shared state in
afterEach(directory removal stays with the suite helper), which restores the original per-case isolation. No timeouts, retries, or assertions changed.Not covered. Key-gated
*.live.test.tssuites were not edited or run. A root-vs-canonical path mismatch incloseOpenClawAgentDatabasesAsync(root)makes raw/var/foldersroots miss/private/vardatabases on macOS. Linux CI is unaffected, so it is tracked separately; this PR only uses canonical roots in the suites it converts. One local run saw an unrelatedagent.waitCLIENT_TIMEOUTinchat.abort-live-proof.test.tsunder host load around 50. It did not recur, and it was left unchanged rather than masked. Cost numbers were measured at40f715d. Later commits are merges with main plus small ordering and import fixes.Cost by project cohort (Testbox, --maxWorkers=1, mean of 2 trials per variant)
Flagged files (F − O > max(1 s, 5%))
src/sessions/session-diff-baseline.test.tssrc/model-picker/apply-session-model-selection.test.tssrc/skills/runtime/tool-dispatch.test.tspackages/ai/src/transports/openai-responses-client.continuation.test.tssrc/plugins/contracts/host-hooks.contract.test.tssrc/plugins/contracts/session-attachments.contract.test.tssrc/config/sessions/conversation-delivery-store.test.tssrc/config/sessions/transcript.test.tssrc/config/sessions/session-accessor.sqlite-cleanup-generation-race.test.tssrc/plugins/host-hook-cleanup.session-store.test.tssrc/gateway/worker-environments/placement-store.turn-claim-closure.test.tssrc/gateway/worker-environments/live-events.test.tssrc/gateway/server-methods/chat.abort-live-proof.test.tssrc/gateway/server-methods/sessions-create.child-custody.test.tssrc/gateway/server-methods/chat-history-omission-request.test.tssrc/cron/isolated-agent/run.session-lifecycle.test.tssrc/commands/doctor-session-sqlite.targets.test.tssrc/commands/doctor-session-transcripts.incident.test.tssrc/commands/doctor-session-sqlite.shared-store.test.tssrc/commands/status.summary-read-only.test.tsPer-file cost, all 207 changed test files
extensions/active-memory/index.test.tsextensions/agentsapi/agentsapi-attempt.test.tsextensions/codex/harness.session-runtime-ownership.test.tsextensions/codex/harness.test.tsextensions/codex/src/app-server/compact.cancellation.test.tsextensions/codex/src/app-server/compact.test.tsextensions/codex/src/app-server/request.test.tsextensions/codex/src/app-server/side-question.test.tsextensions/codex/src/app-server/thread-lifecycle.adoption.test.tsextensions/codex/src/app-server/trajectory.test.tsextensions/codex/src/app-server/transcript-mirror.user-idempotency.test.tsextensions/codex/src/app-server/upstream-session-fork-continuation.test.tsextensions/codex/src/conversation-binding.test.tsextensions/codex/src/conversation-control.test.tsextensions/copilot/src/attempt-active-run.test.tsextensions/copilot/src/attempt-session.integration.test.tsextensions/copilot/src/attempt-transcript-journal.test.tsextensions/discord/src/monitor/message-handler.context-history.test.tsextensions/discord/src/monitor/native-command.model-picker.test.tsextensions/imessage/src/monitor.last-route.test.tsextensions/matrix/src/exec-approvals.test.tsextensions/matrix/src/matrix/monitor/handler.test.tsextensions/matrix/src/session-route.test.tsextensions/mattermost/src/mattermost/model-picker.test.tsextensions/memory-core/src/session-ingestion.test.tsextensions/qa-lab/src/runtime-parity-cache-diagnostics.test.tsextensions/qa-lab/src/runtime-parity-forced-runtime.test.tsextensions/qa-lab/src/runtime-parity-session-selection.test.tsextensions/qa-lab/src/runtime-tool-fixture.known-gap.test.tsextensions/qa-lab/src/runtime-tool-fixture.mock-linking.test.tsextensions/qa-lab/src/runtime-tool-fixture.nested.test.tsextensions/qa-lab/src/runtime-tool-fixture.test.tsextensions/qa-lab/src/runtime-tool-fixture.transcript.test.tsextensions/qa-lab/src/suite-runtime-agent-session.test.tsextensions/slack/src/approval-native.test.tsextensions/slack/src/monitor/events/agent.test.tsextensions/slack/src/monitor/message-handler/prepare-room-history.test.tsextensions/slack/src/monitor/message-handler/prepare-thread-context.test.tsextensions/slack/src/monitor/message-handler/prepare.bot-threads.test.tsextensions/slack/src/monitor/message-handler/prepare.rejection-records.test.tsextensions/slack/src/monitor/message-handler/prepare.test.tsextensions/slack/src/monitor/slash.test.tsextensions/telegram/src/approval-native.test.tsextensions/telegram/src/bot-message-context.body.test.tsextensions/telegram/src/bot-message-context.bot-threads.test.tsextensions/telegram/src/bot-message-context.dm-session.test.tsextensions/telegram/src/bot-message-context.prompt-context.test.tsextensions/telegram/src/exec-approvals.test.tsextensions/telegram/src/model-callback.loopback.integration.test.tsextensions/telegram/src/telegram-ingress-callback.integration.test.tsextensions/tlon/src/monitor/index.test.tsextensions/twitch/src/monitor.test.tsextensions/whatsapp/src/auto-reply/monitor/group-activation.test.tspackages/ai/src/transports/openai-responses-client.continuation.test.tspackages/memory-host-sdk/src/host/session-files-yield.test.tspackages/memory-host-sdk/src/host/session-files.windows-ownership.test.tssrc/agents/agent-command-execution-identity.test.tssrc/agents/agent-command-recovery-owner.test.tssrc/agents/agent-tools.create-openclaw-coding-tools.test.tssrc/agents/bash-tools.exec-approval-followup.test.tssrc/agents/bootstrap-files.test.tssrc/agents/cli-runner.reliability.test.tssrc/agents/cli-runner/cli-run-transcript.test.tssrc/agents/cli-runner/history-boundary.test.tssrc/agents/command/attempt-execution.shared.test.tssrc/agents/command/attempt-execution.test.tssrc/agents/command/session.yielded-parent-reuse.test.tssrc/agents/command/transcript-persistence.test.tssrc/agents/conversation-capability-profile.test.tssrc/agents/embedded-agent-runner.run-embedded-agent.finalization-scope.test.tssrc/agents/embedded-agent-runner/cli-backend-dispatch.test.tssrc/agents/embedded-agent-runner/compact.auth-preparation.test.tssrc/agents/embedded-agent-runner/run.cli-dispatch-lane.test.tssrc/agents/embedded-agent-runner/run/attempt-native-video-transcript.test.tssrc/agents/embedded-agent-runner/run/attempt-phase-lifecycle.test.tssrc/agents/embedded-agent-runner/run/attempt-prompt-phase.admission.test.tssrc/agents/embedded-agent-runner/run/attempt.llm-boundary.cache-stability.test.tssrc/agents/embedded-agent-runner/run/attempt.sessions-yield.test.tssrc/agents/embedded-agent-runner/run/attempt.spawn-workspace.context-engine.test.tssrc/agents/embedded-agent-runner/tool-result-truncation.test.tssrc/agents/embedded-agent-subscribe.handlers.compaction.test.tssrc/agents/exec-defaults.test.tssrc/agents/harness/context-engine-turn-attempt.test.tssrc/agents/harness/native-hook-relay.test.tssrc/agents/internal-session-effects.test.tssrc/agents/main-session-recovery/main-session-restart-recovery-marking.test.tssrc/agents/openclaw-tools.requester-yield.test.tssrc/agents/openclaw-tools.sessions.test.tssrc/agents/requester-tool-policy.test.tssrc/agents/run-session-target.test.tssrc/agents/sandbox.resolveSandboxContext.test.tssrc/agents/sandbox/tool-policy.test.tssrc/agents/session-tool-result-guard.visibility.test.tssrc/agents/subagents/spawn/subagent-spawn.fork-cleanup.test.tssrc/agents/tools/sessions-spawn-cloud.test.tssrc/agents/tools/sessions-spawn-tool.test.tssrc/agents/tools/sessions-tool.self-archive.test.tssrc/agents/tools/sessions-tool.test.tssrc/agents/tools/sessions.test.tssrc/agents/watched-sessions-prompt.test.tssrc/agents/worktrees/service.source-only-filters.test.tssrc/auto-reply/inbound.test.tssrc/auto-reply/reply/agent-runner-memory.preflight-stale-tokens.test.tssrc/auto-reply/reply/agent-runner-result-accounting.fallback.test.tssrc/auto-reply/reply/agent-runner-result-accounting.persistence.test.tssrc/auto-reply/reply/commands-goal.test.tssrc/auto-reply/reply/commands-name.test.tssrc/auto-reply/reply/commands-plugin.test.tssrc/auto-reply/reply/commands-reset-hooks.test.tssrc/auto-reply/reply/commands-session-store.test.tssrc/auto-reply/reply/commands-status.test.tssrc/auto-reply/reply/dispatch-from-config.pending-final.test.tssrc/auto-reply/reply/get-reply-inline-actions.skip-when-config-empty.test.tssrc/auto-reply/reply/queue.collect.test.tssrc/auto-reply/reply/reply-state.test.tssrc/auto-reply/reply/session-fork.test.tssrc/auto-reply/reply/session-reset-model.test.tssrc/auto-reply/reply/session.init-conflict-retry.test.tssrc/channels/session-envelope.test.tssrc/channels/turn/pending-delivery-notice.integration.test.tssrc/channels/turn/pending-delivery-notice.test.tssrc/cli/agent-cli-recovery.process.test.tssrc/commands/doctor-heartbeat-session-target.test.tssrc/commands/doctor-main-session-recovery.test.tssrc/commands/doctor-session-sqlite.shared-store.test.tssrc/commands/doctor-session-sqlite.targets.test.tssrc/commands/doctor-session-state-providers.test.tssrc/commands/doctor-session-transcripts.incident.test.tssrc/commands/sandbox-explain.test.tssrc/commands/sessions-tail.test.tssrc/commands/status.summary-read-only.test.tssrc/config/sessions/cleanup-service.cap-archive.test.tssrc/config/sessions/cleanup-service.fix-missing.test.tssrc/config/sessions/conversation-delivery-store.test.tssrc/config/sessions/lifecycle.test.tssrc/config/sessions/session-accessor.compaction-boundary.test.tssrc/config/sessions/session-accessor.parent-fork.test.tssrc/config/sessions/session-accessor.question-answer-transcript.test.tssrc/config/sessions/session-accessor.recovery.test.tssrc/config/sessions/session-accessor.reply-init-concurrency.test.tssrc/config/sessions/session-accessor.sqlite-archive.byte-limit.test.tssrc/config/sessions/session-accessor.sqlite-cleanup-generation-race.test.tssrc/config/sessions/session-accessor.sqlite-cleanup-race.test.tssrc/config/sessions/session-accessor.sqlite-data-version.test.tssrc/config/sessions/session-accessor.sqlite-entry-inventory.test.tssrc/config/sessions/session-accessor.sqlite-export-budget.test.tssrc/config/sessions/session-accessor.sqlite-maintenance-writer.test.tssrc/config/sessions/session-accessor.sqlite-transcript-parent.test.tssrc/config/sessions/session-canonical-key.test.tssrc/config/sessions/session-suggestion-store.test.tssrc/config/sessions/session-transcript-projection-catchup.test.tssrc/config/sessions/transcript.test.tssrc/cron/isolated-agent/run-session-state.test.tssrc/cron/isolated-agent/run.session-lifecycle.test.tssrc/cron/isolated-agent/run.terminal-error-identity.test.tssrc/cron/isolated-agent/session.latest-read.test.tssrc/cron/service.wake-now-real-heartbeat.test.tssrc/gateway/health/collector.session-store-path.test.tssrc/gateway/server-methods/agent.create-event.test.tssrc/gateway/server-methods/chat-history-omission-request.test.tssrc/gateway/server-methods/chat.abort-live-proof.test.tssrc/gateway/server-methods/chat.abort-persistence.test.tssrc/gateway/server-methods/session-catalog-selection.test.tssrc/gateway/server-methods/sessions-create.child-custody.test.tssrc/gateway/server-methods/skills-library.test.tssrc/gateway/server-plugins.test.tssrc/gateway/server-restart-sentinel-notice.test.tssrc/gateway/server-runtime-services.delivery-recovery.test.tssrc/gateway/server.chat-adopted-failure.test.tssrc/gateway/server.chat.acp-completion.test.tssrc/gateway/session-lifecycle-state.persistence.test.tssrc/gateway/session-transcript-readers.markers.test.tssrc/gateway/tool-resolution.exclude.test.tssrc/gateway/worker-environments/live-events.test.tssrc/gateway/worker-environments/placement-store.turn-claim-closure.test.tssrc/hooks/bundled/session-memory/capture.test.tssrc/infra/exec-approval-session-target.test.tssrc/infra/outbound/delivery-queue.test-helpers.test.tssrc/infra/outbound/message-action-send.mirror-order.test.tssrc/infra/outbound/outbound-session.integration.test.tssrc/infra/session-cost-usage.test.tssrc/infra/state-migrations.workspace-setup-sandbox.test.tssrc/mcp/openclaw-tools-serve.test.tssrc/model-picker/apply-session-model-selection-placement.test.tssrc/model-picker/apply-session-model-selection.test.tssrc/plugin-sdk/session-store-history-boundary.test.tssrc/plugin-sdk/session-store-runtime.maintenance.test.tssrc/plugin-sdk/session-store-runtime.recovery.test.tssrc/plugin-sdk/session-store-runtime.test.tssrc/plugin-sdk/session-store-runtime.writer-claim.test.tssrc/plugin-sdk/session-transcript-mirror-runtime.test.tssrc/plugin-sdk/session-transcript-runtime-visible-delta.test.tssrc/plugin-sdk/session-transcript-runtime.read-fence.test.tssrc/plugins/contracts/host-hooks.contract.test.tssrc/plugins/contracts/session-attachments.contract.test.tssrc/plugins/contracts/session-entry-projection.contract.test.tssrc/plugins/host-hook-cleanup.session-store.test.tssrc/plugins/runtime/runtime-agent.test.tssrc/sessions/session-diff-baseline.test.tssrc/sessions/session-upstream-monitor.test.tssrc/sessions/user-turn-transcript.persistence.test.tssrc/sessions/user-turn-transcript.test.tssrc/skills/runtime/tool-dispatch.test.tssrc/state/database-runtime-schema-checks.test.tssrc/state/openclaw-agent-pending-inputs-schema.test.tssrc/trajectory/runtime-store.sqlite.test.tstest/copilot-tool-policy-handoff.integration.test.ts