Brennan Benson
8e13485c9b
fix(stats): count agent sessions from hook transitions, not OSC titles (STA-2445) ( #14657 )
...
* test(stats): dual-record the OSC-title detector against canonical hook transitions
Adds an AgentSessionTransitionRecorder that derives agent-session start/stop
boundaries from agent-hook status transitions, and a side-by-side comparison
that feeds both pipelines into a real StatsCollector.
Nothing is rewired yet — this commit only measures the delta:
title detector canonical
hook-only agent 0 1
braille-spinner non-agent TUI 1 0
one agent, one reconnect 2 1
totals 3 2
Refs #10201 , STA-2445.
* fix(stats): count agent sessions from hook transitions and delete the title detector
Switches StatsCollector off AgentDetector and onto the canonical agent-hook
status stream, then removes the detector and its raw-PTY invocation.
- main/index.ts subscribes the recorder to subscribeEnrichedStatus and
subscribePaneStatusClear, next to where StatsCollector is constructed.
- orca-runtime.ts no longer feeds raw PTY bytes to a stats detector.
- StatsCollector keys sessions on a stable pane key, not a per-spawn ptyId.
Fixes #10201 , refs STA-2445.
2026-08-18 00:35:50 -07:00
..
2026-08-17 13:53:26 -07:00
2026-08-16 13:51:04 -07:00
2026-08-17 16:13:45 -07:00
2026-08-16 23:34:18 -07:00
2026-08-16 23:34:18 -07:00
2026-08-16 23:34:18 -07:00
2026-08-09 16:45:27 -07:00
2026-08-09 16:45:27 -07:00
2026-06-29 13:16:14 -07:00
2026-06-19 12:34:53 -07:00
2026-08-17 00:11:19 -07:00
2026-08-13 22:23:52 -07:00
2026-08-13 22:23:52 -07:00
2026-08-13 22:23:52 -07:00
2026-08-17 00:11:19 -07:00
2026-08-17 00:11:19 -07:00
2026-08-17 18:26:52 -07:00
2026-08-13 22:48:24 -07:00
2026-08-17 18:26:52 -07:00
2026-08-17 18:26:52 -07:00
2026-08-11 18:19:43 -07:00
2026-07-23 18:35:31 -07:00
2026-08-11 18:19:43 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-15 18:25:37 -07:00
2026-08-13 22:48:24 -07:00
2026-08-03 23:25:21 -07:00
2026-08-14 22:18:36 -07:00
2026-08-14 22:18:36 -07:00
2026-06-18 22:50:11 -07:00
2026-08-13 22:48:24 -07:00
2026-08-07 23:02:29 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 20:44:16 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-07-27 17:18:05 -07:00
2026-07-27 17:18:05 -07:00
2026-06-28 23:35:16 -07:00
2026-08-17 10:29:18 -07:00
2026-08-17 10:29:18 -07:00
2026-08-15 21:41:01 -07:00
2026-08-15 18:25:37 -07:00
2026-07-24 14:42:04 -07:00
2026-08-10 14:32:08 -07:00
2026-08-10 14:32:08 -07:00
2026-07-10 12:56:17 -07:00
2026-07-10 12:56:17 -07:00
2026-07-21 20:51:28 -07:00
2026-08-13 22:48:24 -07:00
2026-07-21 20:51:28 -07:00
2026-08-13 22:48:24 -07:00
2026-08-15 18:25:37 -07:00
2026-08-13 22:48:24 -07:00
2026-08-03 13:06:11 -07:00
2026-07-21 20:51:28 -07:00
2026-08-16 13:45:54 -07:00
2026-08-13 22:48:24 -07:00
2026-08-15 17:59:29 -07:00
2026-08-17 12:44:39 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-13 22:48:24 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-13 22:48:24 -07:00
2026-08-15 18:08:54 -07:00
2026-08-13 22:48:24 -07:00
2026-08-14 00:24:57 -07:00
2026-08-13 22:48:24 -07:00
2026-08-14 00:24:57 -07:00
2026-08-13 22:48:24 -07:00
2026-08-16 20:47:02 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 11:43:48 -07:00
2026-08-09 23:37:33 -07:00
2026-08-17 00:11:19 -07:00
2026-08-17 00:55:04 -07:00
2026-07-10 21:10:29 -07:00
2026-08-17 00:11:19 -07:00
2026-07-21 15:18:45 -07:00
2026-07-18 23:01:29 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-17 00:11:19 -07:00
2026-08-18 00:35:16 -07:00
2026-08-18 00:35:50 -07:00
2026-08-17 01:50:17 -07:00
2026-07-29 11:31:35 -07:00
2026-08-14 18:36:51 -07:00
2026-08-14 18:36:51 -07:00
2026-08-14 18:36:51 -07:00
2026-08-14 18:36:51 -07:00
2026-08-14 18:36:51 -07:00
2026-08-14 18:36:51 -07:00
2026-08-13 22:48:24 -07:00
2026-08-03 23:25:44 -07:00
2026-08-03 23:25:44 -07:00
2026-08-07 20:37:47 -07:00
2026-08-17 00:11:19 -07:00
2026-08-18 00:35:16 -07:00
2026-07-05 23:21:35 -07:00
2026-08-02 19:16:58 -07:00
2026-07-28 12:33:17 -07:00
2026-07-22 18:25:05 -07:00
2026-08-12 16:22:06 -07:00
2026-07-27 16:40:59 -07:00
2026-07-27 16:40:59 -07:00
2026-08-15 19:36:03 -07:00
2026-08-05 01:26:38 -07:00
2026-08-05 01:26:38 -07:00
2026-08-15 18:25:37 -07:00
2026-08-13 22:48:24 -07:00
2026-07-21 15:18:45 -07:00
2026-07-21 15:18:45 -07:00
2026-07-22 18:52:37 -07:00
2026-08-13 22:48:24 -07:00
2026-07-29 17:03:15 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 18:21:48 -07:00
2026-08-13 01:01:33 -07:00
2026-08-08 12:42:38 -07:00
2026-08-13 22:48:24 -07:00
2026-08-17 15:57:07 -07:00
2026-08-17 15:57:07 -07:00
2026-07-17 18:07:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-17 15:57:07 -07:00
2026-08-14 01:21:00 -07:00
2026-08-14 01:21:00 -07:00
2026-07-27 17:32:55 -07:00
2026-07-27 17:32:55 -07:00
2026-06-29 22:38:29 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-07-23 18:35:31 -07:00
2026-06-29 22:38:29 -07:00
2026-08-13 22:48:24 -07:00
2026-07-15 15:23:35 -07:00
2026-07-15 15:23:35 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-07-28 16:05:05 -07:00
2026-07-28 16:05:05 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-15 00:54:20 -07:00
2026-08-14 22:18:36 -07:00
2026-06-29 22:38:29 -07:00
2026-07-02 18:17:47 -07:00
2026-08-09 23:37:33 -07:00
2026-08-13 22:48:24 -07:00
2026-08-02 19:16:58 -07:00
2026-08-03 02:18:05 -07:00
2026-08-03 02:18:05 -07:00
2026-08-16 22:13:03 -07:00
2026-08-04 17:50:52 -07:00
2026-08-13 22:48:24 -07:00
2026-07-15 19:14:22 -07:00
2026-07-10 17:27:47 -07:00
2026-08-13 22:48:24 -07:00
2026-07-22 22:58:09 -07:00
2026-07-22 22:58:09 -07:00
2026-07-22 22:58:09 -07:00
2026-08-13 22:48:24 -07:00
2026-08-09 23:37:33 -07:00
2026-08-14 22:18:36 -07:00
2026-08-13 22:48:24 -07:00
2026-08-14 18:36:51 -07:00
2026-07-05 23:08:37 -07:00
2026-08-07 01:25:18 -07:00
2026-07-20 20:50:25 -07:00
2026-07-23 18:35:31 -07:00
2026-08-17 00:11:19 -07:00
2026-08-07 20:37:47 -07:00
2026-08-07 20:37:47 -07:00
2026-07-30 00:23:24 -07:00
2026-08-13 22:48:24 -07:00
2026-07-13 20:10:50 -07:00
2026-08-11 18:19:43 -07:00
2026-07-15 01:40:41 -07:00
2026-07-15 01:40:41 -07:00
2026-08-13 22:48:24 -07:00
2026-08-13 22:48:24 -07:00
2026-08-08 12:42:38 -07:00
2026-08-14 01:15:30 -07:00
2026-08-17 00:11:19 -07:00
2026-08-17 00:11:19 -07:00
2026-08-17 00:11:19 -07:00