mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:18:28 +00:00
fix(agent): align tools + preserve indentation
This commit is contained in:
@@ -780,9 +780,7 @@ describe("subscribeEmbeddedPiSession", () => {
|
||||
handler?.({ type: "message_end", message: assistantMessage });
|
||||
|
||||
expect(onBlockReply).toHaveBeenCalledTimes(3);
|
||||
expect(onBlockReply.mock.calls[1][0].text).toBe(
|
||||
"~~~sh\nline1\nline2\n~~~",
|
||||
);
|
||||
expect(onBlockReply.mock.calls[1][0].text).toBe("~~~sh\nline1\nline2\n~~~");
|
||||
});
|
||||
|
||||
it("keeps indented fenced blocks intact", () => {
|
||||
|
||||
Reference in New Issue
Block a user