replit-tools 1.2.38 → 1.2.39
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/package.json
CHANGED
|
@@ -150,8 +150,12 @@ get_recent_sessions() {
|
|
|
150
150
|
} catch(e) {}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
// Skip sessions with no real user-typed input
|
|
153
|
+
// Skip sessions with no real user-typed input
|
|
154
154
|
if (msgCount === 0 || !firstPrompt) continue;
|
|
155
|
+
// Skip sub-agent sessions: first message is an agent system prompt
|
|
156
|
+
if (/^(you are |you're |\\*\\*role\\*\\*|<role>|## role)/i.test(firstPrompt)) continue;
|
|
157
|
+
// Skip if first message is suspiciously long single-shot agent task (no follow-ups)
|
|
158
|
+
if (msgCount === 1 && firstPrompt.length > 500) continue;
|
|
155
159
|
|
|
156
160
|
const stat = fs.statSync(f);
|
|
157
161
|
sessionData.set('codex:' + id, {
|
|
@@ -399,6 +403,9 @@ get_recent_24h_sessions() {
|
|
|
399
403
|
|
|
400
404
|
// Skip sub-agent / programmatic sessions
|
|
401
405
|
if (realMsgCount === 0 || !firstPrompt) continue;
|
|
406
|
+
// Skip sub-agent sessions: first message is an agent system prompt
|
|
407
|
+
if (/^(you are |you're |\\*\\*role\\*\\*|<role>|## role)/i.test(firstPrompt)) continue;
|
|
408
|
+
if (realMsgCount === 1 && firstPrompt.length > 500) continue;
|
|
402
409
|
|
|
403
410
|
sessions.set('codex:' + id, { tool: 'codex', id, firstSeen: firstTs, lastSeen: lastTs, firstPrompt });
|
|
404
411
|
} catch(e) {}
|