fix(agents): add prompt cache compatibility opt-out

Add compat.supportsPromptCacheKey for OpenAI Responses prompt_cache_key handling, update generated config baseline, changelog, and A2UI dependency-layout test compatibility.
This commit is contained in:
Daniel Salmerón Amselem
2026-04-16 19:48:51 +02:00
committed by GitHub
parent f624b1d246
commit 687ede50a5
9 changed files with 86 additions and 13 deletions

View File

@@ -64,17 +64,21 @@ describe("scripts/bundle-a2ui.mjs", () => {
it("tracks only the resolved bundle dependency manifests from node_modules", () => {
const repoRoot = process.cwd();
const dependencyPaths = getResolvedBundleDependencyPackageJsonPaths(repoRoot);
const relativeDependencyPaths = dependencyPaths.map((dependencyPath) =>
path.relative(repoRoot, dependencyPath),
);
expect(dependencyPaths).toContain(path.join(repoRoot, "node_modules", "lit", "package.json"));
expect(dependencyPaths).toContain(
path.join(repoRoot, "node_modules", "@lit/context", "package.json"),
);
expect(dependencyPaths).toContain(
path.join(repoRoot, "node_modules", "@lit-labs/signals", "package.json"),
);
expect(dependencyPaths).toContain(
path.join(repoRoot, "node_modules", "signal-utils", "package.json"),
);
expect(
relativeDependencyPaths.map((relativePath) => relativePath.replace(/^ui\//u, "")),
).toEqual([
path.join("node_modules", "lit", "package.json"),
path.join("node_modules", "@lit/context", "package.json"),
path.join("node_modules", "@lit-labs/signals", "package.json"),
path.join("node_modules", "signal-utils", "package.json"),
]);
expect(
relativeDependencyPaths.every((relativePath) => /^(ui\/)?node_modules\//u.test(relativePath)),
).toBe(true);
expect(getBundleHashInputPaths(repoRoot)).not.toContain(path.join(repoRoot, "package.json"));
expect(getBundleHashInputPaths(repoRoot)).not.toContain(path.join(repoRoot, "pnpm-lock.yaml"));
});