mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 12:56:01 -06:00
fix(ui): keep default provenance proof type-safe
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user