mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-24 11:25:50 -06:00
test(telegram): expect status-only default command progress preview
#121600 (4c951398ef) made default command progress status-only — raw command text stays out of chat previews. This assertion still expected the pre-#121600 preview with the raw command line; bisect-confirmed first-bad at4c951398ef. Pre-existing failure surfaced by the dispatch-suite CI gap (#122029). Dispatch suite now 247/247. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -539,11 +539,10 @@ describeTelegramDispatch("dispatchTelegramMessage draft-failures-progress", () =
|
||||
telegramCfg: { streaming: { mode: "progress", progress: { label: "Cracking" } } },
|
||||
});
|
||||
|
||||
// #121600: default command progress is status-only — raw command text stays
|
||||
// out of chat previews (`/verbose full` / commandText: "raw" retain it).
|
||||
expect(answerDraftStream.updatePreview).toHaveBeenCalledWith(
|
||||
telegramProgressPreview(
|
||||
"Cracking\n\n🛠️ Exec\n🛠️ git rev-parse --abbrev-ref HEAD",
|
||||
"<b>Cracking</b>\n<b>🛠️ Exec</b>\n<b>🛠️ Exec</b> <code>git rev-parse --abbrev-ref HEAD</code>",
|
||||
),
|
||||
telegramProgressPreview("Cracking\n\n🛠️ Exec", "<b>Cracking</b>\n<b>🛠️ Exec</b>"),
|
||||
);
|
||||
expect(answerDraftStream.update).not.toHaveBeenCalledWith("Branch is up to date");
|
||||
expect(answerDraftStream.forceNewMessage).toHaveBeenCalledTimes(1);
|
||||
|
||||
Reference in New Issue
Block a user