chore: multiline traversal support (#51)

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-11-01 10:00:04 -07:00
committed by GitHub
parent 4118d018fe
commit 14e67fa156
7 changed files with 139 additions and 42 deletions

View File

@@ -266,7 +266,7 @@ describe("tool truncation integration tests", () => {
const message = startResult.content[0]?.text || "";
const bashIdMatch = message.match(/with ID: (.+)/);
expect(bashIdMatch).toBeTruthy();
const bashId = bashIdMatch![1];
const bashId = bashIdMatch?.[1];
// Wait a bit for output to accumulate
await new Promise((resolve) => setTimeout(resolve, 100));