From f6948d0bbf59fede6714c4cf5d5778aff53993d4 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 30 Sep 2026 10:35:07 -0700 Subject: [PATCH] fix(scripts): restore Codex protocol config-edit type probe (#162012) The generated Codex protocol probe still imported a private type alias removed from the maintained protocol barrel. Derive the edit type from the existing config/batchWrite request contract while preserving the upstream ConfigEdit assignability assertion. The real pinned upstream generator reproduces TS2305 on the base and passes the maintained type probe after this fix. The 11 pre-existing JSON schema diagnostics remain identical. Focused tests, changed-file checks, independent review, fresh cycle checks, and import-boundary tests pass; schemas and runtime contracts are unchanged. --- scripts/check-codex-app-server-protocol.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/check-codex-app-server-protocol.ts b/scripts/check-codex-app-server-protocol.ts index 4357e4d27123..5d41dcef83af 100644 --- a/scripts/check-codex-app-server-protocol.ts +++ b/scripts/check-codex-app-server-protocol.ts @@ -215,7 +215,6 @@ async function checkMaintainedProtocolTypes(sourceRoot: string): Promise { import type { CodexAppServerRequestParams, CodexAppServerRequestResult, - CodexConfigEdit, CodexDynamicToolSpec, CodexDynamicToolCallParams, CodexErrorNotification, @@ -288,7 +287,7 @@ const openClawNullableCommandExecParams: CodexAppServerRequestParams<"command/ex generatedNullableCommandExecParams; declare const openClawConfigBatchWriteParams: CodexAppServerRequestParams<"config/batchWrite">; const generatedConfigBatchWriteParams: ConfigBatchWriteParams = openClawConfigBatchWriteParams; -declare const openClawConfigEdit: CodexConfigEdit; +declare const openClawConfigEdit: CodexAppServerRequestParams<"config/batchWrite">["edits"][number]; const generatedConfigEdit: ConfigEdit = openClawConfigEdit; declare const openClawConfigValueWriteParams: CodexAppServerRequestParams<"config/value/write">; const generatedConfigValueWriteParams: ConfigValueWriteParams = openClawConfigValueWriteParams;