fix(status): preserve rich message line breaks · openclaw/openclaw@5b460c4
vincentkoc
·
2026-06-15
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -125,10 +125,17 @@ describe("buildStatusMessage", () => {
|
125 | 125 | resolvedHarness: "openclaw", |
126 | 126 | queue: { mode: "collect", depth: 0 }, |
127 | 127 | modelAuth: "api-key", |
| 128 | +subagentsLine: "🤖 Subagents: 1\n- active run", |
128 | 129 | now: 10 * 60_000, // 10 minutes later |
129 | 130 | }); |
130 | 131 | const normalized = normalizeTestText(text); |
131 | 132 | |
| 133 | +expect( |
| 134 | +text |
| 135 | +.split("\n") |
| 136 | +.slice(0, -1) |
| 137 | +.every((line) => line.endsWith(" ")), |
| 138 | +).toBe(true); |
132 | 139 | expect(normalized).toContain("OpenClaw"); |
133 | 140 | expect(normalized).toContain("Model: anthropic/test:opus"); |
134 | 141 | expect(normalized).toContain("api-key"); |
@@ -145,6 +152,7 @@ describe("buildStatusMessage", () => {
|
145 | 152 | expect(normalized).not.toContain("verbose"); |
146 | 153 | expect(normalized).toContain("elevated"); |
147 | 154 | expect(normalized).toContain("Queue: collect"); |
| 155 | +expect(normalized).toContain("- active run"); |
148 | 156 | }); |
149 | 157 | |
150 | 158 | it("shows configured model costs for aws-sdk providers", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。