mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-05 20:22:53 +00:00
Fix streamed provider cleanup so abandoned managed fetch bodies no longer keep undici sockets open, and cancel Anthropic/Gemini SSE readers deterministically when parsing exits early.
Keep the FinalizationRegistry abort path as a last-resort GC safety net for unmanaged/abandoned responses, while parser-owned paths cancel readers explicitly on thrown errors or malformed events.
Also records the browser-only Control UI redactor alias in the optional deadcode allowlist and keeps mocked exec supervisor tests off shell snapshot wrapping after the branch was rebased onto default shell snapshots.
Fixes #67461
Verification:
- node scripts/run-vitest.mjs src/agents/provider-transport-fetch.test.ts src/agents/anthropic-transport-stream.test.ts extensions/google/transport-stream.test.ts src/agents/bash-tools.test.ts src/agents/bash-tools.exec.path.test.ts test/scripts/test-live-shard.test.ts
- pnpm check:test-types
- node scripts/run-oxlint-shards.mjs --threads=8
- .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --parallel-tests "node scripts/run-vitest.mjs src/agents/provider-transport-fetch.test.ts src/agents/anthropic-transport-stream.test.ts extensions/google/transport-stream.test.ts src/agents/bash-tools.test.ts src/agents/bash-tools.exec.path.test.ts test/scripts/test-live-shard.test.ts"
- git diff --check origin/main...HEAD
- PR CI on a1db789652
Co-authored-by: samzong <samzong.lu@gmail.com>
Signed-off-by: samzong <samzong.lu@gmail.com>
55 lines
2.6 KiB
JavaScript
55 lines
2.6 KiB
JavaScript
// Intentional Knip unused-file findings. These are dynamic entrypoints,
|
|
// generated/build inputs, manifest-discovered plugin surfaces, live-test
|
|
// helpers, or package bridge files that static production scanning cannot see.
|
|
export const KNIP_UNUSED_FILE_ALLOWLIST = [
|
|
// Per-agent SQLite scaffold is intentionally landed before runtime migration
|
|
// callers so the schema and scoped cache API can be reviewed together.
|
|
"src/agents/cache/agent-cache-store.sqlite.ts",
|
|
"src/agents/cache/agent-cache-store.ts",
|
|
"src/state/openclaw-agent-db.paths.ts",
|
|
"src/state/openclaw-agent-db.ts",
|
|
"src/state/openclaw-agent-schema.generated.ts",
|
|
];
|
|
|
|
// Knip can disagree across supported local/CI platforms for files that are
|
|
// only reachable through test-only import graphs, sparse-checkout proof
|
|
// workspaces, dynamic entrypoints, manifest-discovered plugin surfaces, or
|
|
// package bridge files. Ignore these when reported, but do not require them
|
|
// to be reported.
|
|
export const KNIP_OPTIONAL_UNUSED_FILE_ALLOWLIST = [
|
|
"extensions/acpx/src/runtime-internals/mcp-command-line.mjs",
|
|
"extensions/acpx/src/runtime-internals/mcp-proxy.mjs",
|
|
"extensions/canvas/src/host/a2ui-app/bootstrap.js",
|
|
"extensions/canvas/src/host/a2ui-app/rolldown.config.mjs",
|
|
"extensions/copilot/src/doctor-probes.ts",
|
|
"extensions/copilot/src/telemetry-bridge.ts",
|
|
"extensions/copilot/src/user-input-bridge.ts",
|
|
"extensions/diffs/src/viewer-client.ts",
|
|
"extensions/diffs/src/viewer-payload.ts",
|
|
"extensions/matrix/src/plugin-entry.runtime.js",
|
|
"extensions/memory-core/src/memory-tool-manager-mock.ts",
|
|
"src/agents/subagent-registry.runtime.ts",
|
|
"src/auto-reply/inbound.group-require-mention-test-plugins.ts",
|
|
"src/auto-reply/reply/get-reply.test-loader.ts",
|
|
"src/cli/daemon-cli-compat.ts",
|
|
"src/commands/doctor/shared/deprecation-compat.ts",
|
|
"src/config/doc-baseline.runtime.ts",
|
|
"src/config/doc-baseline.ts",
|
|
"src/gateway/gateway-cli-backend.live-helpers.ts",
|
|
"src/gateway/gateway-cli-backend.live-probe-helpers.ts",
|
|
"src/gateway/gateway-codex-harness.live-helpers.ts",
|
|
"src/mcp/openclaw-tools-serve.ts",
|
|
"src/mcp/plugin-tools-handlers.ts",
|
|
"src/mcp/plugin-tools-serve.ts",
|
|
"src/mcp/tools-stdio-server.ts",
|
|
"src/plugins/build-smoke-entry.ts",
|
|
"src/plugins/contracts/host-hook-fixture.ts",
|
|
"src/plugins/contracts/rootdir-boundary-canary.ts",
|
|
"src/plugins/contracts/tts-contract-suites.ts",
|
|
"src/plugins/runtime-sidecar-paths-baseline.ts",
|
|
"src/tasks/task-registry-control.runtime.ts",
|
|
"ui/src/ui/browser-redact.ts",
|
|
"extensions/qa-lab/src/auth-profile.fixture.ts",
|
|
"extensions/qa-lab/src/codex-plugin.fixture.ts",
|
|
];
|