We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9566ade commit 5a1c4b0Copy full SHA for 5a1c4b0
1 file changed
packages/memory-host-sdk/src/host/qmd-query-parser.ts
@@ -1,4 +1,5 @@
1
// Memory Host SDK module implements qmd query parser behavior.
2
+import { truncateUtf16Safe } from "@openclaw/normalization-core/utf16-slice";
3
import { formatErrorMessage } from "./error-utils.js";
4
import { normalizeLowercaseStringOrEmpty } from "./string-utils.js";
5
@@ -81,7 +82,7 @@ function isQmdNoResultsLine(line: string): boolean {
81
82
83
/** Bound stderr context included in parse errors. */
84
function summarizeQmdStderr(raw: string): string {
- return raw.length <= 120 ? raw : `${raw.slice(0, 117)}...`;
85
+ return raw.length <= 120 ? raw : `${truncateUtf16Safe(raw, 117)}...`;
86
}
87
88
/** Parse and normalize a strict qmd JSON array payload. */
0 commit comments