instar 1.3.180 → 1.3.182

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.
Files changed (32) hide show
  1. package/dist/commands/server.d.ts.map +1 -1
  2. package/dist/commands/server.js +18 -22
  3. package/dist/commands/server.js.map +1 -1
  4. package/dist/core/SessionManager.d.ts +63 -3
  5. package/dist/core/SessionManager.d.ts.map +1 -1
  6. package/dist/core/SessionManager.js +90 -6
  7. package/dist/core/SessionManager.js.map +1 -1
  8. package/dist/core/StuckInputSentinel.d.ts.map +1 -1
  9. package/dist/core/StuckInputSentinel.js +35 -6
  10. package/dist/core/StuckInputSentinel.js.map +1 -1
  11. package/dist/core/TelegramRelay.d.ts +52 -0
  12. package/dist/core/TelegramRelay.d.ts.map +1 -0
  13. package/dist/core/TelegramRelay.js +80 -0
  14. package/dist/core/TelegramRelay.js.map +1 -0
  15. package/dist/feedback-factory/dryrun/dryRunCompare.d.ts +1 -0
  16. package/dist/feedback-factory/dryrun/dryRunCompare.d.ts.map +1 -1
  17. package/dist/feedback-factory/dryrun/dryRunCompare.js +1 -0
  18. package/dist/feedback-factory/dryrun/dryRunCompare.js.map +1 -1
  19. package/dist/feedback-factory/processor/parity.d.ts +16 -0
  20. package/dist/feedback-factory/processor/parity.d.ts.map +1 -1
  21. package/dist/feedback-factory/processor/parity.js +6 -0
  22. package/dist/feedback-factory/processor/parity.js.map +1 -1
  23. package/dist/server/routes.d.ts.map +1 -1
  24. package/dist/server/routes.js +7 -2
  25. package/dist/server/routes.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/data/builtin-manifest.json +47 -47
  28. package/upgrades/1.3.180.md +58 -45
  29. package/upgrades/1.3.181.md +45 -0
  30. package/upgrades/1.3.182.md +59 -0
  31. package/upgrades/side-effects/codex-stranded-draft-recovery.md +90 -0
  32. package/upgrades/side-effects/telegram-relay-timeout-observability.md +37 -0
@@ -64,6 +64,31 @@ export declare class SessionManager extends EventEmitter {
64
64
  private registryPath;
65
65
  /** Track when each session was first seen idle at the Claude prompt. Key = session ID */
66
66
  private idlePromptSince;
67
+ /**
68
+ * Per-session marker of the most-recently injected message that has NOT yet
69
+ * been confirmed submitted. Keyed by tmuxSession. Used by StuckInputSentinel
70
+ * to recover messages that stranded at the input prompt.
71
+ *
72
+ * Why this exists for codex specifically: Claude Code's readline QUEUES input
73
+ * typed while a turn is in flight and auto-submits it when the turn ends, so a
74
+ * busy-delivery is self-healing. Codex's TUI does NOT — a message typed while
75
+ * codex is "Working" is held as an unsubmitted DRAFT and never auto-submits
76
+ * when the turn ends (live repro 2026-05-31: a user message sat stranded for
77
+ * 3h on a busy 37-min codex turn). The in-process verifyInjection timers only
78
+ * poll for 6.5s — far short of a multi-minute codex turn — and the generic
79
+ * StuckInputSentinel prompt-text reader can't tell a real codex draft from the
80
+ * dim placeholder hint codex renders at an EMPTY `›` prompt. A marker (the
81
+ * actual injected text) is the robust, placeholder-immune tell: the codex
82
+ * placeholder never equals what we injected. The sentinel matches this marker
83
+ * at the `›` prompt and fires Enter once codex goes idle. Cleared on confirmed
84
+ * submit (verifyInjection / sentinel) and GC'd for dead sessions.
85
+ *
86
+ * Distinct from `pendingInjections` (response-verification: did the session die
87
+ * before replying?) — that map is cleared the moment the session produces ANY
88
+ * output, which for a busy codex session happens while the draft is still
89
+ * stranded. This map clears only when the marker actually leaves the prompt,
90
+ * so it survives a long busy turn. */
91
+ private strandedDraftMarkers;
67
92
  /** Throttle stale session cleanup to every 5 minutes */
68
93
  private lastCleanupAt;
69
94
  /** Optional callback to check if a session has active subagents (prevents false zombie kills) */
@@ -695,14 +720,49 @@ export declare class SessionManager extends EventEmitter {
695
720
  */
696
721
  private verifyInjection;
697
722
  /**
698
- * Detect whether a marker snippet of injected text is still sitting at a
699
- * `❯` prompt line in the captured pane. Matches the marker on the same
700
- * line as `❯` or on the immediately-following line (Claude Code wraps
723
+ * Detect whether a marker snippet of injected text is still sitting at an
724
+ * input prompt line in the captured pane. Matches the marker on the same
725
+ * line as the prompt char or on the immediately-following line (TUIs wrap
701
726
  * long input across two visible rows).
702
727
  *
728
+ * Recognises BOTH framework prompt chars: Claude Code's `❯` and codex's `›`
729
+ * (U+203A). Marker-based detection is deliberate for codex — codex renders a
730
+ * dim placeholder hint (e.g. "Explain this codebase") at an EMPTY `›` prompt
731
+ * that is byte-identical to real input once color is stripped, so reading the
732
+ * prompt text generically would false-fire on every idle codex session. The
733
+ * injected marker never equals the placeholder, so matching it is robust.
734
+ *
703
735
  * Exposed as a method so StuckInputSentinel and tests can reuse it.
704
736
  */
705
737
  isMarkerStuckAtPrompt(pane: string, marker: string): boolean;
738
+ /**
739
+ * Extract the distinguishing first-40-chars marker from injected text, the
740
+ * same way verifyInjection and the pending-injection map do. Returns null if
741
+ * the text is too short to be a reliable marker (<8 visible chars). Shared so
742
+ * the recorded marker and the verification marker can never drift apart.
743
+ */
744
+ static extractInjectionMarker(injectedText: string): string | null;
745
+ /**
746
+ * Record that `text` was just injected into `tmuxSession` and has not yet been
747
+ * confirmed submitted. Only the latest injection per session is tracked
748
+ * (a newer message supersedes an older stuck one). No-op when the marker is
749
+ * too short to track reliably. See the strandedDraftMarkers field for why this
750
+ * primarily matters for codex sessions. */
751
+ recordStrandedDraftMarker(tmuxSession: string, text: string, framework: string): void;
752
+ /** Read the stranded-draft marker record for a session (or undefined). Used by
753
+ * StuckInputSentinel to do marker-based recovery for codex sessions. */
754
+ getStrandedDraftMarker(tmuxSession: string): {
755
+ marker: string;
756
+ framework: string;
757
+ injectedAt: number;
758
+ } | undefined;
759
+ /** Clear the stranded-draft marker for a session — called once the marker is
760
+ * no longer stuck at the prompt (confirmed submitted) or the session is
761
+ * gone. */
762
+ clearStrandedDraftMarker(tmuxSession: string): void;
763
+ /** All tmux sessions with a stranded-draft marker. Used by the sentinel to GC
764
+ * records for sessions that are no longer running. */
765
+ strandedDraftMarkerSessions(): string[];
706
766
  /**
707
767
  * Fire one recovery action for a stuck input. Escalates the action by
708
768
  * attempt index — early attempts use plain Enter, later attempts use
@@ -1 +1 @@
1
- {"version":3,"file":"SessionManager.d.ts","sourceRoot":"","sources":["../../src/core/SessionManager.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAM3C,OAAO,EAAE,qBAAqB,EAAoC,MAAM,4BAA4B,CAAC;AACrG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKhD,+CAA+C;AAC/C,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,oCAAoC;AACpC,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtE,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,iBAAiB,EAAE,CAAC;IACnC,cAAc,EAAE,cAAc,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAGD,OAAO,EAAE,UAAU,EAAqB,MAAM,iBAAiB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAGjE,OAAO,KAAK,EAAE,OAAO,EAAE,oBAAoB,EAAiB,SAAS,EAAE,MAAM,YAAY,CAAC;AAC1F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AA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GAAG,OAAO,CAAC,OAAO,CAAC;IAqB1F;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAmD1B;;;;;;;;;OASG;YACW,2BAA2B;IA6BzC,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAcxC,OAAO,CAAC,UAAU;CAGnB"}
@@ -108,6 +108,31 @@ export class SessionManager extends EventEmitter {
108
108
  registryPath = null;
109
109
  /** Track when each session was first seen idle at the Claude prompt. Key = session ID */
110
110
  idlePromptSince = new Map();
111
+ /**
112
+ * Per-session marker of the most-recently injected message that has NOT yet
113
+ * been confirmed submitted. Keyed by tmuxSession. Used by StuckInputSentinel
114
+ * to recover messages that stranded at the input prompt.
115
+ *
116
+ * Why this exists for codex specifically: Claude Code's readline QUEUES input
117
+ * typed while a turn is in flight and auto-submits it when the turn ends, so a
118
+ * busy-delivery is self-healing. Codex's TUI does NOT — a message typed while
119
+ * codex is "Working" is held as an unsubmitted DRAFT and never auto-submits
120
+ * when the turn ends (live repro 2026-05-31: a user message sat stranded for
121
+ * 3h on a busy 37-min codex turn). The in-process verifyInjection timers only
122
+ * poll for 6.5s — far short of a multi-minute codex turn — and the generic
123
+ * StuckInputSentinel prompt-text reader can't tell a real codex draft from the
124
+ * dim placeholder hint codex renders at an EMPTY `›` prompt. A marker (the
125
+ * actual injected text) is the robust, placeholder-immune tell: the codex
126
+ * placeholder never equals what we injected. The sentinel matches this marker
127
+ * at the `›` prompt and fires Enter once codex goes idle. Cleared on confirmed
128
+ * submit (verifyInjection / sentinel) and GC'd for dead sessions.
129
+ *
130
+ * Distinct from `pendingInjections` (response-verification: did the session die
131
+ * before replying?) — that map is cleared the moment the session produces ANY
132
+ * output, which for a busy codex session happens while the draft is still
133
+ * stranded. This map clears only when the marker actually leaves the prompt,
134
+ * so it survives a long busy turn. */
135
+ strandedDraftMarkers = new Map();
111
136
  /** Throttle stale session cleanup to every 5 minutes */
112
137
  lastCleanupAt = 0;
113
138
  /** Optional callback to check if a session has active subagents (prevents false zombie kills) */
@@ -2450,11 +2475,19 @@ rm() { "${shimRunner}" rm "$@"; }
2450
2475
  }
2451
2476
  }
2452
2477
  }
2478
+ // Track the just-injected message so the persistent StuckInputSentinel
2479
+ // can recover it if it strands at the prompt. This is the durable-across-
2480
+ // turn backstop for codex specifically: codex holds a busy-delivery as an
2481
+ // unsubmitted draft and does NOT auto-submit it when the turn ends, and a
2482
+ // long codex turn far outlasts verifyInjection's 6.5s in-process window.
2483
+ if (framework === 'codex-cli') {
2484
+ this.recordStrandedDraftMarker(tmuxSession, text, framework);
2485
+ }
2453
2486
  // Verify Enter actually submitted — on fresh Claude Code TUIs (v2.1.105+)
2454
2487
  // the Enter after bracketed-paste-end is occasionally eaten, leaving the
2455
2488
  // text sitting in the input box unsubmitted. verifyInjection captures the
2456
2489
  // pane after a short delay and sends one extra Enter if the marker text
2457
- // is still visible at the ❯ prompt.
2490
+ // is still visible at the ❯ (or codex `›`) prompt.
2458
2491
  this.verifyInjection(tmuxSession, text);
2459
2492
  return true;
2460
2493
  }
@@ -2518,7 +2551,10 @@ rm() { "${shimRunner}" rm "$@"; }
2518
2551
  return;
2519
2552
  const pane = this.captureOutput(tmuxSession, 30) || '';
2520
2553
  if (!this.isMarkerStuckAtPrompt(pane, marker)) {
2521
- // Submitted (or marker no longer at the input prompt) — stop polling.
2554
+ // Submitted (or marker no longer at the input prompt) — stop polling
2555
+ // and release the stranded-draft marker so the sentinel doesn't keep
2556
+ // re-checking a message that already landed.
2557
+ this.clearStrandedDraftMarker(tmuxSession);
2522
2558
  return;
2523
2559
  }
2524
2560
  // The marker is at the prompt — but if the session is actively working,
@@ -2564,11 +2600,18 @@ rm() { "${shimRunner}" rm "$@"; }
2564
2600
  setTimeout(() => runCheck(0), markerCheckSchedule[0]);
2565
2601
  }
2566
2602
  /**
2567
- * Detect whether a marker snippet of injected text is still sitting at a
2568
- * `❯` prompt line in the captured pane. Matches the marker on the same
2569
- * line as `❯` or on the immediately-following line (Claude Code wraps
2603
+ * Detect whether a marker snippet of injected text is still sitting at an
2604
+ * input prompt line in the captured pane. Matches the marker on the same
2605
+ * line as the prompt char or on the immediately-following line (TUIs wrap
2570
2606
  * long input across two visible rows).
2571
2607
  *
2608
+ * Recognises BOTH framework prompt chars: Claude Code's `❯` and codex's `›`
2609
+ * (U+203A). Marker-based detection is deliberate for codex — codex renders a
2610
+ * dim placeholder hint (e.g. "Explain this codebase") at an EMPTY `›` prompt
2611
+ * that is byte-identical to real input once color is stripped, so reading the
2612
+ * prompt text generically would false-fire on every idle codex session. The
2613
+ * injected marker never equals the placeholder, so matching it is robust.
2614
+ *
2572
2615
  * Exposed as a method so StuckInputSentinel and tests can reuse it.
2573
2616
  */
2574
2617
  isMarkerStuckAtPrompt(pane, marker) {
@@ -2578,12 +2621,53 @@ rm() { "${shimRunner}" rm "$@"; }
2578
2621
  const shortMarker = marker.slice(0, 30);
2579
2622
  for (let i = 0; i < lines.length; i++) {
2580
2623
  const line = lines[i];
2581
- if (line.includes('❯') && (line.includes(marker) || (lines[i + 1] && lines[i + 1].includes(shortMarker)))) {
2624
+ const hasPromptChar = line.includes('❯') || line.includes('›');
2625
+ if (hasPromptChar && (line.includes(marker) || (lines[i + 1] && lines[i + 1].includes(shortMarker)))) {
2582
2626
  return true;
2583
2627
  }
2584
2628
  }
2585
2629
  return false;
2586
2630
  }
2631
+ /**
2632
+ * Extract the distinguishing first-40-chars marker from injected text, the
2633
+ * same way verifyInjection and the pending-injection map do. Returns null if
2634
+ * the text is too short to be a reliable marker (<8 visible chars). Shared so
2635
+ * the recorded marker and the verification marker can never drift apart.
2636
+ */
2637
+ static extractInjectionMarker(injectedText) {
2638
+ const marker = injectedText.replace(/^\s+/, '').slice(0, 40).trim();
2639
+ if (!marker || marker.length < 8)
2640
+ return null;
2641
+ return marker;
2642
+ }
2643
+ /**
2644
+ * Record that `text` was just injected into `tmuxSession` and has not yet been
2645
+ * confirmed submitted. Only the latest injection per session is tracked
2646
+ * (a newer message supersedes an older stuck one). No-op when the marker is
2647
+ * too short to track reliably. See the strandedDraftMarkers field for why this
2648
+ * primarily matters for codex sessions. */
2649
+ recordStrandedDraftMarker(tmuxSession, text, framework) {
2650
+ const marker = SessionManager.extractInjectionMarker(text);
2651
+ if (!marker)
2652
+ return;
2653
+ this.strandedDraftMarkers.set(tmuxSession, { marker, framework, injectedAt: Date.now() });
2654
+ }
2655
+ /** Read the stranded-draft marker record for a session (or undefined). Used by
2656
+ * StuckInputSentinel to do marker-based recovery for codex sessions. */
2657
+ getStrandedDraftMarker(tmuxSession) {
2658
+ return this.strandedDraftMarkers.get(tmuxSession);
2659
+ }
2660
+ /** Clear the stranded-draft marker for a session — called once the marker is
2661
+ * no longer stuck at the prompt (confirmed submitted) or the session is
2662
+ * gone. */
2663
+ clearStrandedDraftMarker(tmuxSession) {
2664
+ this.strandedDraftMarkers.delete(tmuxSession);
2665
+ }
2666
+ /** All tmux sessions with a stranded-draft marker. Used by the sentinel to GC
2667
+ * records for sessions that are no longer running. */
2668
+ strandedDraftMarkerSessions() {
2669
+ return [...this.strandedDraftMarkers.keys()];
2670
+ }
2587
2671
  /**
2588
2672
  * Fire one recovery action for a stuck input. Escalates the action by
2589
2673
  * attempt index — early attempts use plain Enter, later attempts use