Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "opencode-mem",
"version": "2.25.0",
"version": "2.26.0",
"description": "OpenCode plugin that gives coding agents persistent memory using local Turso/libSQL vector search",
"type": "module",
"main": "dist/plugin.js",
Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1079,10 +1079,6 @@ function formatMemoriesForCompaction(memories: any[]): string {

memories.forEach((m, i) => {
const tags = Array.isArray(m.tags) ? m.tags : [];
// Auto-capture stores the same tags as a trailing "Tags: …" footer in the
// body (#131). Strip that footer only when it matches the structured tags
// so a later canonical line does not duplicate them. Unrelated user-authored
// "Tags:" lines (manual / API / import) stay in the body.
const body =
tags.length > 0 ? stripMatchingEmbeddedTagsFooter(m.memory ?? "", tags) : (m.memory ?? "");

Expand Down
13 changes: 2 additions & 11 deletions src/services/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,11 @@ function resolveTrustedWindowsShell(untrustedRoot: string): string | null {
accessSync(path, constants.X_OK);
const candidate = canonicalPath(path);
if (!isPathInside(untrustedRoot, candidate)) return candidate;
} catch {
// Try the next trusted system-shell location.
}
} catch {}
}
return null;
}

/**
* Resolve Git only from absolute PATH entries outside the repository being
* inspected. In particular, never let Windows resolve a repository-local
* git.exe/git.cmd/git.bat from the child process working directory.
*/
function resolveTrustedGitCommand(directory: string): GitCommand | null {
const untrustedRoot = findUntrustedProjectRoot(directory);
const executableNames =
Expand All @@ -112,9 +105,7 @@ function resolveTrustedGitCommand(directory: string): GitCommand | null {

const shell = resolveTrustedWindowsShell(untrustedRoot);
if (shell) return { executable, shell };
} catch {
// Continue searching PATH. Missing Git uses the existing null fallbacks.
}
} catch {}
}
}

Expand Down
2 changes: 0 additions & 2 deletions src/services/user-profile/ai-cleanup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ async function callViaExternalAPI(
applySafeExtraParams(requestBody, CONFIG.memoryExtraParams);
}

// Cleanup relies on these fields for deterministic JSON output. Assign them after optional
// provider parameters so callers cannot replace cleanup semantics through extra params.
Object.assign(requestBody, {
model: CONFIG.memoryModel,
messages: [
Expand Down
1 change: 0 additions & 1 deletion src/services/web-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ function serveFetch(opts: {
// rebind after a crashed predecessor left orphaned sockets behind.
server.listen({ port: opts.port, host: opts.hostname, reuseAddr: true, exclusive: false });
server.unref();
// Keep the outer transport alive longer than the longest profile-cleanup deadline.
server.timeout = NODE_HTTP_IDLE_TIMEOUT_MS;
server.keepAliveTimeout = 10000;
server.headersTimeout = 11000;
Expand Down