refactor(agents): hide session repair fallback text · openclaw/openclaw@3001ec4
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -6,11 +6,10 @@ import fs from "node:fs/promises";
|
6 | 6 | import os from "node:os"; |
7 | 7 | import path from "node:path"; |
8 | 8 | import { afterEach, describe, expect, it, vi } from "vitest"; |
9 | | -import { |
10 | | -BLANK_USER_FALLBACK_TEXT, |
11 | | -CORRUPTED_IMAGE_FALLBACK_TEXT, |
12 | | -repairSessionFileIfNeeded, |
13 | | -} from "./session-file-repair.js"; |
| 9 | +import { repairSessionFileIfNeeded } from "./session-file-repair.js"; |
| 10 | + |
| 11 | +const BLANK_USER_FALLBACK_TEXT = "(continue)"; |
| 12 | +const CORRUPTED_IMAGE_FALLBACK_TEXT = "[image omitted: corrupted base64 payload]"; |
14 | 13 | |
15 | 14 | function buildSessionHeaderAndMessage() { |
16 | 15 | const header = { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。