test(agents): add compaction and workspace reset regressions

This commit is contained in:
Peter Steinberger
2026-02-26 17:40:29 +01:00
parent 0ec7711bc2
commit 53e30475e2
4 changed files with 78 additions and 1 deletions

View File

@@ -408,7 +408,11 @@ export async function ensureAgentWorkspace(params?: {
fs.readFile(userPath, "utf-8"),
]);
const hasUserContent = await (async () => {
const indicators = [path.join(dir, "memory"), path.join(dir, DEFAULT_MEMORY_FILENAME)];
const indicators = [
path.join(dir, "memory"),
path.join(dir, DEFAULT_MEMORY_FILENAME),
path.join(dir, ".git"),
];
for (const indicator of indicators) {
try {
await fs.access(indicator);