Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(compaction): match artifact refs from both soft trim and truncation markers
Jiayuan Zhang58f02a2080a7
diff --git a/packages/core/src/agent/context-window/tool-result-pruning.ts b/packages/core/src/agent/context-window/tool-result-pruning.tsindex f957f2d69a..be1cdaa636 100644--- a/packages/core/src/agent/context-window/tool-result-pruning.ts+++ b/packages/core/src/agent/context-window/tool-result-pruning.ts@@ -283,7 +283,7 @@ function takeTail(text: string, maxChars: number): string {* Returns the artifact relative path, or null if not found.*/function extractArtifactRef(text: string): string | null {- const match = text.match(/Full result saved to (artifacts\/[^\s.]+\.txt)/);+ const match = text.match(/Full result (?:saved to|available at) (artifacts\/[^\s.]+\.txt)/);return match?.[1] ?? null;}