fix(release): stabilize beta validation after main rebase

This commit is contained in:
Peter Steinberger
2026-05-26 03:05:29 +01:00
parent 6f57286678
commit 93015982d3
4 changed files with 36 additions and 10 deletions

View File

@@ -54,6 +54,14 @@ runs:
cache: ${{ inputs.use-actions-cache }}
cache_dependency_path: ${{ inputs.lockfile-path }}
- name: Ensure pnpm store cache directory exists
if: ${{ inputs.use-actions-cache == 'true' }}
shell: bash
run: |
set -euo pipefail
store_path="$(pnpm store path --silent)"
node -e "require('node:fs').mkdirSync(process.argv[1], { recursive: true })" "$store_path"
- name: Record pnpm version
id: pnpm-version
shell: bash

View File

@@ -1,4 +1,4 @@
4e41932c1c152cf4ac0acadec9f9813c4f68615483b5d8c90252837efe3609f3 config-baseline.json
1bf08d3e55b5d766867b9675a1b8dbfbcbf91f82d9f038f9eb676557ce51f63e config-baseline.core.json
1d2c2fa07a2d3c4d046d2defe2eb48b27011be25e75db205b19e3da37e9fd0a0 config-baseline.json
5b12e247f4375de2d454802d3af188a840851dd69e9d15a1a92a4815c7ef7d97 config-baseline.core.json
c766614db5c416910fb6cdd454efb0738779af80ddd58a4fb06d8b1ca6484ce2 config-baseline.channel.json
74441e331aabb3026784c148d4ee5ce3f489a15ed87ffd9b7ba0c5e2a7bc93be config-baseline.plugin.json

View File

@@ -1,2 +1,2 @@
80a4c9d4a12e4c4c24bf31fa31d498a6ac3cec83834a564817c68a0a36d96483 plugin-sdk-api-baseline.json
819a64c37603957e0053c4949966c99c8122299ad0f59b5780d5e5fe4ea97be3 plugin-sdk-api-baseline.jsonl
d9aba1f3520e4f7213f5d5fe30bd284e2adc7feefee329b31c09a9e36347dc18 plugin-sdk-api-baseline.json
cee3b04182ded8df3c52fb2abe5596644fee2f40d23000402891825337f2d6bf plugin-sdk-api-baseline.jsonl

View File

@@ -364,7 +364,7 @@ function createAppServerHarness(
} = {},
) {
const requests: Array<{ method: string; params: unknown }> = [];
let notify: (notification: CodexServerNotification) => Promise<void> = async () => undefined;
let notifyHandler: ((notification: CodexServerNotification) => Promise<void>) | undefined;
let handleServerRequest: AppServerRequestHandler | undefined;
const closeHandlers = new Set<() => void>();
const request = vi.fn(async (method: string, params?: unknown, requestOptions?: unknown) => {
@@ -377,9 +377,15 @@ function createAppServerHarness(
return {
getServerVersion: () => "0.132.0",
request,
addNotificationHandler: (handler: typeof notify) => {
notify = handler;
return () => undefined;
addNotificationHandler: (
handler: (notification: CodexServerNotification) => Promise<void>,
) => {
notifyHandler = handler;
return () => {
if (notifyHandler === handler) {
notifyHandler = undefined;
}
};
},
addRequestHandler: (handler: AppServerRequestHandler) => {
handleServerRequest = handler;
@@ -400,6 +406,18 @@ function createAppServerHarness(
return handleServerRequest!;
};
const waitForNotificationHandler = async () => {
await vi.waitFor(() => expect(notifyHandler).toBeTypeOf("function"), {
interval: 1,
timeout: appServerHarnessWait.timeout,
});
return notifyHandler!;
};
const sendNotification = async (notification: CodexServerNotification) => {
const handler = notifyHandler ?? (await waitForNotificationHandler());
await handler(notification);
};
return {
request,
requests,
@@ -419,7 +437,7 @@ function createAppServerHarness(
);
},
async notify(notification: CodexServerNotification) {
await notify(notification);
await sendNotification(notification);
},
waitForServerRequestHandler,
async handleServerRequest(request: Parameters<AppServerRequestHandler>[0]) {
@@ -427,7 +445,7 @@ function createAppServerHarness(
return handler(request);
},
async completeTurn(params: { threadId: string; turnId: string }) {
await notify({
await sendNotification({
method: "turn/completed",
params: {
threadId: params.threadId,