mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 09:42:53 +00:00
test(claude): cover parent-only replay above the string limit
Exercise the same parent-only resume path routinely with a small corpus, and use PASEO_TEST_LARGE_CLAUDE_REPLAY=1 for the 550 MiB string-limit reproduction. The eager loader returns empty history for this corpus; incremental replay preserves the visible parent event.
This commit is contained in:
@@ -558,6 +558,18 @@ describe("ClaudeAgentSession persisted subagent replay", () => {
|
||||
});
|
||||
|
||||
test.each([
|
||||
{
|
||||
label: "a parent transcript without sidechains",
|
||||
mode: "children",
|
||||
// Cross V8's whole-string limit only in the opt-in reproduction, keeping routine CI small.
|
||||
generate: (root: string) =>
|
||||
generateReplayCorpus(root, {
|
||||
parentMiB: process.env.PASEO_TEST_LARGE_CLAUDE_REPLAY === "1" ? 550 : 2,
|
||||
childrenMiB: 0,
|
||||
children: 0,
|
||||
}),
|
||||
expected: { parentItems: 1, completed: 0, histories: 0 },
|
||||
},
|
||||
{
|
||||
label: "4 MiB parent and 20 sidechains",
|
||||
mode: "children",
|
||||
|
||||
Reference in New Issue
Block a user