Skip to content

Commit 3415519

Browse files
authored
fix(agents): preserve empty CLI subagent completions (#126379)
* fix(agents): preserve empty CLI subagent completions * chore(qa): remove retired Matrix coverage leaf * refactor: consolidate shared runtime ownership * fix(scripts): keep runtime build coercion dependency-light * chore: remove release-owned changelog entry
1 parent 8a9e21d commit 3415519

27 files changed

Lines changed: 105 additions & 110 deletions

‎.agents/skills/claw-score/references/completeness/matrix.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Use this rubric when assigning category Completeness scores for the
66
## Category Scope
77

88
- Channel Setup and Operations: Matrix plugin identity, Setup wizard, Account discovery, Matrix doctor warnings, Matrix probe/status, Shared Matrix client resolution, Monitor startup, Startup maintenance, Matrix doctor warnings, Matrix probe/status, Monitor startup, Startup maintenance
9-
- Access and Identity: DM policy, Direct-room classification, Inbound route selection across sender-bound DMs, Mention gates, Matrix thread reply routing, Persisted Matrix thread routing managers, ACP/subagent spawn hooks
10-
- Conversation Routing and Delivery: DM policy, Direct-room classification, Inbound route selection across sender-bound DMs, Mention gates, Matrix thread reply routing, Persisted Matrix thread routing managers, ACP/subagent spawn hooks, Channel action discovery, Message send/read/edit/delete, Profile media loading, Outbound Matrix text, Message presentation metadata, Inbound media failure handling, Message send/read/edit/delete, Profile media loading, Outbound Matrix text, Message presentation metadata, Inbound media failure handling
9+
- Access and Identity: DM policy, Direct-room classification, Inbound route selection across sender-bound DMs, Mention gates, Matrix thread reply routing, Persisted Matrix thread routing managers
10+
- Conversation Routing and Delivery: DM policy, Direct-room classification, Inbound route selection across sender-bound DMs, Mention gates, Matrix thread reply routing, Persisted Matrix thread routing managers, Channel action discovery, Message send/read/edit/delete, Profile media loading, Outbound Matrix text, Message presentation metadata, Inbound media failure handling, Message send/read/edit/delete, Profile media loading, Outbound Matrix text, Message presentation metadata, Inbound media failure handling
1111
- Media and Rich Content: Channel action discovery, Message send/read/edit/delete, Profile media loading, Outbound Matrix text, Message presentation metadata, Inbound media failure handling
1212
- Native Controls and Approvals: Channel action discovery, Message send/read/edit/delete, Profile media loading, Outbound Matrix text, Message presentation metadata, Inbound media failure handling, Matrix native exec, Origin target resolution from Matrix turn, Approver DM target resolution, Matrix approval metadata, Origin target resolution from Matrix turn, Approver DM target resolution, Matrix approval metadata
1313
- Encryption and Verification: Encryption setup, Encrypted media upload/download, Legacy state

‎config/assertion-safety-baseline.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3850,7 +3850,6 @@ src/state/openclaw-state-db-schema-additive.ts 1
38503850
src/state/openclaw-state-db-schema-helpers.ts 4
38513851
src/state/openclaw-state-db-schema-migration-required.ts 2
38523852
src/state/openclaw-state-db-schema-repair.ts 7
3853-
src/state/openclaw-state-lease.ts 1
38543853
src/state/openclaw-state-ownership.ts 1
38553854
src/state/openclaw-state-snapshot-sanitizer.ts 1
38563855
src/state/user-profiles-tailscale-avatar.ts 2

‎extensions/active-memory/config.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import path from "node:path";
22
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
3+
import { isPathInside } from "openclaw/plugin-sdk/file-access-runtime";
34
import {
45
parseStrictPositiveInteger,
56
resolveIntegerOption,
67
} from "openclaw/plugin-sdk/number-runtime";
78
import type { OpenClawPluginApi } from "openclaw/plugin-sdk/plugin-entry";
8-
import { isPathInside } from "openclaw/plugin-sdk/security-runtime";
99
import {
1010
asOptionalRecord,
1111
normalizeLowercaseStringOrEmpty,

‎extensions/canvas/src/host/a2ui-route.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { A2UI_PATH, isA2uiPath } from "./a2ui-shared.js";
44
import { resolveFileWithinRoot } from "./file-resolver.js";
55

66
type A2uiRootResolver = () => Promise<string | null>;
7-
type A2uiHttpRequest = { method?: string; url?: string };
8-
type A2uiHttpResponse = {
7+
export type A2uiHttpRequest = { method?: string; url?: string };
8+
export type A2uiHttpResponse = {
99
statusCode: number;
1010
setHeader(name: string, value: number | string | readonly string[]): void;
1111
end(chunk?: Buffer | string): void;

‎extensions/canvas/src/host/a2ui.ts‎

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
import fs from "node:fs/promises";
55
import path from "node:path";
66
import { fileURLToPath } from "node:url";
7-
import { handleA2uiHttpRequestWithRootResolver } from "./a2ui-route.js";
7+
import {
8+
handleA2uiHttpRequestWithRootResolver,
9+
type A2uiHttpRequest,
10+
type A2uiHttpResponse,
11+
} from "./a2ui-route.js";
812

913
export { A2UI_PATH, CANVAS_HOST_PATH } from "./a2ui-shared.js";
1014

@@ -13,13 +17,6 @@ let resolvingA2uiRoot: Promise<string | null> | null = null;
1317
let cachedA2uiResolvedAtMs = 0;
1418
const A2UI_ROOT_RETRY_NULL_AFTER_MS = 10_000;
1519

16-
type A2uiHttpRequest = { method?: string; url?: string };
17-
type A2uiHttpResponse = {
18-
statusCode: number;
19-
setHeader(name: string, value: number | string | readonly string[]): void;
20-
end(chunk?: Buffer | string): void;
21-
};
22-
2320
async function resolveA2uiRoot(): Promise<string | null> {
2421
const here = path.dirname(fileURLToPath(import.meta.url));
2522
const entryDir = process.argv[1] ? path.dirname(path.resolve(process.argv[1])) : null;

‎extensions/codex/src/app-server/session-permission-policy.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { hostname as readHostName } from "node:os";
22
import type { EmbeddedRunAttemptParamsV2 } from "openclaw/plugin-sdk/agent-harness-runtime";
3-
import { isPathInside } from "openclaw/plugin-sdk/security-runtime";
3+
import { isPathInside } from "openclaw/plugin-sdk/file-access-runtime";
44
import type {
55
CodexAppServerApprovalPolicy,
66
CodexAppServerApprovalsReviewer,

‎extensions/codex/src/migration/plan.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Codex plugin module implements plan behavior.
22
import fs from "node:fs/promises";
33
import path from "node:path";
4+
import {
5+
canonicalPathFromExistingAncestor,
6+
isPathInside,
7+
} from "openclaw/plugin-sdk/file-access-runtime";
48
import {
59
createMigrationItem,
610
createMigrationManualItem,
@@ -14,11 +18,7 @@ import type {
1418
MigrationPlan,
1519
MigrationProviderContext,
1620
} from "openclaw/plugin-sdk/plugin-entry";
17-
import {
18-
canonicalPathFromExistingAncestor,
19-
extractErrorCode,
20-
isPathInside,
21-
} from "openclaw/plugin-sdk/security-runtime";
21+
import { extractErrorCode } from "openclaw/plugin-sdk/security-runtime";
2222
import { asBoolean, isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
2323
import { CODEX_PLUGINS_MARKETPLACE_NAME } from "../app-server/config.js";
2424
import { buildCodexAuthItems } from "./auth.js";

‎extensions/codex/src/migration/session-binding-sidecars.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import {
66
resolveAgentDir,
77
resolveSessionAgentIds,
88
} from "openclaw/plugin-sdk/agent-scope-runtime";
9+
import {
10+
canonicalPathFromExistingAncestor,
11+
isPathInside,
12+
} from "openclaw/plugin-sdk/file-access-runtime";
913
import { withFileLock, type FileLockOptions } from "openclaw/plugin-sdk/file-lock";
1014
import type { PluginStateKeyedStore } from "openclaw/plugin-sdk/plugin-state-runtime";
1115
import { normalizeAgentId } from "openclaw/plugin-sdk/routing";
@@ -14,11 +18,7 @@ import {
1418
legacyStateFileExists,
1519
type PluginDoctorStateMigration,
1620
} from "openclaw/plugin-sdk/runtime-doctor-migrations";
17-
import {
18-
canonicalPathFromExistingAncestor,
19-
isPathInside,
20-
pathExists,
21-
} from "openclaw/plugin-sdk/security-runtime";
21+
import { pathExists } from "openclaw/plugin-sdk/security-runtime";
2222
import { isRecord } from "openclaw/plugin-sdk/string-coerce-runtime";
2323
import {
2424
CODEX_APP_SERVER_BINDING_MAX_ENTRIES,

‎extensions/codex/src/migration/source.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Codex plugin module implements source behavior.
22
import path from "node:path";
33
import { coerceErrorMessage } from "openclaw/plugin-sdk/error-runtime";
4-
import { isPathInside } from "openclaw/plugin-sdk/security-runtime";
4+
import { isPathInside } from "openclaw/plugin-sdk/file-access-runtime";
55
import {
66
defaultCodexAppInventoryCache,
77
type CodexAppInventoryRequest,

‎extensions/migrate-claude/memory.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
import type { Dirent } from "node:fs";
33
import fs from "node:fs/promises";
44
import path from "node:path";
5-
import { createMigrationItem, MIGRATION_REASON_TARGET_EXISTS } from "openclaw/plugin-sdk/migration";
6-
import type { MigrationItem } from "openclaw/plugin-sdk/plugin-entry";
75
import {
86
canonicalPathFromExistingAncestor,
97
isPathInside,
10-
} from "openclaw/plugin-sdk/security-runtime";
8+
} from "openclaw/plugin-sdk/file-access-runtime";
9+
import { createMigrationItem, MIGRATION_REASON_TARGET_EXISTS } from "openclaw/plugin-sdk/migration";
10+
import type { MigrationItem } from "openclaw/plugin-sdk/plugin-entry";
1111
import {
1212
CLAUDE_AUTO_MEMORY_MAX_FILES,
1313
CLAUDE_AUTO_MEMORY_MAX_SCAN_ENTRIES,

0 commit comments

Comments
 (0)