@jxtools/promptline 1.3.13 → 1.3.14

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jxtools/promptline",
3
- "version": "1.3.13",
3
+ "version": "1.3.14",
4
4
  "type": "module",
5
5
  "license": "ISC",
6
6
  "bin": {
@@ -3,8 +3,7 @@ import { join } from 'node:path';
3
3
  import type { SessionQueue, Prompt, PromptStatus, SessionStatus, QueueStatus, ProjectView, SessionWithStatus } from '../types/queue.ts';
4
4
 
5
5
  export const SESSION_ACTIVE_TIMEOUT_MS = 60_000;
6
- export const SESSION_EMPTY_IDLE_TIMEOUT_MS = SESSION_ACTIVE_TIMEOUT_MS;
7
- export const SESSION_ABANDONED_TIMEOUT_MS = 24 * 60 * 60_000; // 24h safety net
6
+ export const SESSION_ABANDONED_TIMEOUT_MS = 24 * 60 * 60_000;
8
7
  const LOCK_STALE_MS = 10_000;
9
8
 
10
9
  function acquireLockSync(lockPath: string): void {
@@ -92,9 +91,6 @@ export function withComputedStatus(session: SessionQueue): SessionQueue & { stat
92
91
  export function isSessionVisible(session: SessionQueue, now: number = Date.now()): boolean {
93
92
  if (hasPendingWork(session)) return true;
94
93
  if (session.closedAt != null) return false;
95
- if (session.prompts.length === 0 && msSinceLastActivity(session, now) > SESSION_EMPTY_IDLE_TIMEOUT_MS) {
96
- return false;
97
- }
98
94
  const msSinceStart = now - new Date(session.startedAt).getTime();
99
95
  return msSinceStart <= SESSION_ABANDONED_TIMEOUT_MS;
100
96
  }