fix(ui): keep default provenance proof type-safe

This commit is contained in:
Vincent Koc
2026-08-01 02:24:17 +08:00
parent 3af4be851a
commit da0134d225
2 changed files with 8 additions and 2 deletions
@@ -56,7 +56,13 @@ import { renderSettingsEmpty } from "./settings-ui.ts";
const UNSET_ARRAY_SOURCE_IDENTITY = Symbol("unset-array-source");
const UNSET_MAP_SOURCE_IDENTITY = Symbol("unset-map-source");
function collectionDefaultPresentation(params: ConfigNodeRenderParams, effectiveValue: unknown) {
function collectionDefaultPresentation(
params: ConfigNodeRenderParams,
effectiveValue: unknown,
): {
description: TemplateResult | typeof nothing;
action: TemplateResult | typeof nothing;
} {
const redacted = getSensitiveRenderState({
path: params.path,
value: effectiveValue,
@@ -237,7 +237,7 @@ describe("ModelProvidersPage agent scope", () => {
const { context, runtimeConfig } = createHarness("main");
runtimeConfig.state.configForm = {
agents: { defaults: { thinkingDefault: 42, fastModeDefault: "bogus" } },
};
} as unknown as typeof runtimeConfig.state.configForm;
const page = appendPage(context);
await vi.waitFor(() => expect(page.querySelector("#settings-model-behavior")).not.toBeNull());