mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-09 04:43:57 +00:00
Approval wait now fits inside the Codex dynamic-tool watchdog (70s +10s gateway grace under the 90s kill), approval cards carry proposal id, skill name, description, file count, and body size (spoof-safe rendering), and timeouts return a structured pending-not-failed outcome instead of a bare error. Expired requests cannot execute late; no auto-apply; generic plugin approvals unchanged.
17 lines
558 B
TypeScript
17 lines
558 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import { validatePluginApprovalRequestParams } from "./index.js";
|
|
|
|
describe("plugin approval protocol validators", () => {
|
|
it("accepts enriched approval descriptions up to 512 characters", () => {
|
|
const request = {
|
|
title: "Apply workspace skill proposal",
|
|
description: "d".repeat(512),
|
|
};
|
|
|
|
expect(validatePluginApprovalRequestParams(request)).toBe(true);
|
|
expect(validatePluginApprovalRequestParams({ ...request, description: "d".repeat(513) })).toBe(
|
|
false,
|
|
);
|
|
});
|
|
});
|