Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: address review — fixed-strings git log grep; high limit on pending dedup fetch
Adam Eivyffeef9fe1fa0
diff --git a/server/services/agentRunTracking.js b/server/services/agentRunTracking.jsindex 2e7098805e..eca46d24df 100644--- a/server/services/agentRunTracking.js+++ b/server/services/agentRunTracking.js@@ -70,7 +70,10 @@ export function checkForTaskCommit(taskId, workspacePath) {if (!existsSync(gitDir)) return false;const searchPattern = `[task-${taskId}]`;- const result = spawnSync('git', ['log', '--all', '--oneline', '--grep', searchPattern, '-1'], {+ // --fixed-strings / -F: treat pattern as literal string, not regex. Without+ // this, square brackets in `[task-123]` would be parsed as a character class+ // and fail to match the literal commit message.+ const result = spawnSync('git', ['log', '--all', '--oneline', '--fixed-strings', '--grep', searchPattern, '-1'], {cwd: workspacePath, encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'], windowsHide: true, shell: false});if (result.status !== 0 || result.error) return false;diff --git a/server/services/memoryExtractor.js b/server/services/memoryExtractor.jsindex 1e6eb9ce24..3e74457157 100644--- a/server/services/memoryExtractor.js+++ b/server/services/memoryExtractor.js@@ -267,8 +267,11 @@ export async function extractAndStoreMemories(agentId, taskId, output, task = nuconst sourceAppId = task?.metadata?.app || null;- // Pre-fetch pending memories once for dedup checks across both loops- const pendingForDedup = await getMemories({ status: 'pending_approval' })+ // Pre-fetch pending memories once for dedup checks across both loops.+ // Pass a high limit to avoid relying on the default pagination (50) — dedup+ // should see the full pending backlog so duplicates aren't missed when the+ // queue grows.+ const pendingForDedup = await getMemories({ status: 'pending_approval', limit: 1000 }).catch(err => {console.log(`⚠️ Failed to load pending memories for dedup: ${err.message}`);return { memories: [] };