unsupportedpastels
4e0806d5dc
fix(approval): skip the execute_code gate only while an approving viewer is attached
...
The exemption's last condition, a notifier registered for the bound session
key, holds for every gateway session turn: TurnRunner registers it whether
or not a viewer is attached. It only told side tasks apart and did not show
that anyone could answer. A viewer's queued turn that ran after the viewer
detached still skipped the whole-script gate, so non-terminal() code in the
script ran unprompted while its terminal() prompts timed out.
The attached-viewer records are reachable without a new protocol: the live
session that execute_admission binds for a viewer turn holds its
subscribers, the same records the approval resolver checks
(SessionAuthority accepts an approval answer only from an attached
subscriber holding session:approve) and the local clarify path already
reads. approval_context.is_viewer_turn_with_approver() now also requires
such a subscriber at gate time; a read-only viewer or nobody attached keeps
the whole-script gate. The notifier check stays, documented as what it is:
it tells side tasks apart, not that a human is present.
Tests: a viewer turn with nobody or only a read-only viewer attached gets the
whole-script prompt and a denied script never runs, and a viewer's turn
submitted after it detached keeps the gate in the real drain (both failed
before this change: the script ran / the gate was skipped).
Refs #134889 (T2)
Refs #139523
2026-10-16 19:42:20 -04:00
..
2026-10-16 17:58:51 -04:00
2026-10-16 21:36:26 +00:00
2026-10-08 17:22:54 +02:00
2026-10-16 08:59:43 +05:30
2026-10-16 02:18:35 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-02 00:46:21 +05:30
2026-10-09 07:08:20 -07:00
2026-09-20 20:13:19 -07:00
2026-10-09 07:08:20 -07:00
2026-10-09 07:08:20 -07:00
2026-10-09 14:25:07 -07:00
2026-10-14 20:05:34 -04:00
2026-10-07 18:20:07 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 14:25:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-04 00:08:20 -07:00
2026-10-16 01:54:58 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 14:33:41 -07:00
2026-10-16 18:05:39 -04:00
2026-10-16 14:33:41 -07:00
2026-10-10 17:59:08 -07:00
2026-10-06 14:24:24 -07:00
2026-10-06 14:24:24 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-09-28 10:21:41 -07:00
2026-10-10 22:49:21 -07:00
2026-10-07 10:57:33 -07:00
2026-10-09 02:10:47 -07:00
2026-10-09 17:34:38 +02:00
2026-10-02 22:21:27 -05:00
2026-10-10 15:20:14 +02:00
2026-10-02 22:21:27 -05:00
2026-10-14 20:05:34 -04:00
2026-10-15 09:31:03 -04:00
2026-10-16 22:10:26 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:36 +02:00
2026-10-15 22:12:28 +02:00
2026-10-09 07:08:20 -07:00
2026-10-09 07:08:20 -07:00
2026-10-16 19:39:48 -04:00
2026-10-08 17:22:54 +02:00
2026-09-23 21:26:49 +05:30
2026-10-15 00:31:20 -04:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-09-22 07:05:11 -04:00
2026-10-09 10:24:04 -07:00
2026-10-16 14:41:44 -07:00
2026-10-16 19:13:35 -04:00
2026-10-16 01:54:58 -07:00
2026-10-16 19:39:48 -04:00
2026-10-16 17:49:54 -04:00
2026-09-20 15:30:45 -07:00
2026-10-16 14:41:44 -07:00
2026-10-11 19:31:35 -07:00
2026-09-22 16:15:34 +05:30
2026-10-16 15:03:56 -07:00
2026-10-10 05:52:03 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:12:02 -04:00
2026-10-05 01:26:23 -07:00
2026-09-28 14:16:18 -07:00
2026-10-16 00:03:59 +02:00
2026-10-16 17:42:48 -04:00
2026-10-10 17:59:08 -07:00
2026-10-16 17:42:48 -04:00
2026-10-16 19:39:48 -04:00
2026-10-08 17:22:54 +02:00
2026-10-11 19:31:37 -07:00
2026-10-10 17:59:08 -07:00
2026-10-16 07:19:04 -07:00
2026-10-15 00:07:50 -04:00
2026-10-16 14:33:41 -07:00
2026-10-14 05:52:49 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 15:21:07 -04:00
2026-10-16 07:26:28 -07:00
2026-10-16 14:41:44 -07:00
2026-10-16 22:10:26 +02:00
2026-09-28 14:16:18 -07:00
2026-10-04 11:58:00 +05:30
2026-10-16 17:42:17 -04:00
2026-10-16 19:17:14 -04:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-16 14:35:30 -07:00
2026-10-16 01:54:58 -07:00
2026-10-13 01:38:59 +00:00
2026-10-10 17:59:08 -07:00
2026-10-08 19:28:23 +02:00
2026-10-11 19:31:36 -07:00
2026-10-08 17:22:54 +02:00
2026-10-13 00:30:52 -07:00
2026-10-12 22:49:19 -07:00
2026-10-14 00:14:22 +00:00
2026-10-08 09:10:50 -07:00
2026-10-16 19:17:14 -04:00
2026-10-11 19:31:33 -07:00
2026-10-14 20:05:34 -04:00
2026-10-10 22:19:45 -07:00
2026-10-10 22:49:18 -07:00
2026-10-16 17:58:51 -04:00
2026-10-16 21:35:53 +00:00
2026-10-16 01:37:49 -04:00
2026-10-16 01:37:49 -04:00
2026-10-13 00:30:47 -07:00
2026-10-12 22:49:19 -07:00
2026-10-14 20:38:25 -04:00
2026-10-13 01:44:31 -07:00
2026-10-16 19:39:48 -04:00
2026-10-14 20:38:25 -04:00
2026-10-16 17:42:48 -04:00
2026-10-13 02:43:13 -07:00
2026-10-14 20:38:25 -04:00
2026-10-16 19:39:48 -04:00
2026-10-12 22:49:19 -07:00
2026-10-15 08:34:12 -07:00
2026-10-16 19:39:48 -04:00
2026-10-16 14:18:18 -07:00
2026-09-28 04:34:30 -07:00
2026-10-16 02:17:39 -07:00
2026-10-16 19:39:48 -04:00
2026-10-10 06:27:29 -07:00
2026-10-16 14:41:44 -07:00
2026-10-16 22:10:26 +02:00
2026-10-16 12:45:25 +00:00
2026-10-12 22:25:37 -07:00
2026-10-10 05:52:02 -07:00
2026-10-08 19:08:59 -07:00
2026-10-14 23:46:46 -04:00
2026-10-09 02:10:47 -07:00
2026-10-14 22:48:52 -04:00
2026-10-09 10:24:04 -07:00
2026-10-11 07:34:31 -07:00
2026-10-13 02:51:17 -07:00
2026-10-11 08:56:54 -07:00
2026-10-16 14:21:00 -07:00
2026-10-16 17:58:51 -04:00
2026-10-16 19:42:20 -04:00
2026-10-15 16:33:28 -04:00
2026-10-09 17:34:36 +02:00
2026-10-13 00:31:12 -07:00
2026-10-13 00:31:12 -07:00
2026-10-15 15:27:38 -04:00
2026-10-16 19:39:48 -04:00
2026-10-15 15:27:38 -04:00
2026-10-16 15:46:44 -04:00
2026-10-10 05:52:03 -07:00
2026-10-16 12:45:04 +00:00
2026-10-16 10:02:10 +05:30
2026-10-16 17:49:54 -04:00
2026-10-08 19:08:59 -07:00
2026-10-16 22:10:26 +02:00
2026-10-13 00:35:44 -07:00
2026-10-16 02:45:02 -07:00
2026-10-16 02:23:32 -07:00
2026-10-16 17:42:48 -04:00
2026-10-16 19:42:20 -04:00
2026-10-12 22:25:38 -07:00
2026-10-16 14:21:00 -07:00
2026-10-16 19:17:14 -04:00
2026-10-16 19:17:14 -04:00
2026-10-16 17:49:54 -04:00
2026-10-08 17:22:54 +02:00
2026-10-09 07:08:20 -07:00
2026-10-14 20:46:58 -04:00
2026-10-07 10:57:34 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 17:31:26 -07:00
2026-10-16 02:21:43 -07:00
2026-10-10 07:58:50 -07:00
2026-10-12 22:48:29 -07:00
2026-10-16 02:23:21 -07:00
2026-10-16 22:10:26 +02:00
2026-10-10 17:59:08 -07:00
2026-10-13 00:30:44 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 22:49:19 -07:00
2026-10-08 19:08:59 -07:00
2026-10-08 09:10:26 -07:00
2026-10-09 17:34:38 +02:00
2026-10-13 02:43:13 -07:00
2026-10-14 20:47:20 -04:00
2026-10-13 05:43:48 -07:00
2026-10-16 12:45:24 +00:00
2026-10-13 00:30:37 -07:00
2026-10-15 08:34:12 -07:00
2026-10-16 17:42:48 -04:00
2026-10-16 17:49:54 -04:00
2026-10-08 09:10:50 -07:00
2026-10-10 22:49:18 -07:00
2026-10-08 09:10:26 -07:00
2026-10-11 19:31:35 -07:00
2026-10-10 17:59:08 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 10:24:04 -07:00
2026-10-08 19:54:07 +02:00
2026-09-20 13:37:10 -07:00
2026-10-16 14:41:44 -07:00
2026-10-13 01:57:49 -07:00
2026-10-16 02:23:27 -07:00
2026-10-15 09:12:44 -07:00
2026-10-14 00:32:21 +05:30
2026-10-16 13:56:20 -07:00
2026-10-15 12:06:34 +05:30
2026-10-15 16:33:11 -04:00
2026-10-15 16:33:11 -04:00
2026-09-28 10:21:41 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-09-28 12:43:03 -07:00
2026-10-09 10:24:04 -07:00
2026-09-28 10:21:41 -07:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:34:38 +02:00
2026-10-15 22:12:28 +02:00
2026-09-28 10:21:41 -07:00
2026-10-15 22:12:28 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 14:25:07 -07:00
2026-10-11 07:34:30 -07:00
2026-10-08 17:22:54 +02:00