agentacta 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config.js +1 -0
- package/indexer.js +6 -3
- package/package.json +1 -1
package/config.js
CHANGED
package/indexer.js
CHANGED
|
@@ -290,11 +290,14 @@ function indexFile(db, filePath, agentName, stmts, archiveMode) {
|
|
|
290
290
|
}
|
|
291
291
|
if (!sessionType && !initialPrompt) sessionType = 'heartbeat';
|
|
292
292
|
// Detect subagent: task-style prompts injected by sessions_spawn
|
|
293
|
-
// These typically start with a date/time stamp
|
|
293
|
+
// These typically start with a date/time stamp (e.g. "[Wed 2026-...")
|
|
294
|
+
// But exclude System Messages (cron announcements injected into main session)
|
|
294
295
|
if (!sessionType && initialPrompt) {
|
|
295
296
|
const p = initialPrompt.trim();
|
|
296
|
-
// Sub-agent prompts start with "[Wed 2026-..."
|
|
297
|
-
if (/^\[(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+\d{4}-/.test(p)
|
|
297
|
+
// Sub-agent prompts start with "[Wed 2026-..." but NOT "[... [System Message]"
|
|
298
|
+
if (/^\[(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s+\d{4}-/.test(p) && !p.includes('[System Message]')) {
|
|
299
|
+
sessionType = 'subagent';
|
|
300
|
+
}
|
|
298
301
|
}
|
|
299
302
|
|
|
300
303
|
const modelsJson = modelsSet.size > 0 ? JSON.stringify([...modelsSet]) : null;
|