Skip to content

Commit 9509aa0

Browse files
committed
fix: preserve normalization and ACP fast mode contracts
1 parent 20aec98 commit 9509aa0

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

packages/normalization-core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
export * from "./number-coercion.js";
44
export * from "./record-coerce.js";
5-
export * from "@openclaw/normalization-core/string-coerce";
5+
export * from "./string-coerce.js";
66
export * from "./string-normalization.js";

src/acp/translator.presentation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export type GatewaySessionPresentationRow = Pick<
5353
| "updatedAt"
5454
| "thinkingLevel"
5555
| "fastMode"
56+
| "effectiveFastMode"
5657
| "modelProvider"
5758
| "model"
5859
| "thinkingLevels"
@@ -163,7 +164,7 @@ export function buildSessionPresentation(params: {
163164
...BASE_THINKING_LEVELS,
164165
];
165166
const currentModeId = normalizeOptionalString(row.thinkingLevel) || "adaptive";
166-
const currentFastMode = normalizeFastMode(row.fastMode) ?? false;
167+
const currentFastMode = normalizeFastMode(row.effectiveFastMode ?? row.fastMode) ?? false;
167168
if (!availableLevelIds.includes(currentModeId)) {
168169
availableLevelIds.push(currentModeId);
169170
}

0 commit comments

Comments
 (0)