mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
preserve thinking delta whitespace in runlog streaming
This commit is contained in:
parent
34d9122b45
commit
d37e1d3dc3
4 changed files with 20 additions and 7 deletions
|
|
@ -164,6 +164,17 @@ describe("cursor ui stdout parser", () => {
|
|||
),
|
||||
).toEqual([{ kind: "thinking", ts, text: "planning next command", delta: true }]);
|
||||
|
||||
expect(
|
||||
parseCursorStdoutLine(
|
||||
JSON.stringify({
|
||||
type: "thinking",
|
||||
subtype: "delta",
|
||||
text: " with preserved leading space",
|
||||
}),
|
||||
ts,
|
||||
),
|
||||
).toEqual([{ kind: "thinking", ts, text: " with preserved leading space", delta: true }]);
|
||||
|
||||
expect(
|
||||
parseCursorStdoutLine(
|
||||
JSON.stringify({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue