unsupportedpastels
f7322744fc
fix(plugins): send a key-less inject_message to the session the plugin is working for
...
Before the one-gateway runtime each classic CLI loaded its own plugins, so
ctx.inject_message(text) without a session key meant that CLI's own chat.
On a gateway session the classic CLI now loads no plugin code (PLG-7): the
only copy of a plugin is the gateway's (or its plugin host's), which serves
every session of its profile, so a key-less inject had no chat to target
and was refused.
The gateway now picks the target, in order:
1. The plugin is handling a local session's own call (its slash command, a
hook fired for that session, a tool or hook in its turn): the message
goes to that session. The key is read from the calling context, so this
never guesses, however many sessions are open. pre_command deliveries
now bind the session they fire for. Under plugins.isolation: host the
forwarded ctx call already runs in its caller's context.
2. No session in the calling context (a timer, the plugin's own thread):
the one local session of the plugin's profile launched by the classic
CLI (frozen policy source "cli") with a viewer attached. TUI, Desktop,
messaging and other profiles' sessions are never picked this way.
3. Otherwise (none, or several): refused. inject_message returns False,
nothing is injected, and one warning per plugin and reason (rate
limited) names the plugin and says to pass a session key.
A resolved target is committed through the keyed path's producer
admission: a queued input in that session's FIFO, run once and in order.
A key-less call made for a messaging chat keeps main's refusal; a keyed
inject is unchanged; allow_gateway_injection is still required.
The classic chat view's client-side inject slot (gateway_chat_inject) is
removed: nothing in that process calls it any more. Off the gateway the
in-process _cli_ref path is unchanged. The plugin guide describes the three
rules and recommends passing a session key.
Refs #134889 (PLG-7)
Refs #139523
Refs #139847
2026-10-16 19:39:48 -04:00
..
2026-10-16 12:45:38 +00:00
2026-10-16 15:21:07 -04:00
2026-10-14 05:52:49 -07:00
2026-10-09 17:34:38 +02:00
2026-10-16 08:59:43 +05:30
2026-10-16 19:15:07 -04:00
2026-10-13 04:27:43 -07:00
2026-10-14 22:36:14 -04:00
2026-10-14 22:36:14 -04:00
2026-10-10 15:20:13 +02:00
2026-10-08 21:38:54 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-13 04:42:06 -07:00
2026-10-10 15:20:13 +02:00
2026-10-15 22:25:22 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:19:05 -07:00
2026-10-14 00:32:22 +05:30
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:21 +05:30
2026-10-09 17:34:38 +02: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-13 01:35:42 +05:30
2026-10-14 00:32:21 +05:30
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 14:19:47 -05:00
2026-10-09 17:34:36 +02:00
2026-10-08 12:41:27 -07:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 22:12:27 +02:00
2026-10-09 02:10:47 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 10:24:04 -07:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:25:53 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-16 19:39:48 -04:00
2026-10-07 10:57:34 -07:00
2026-10-15 15:27:38 -04:00
2026-10-14 20:38:25 -04:00
2026-10-16 19:39:48 -04:00
2026-10-16 19:39:48 -04:00
2026-10-16 17:49:54 -04:00
2026-10-13 00:40:42 -07:00
2026-10-13 02:51:44 -07:00
2026-10-16 19:39:48 -04:00
2026-10-16 19:39:48 -04:00
2026-10-16 19:39:48 -04:00
2026-10-16 19:39:48 -04:00
2026-10-16 15:46:44 -04:00
2026-10-12 22:50:08 -07:00
2026-10-12 22:50:08 -07:00
2026-10-15 08:34:12 -07:00
2026-10-16 19:39:48 -04:00
2026-10-15 00:07:50 -04:00
2026-10-16 19:39:48 -04:00
2026-10-12 22:50:08 -07:00
2026-10-08 21:29:48 +02:00
2026-10-15 08:34:12 -07:00
2026-10-09 17:34:38 +02:00
2026-10-16 19:39:48 -04:00
2026-10-16 13:56:20 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:39:48 -04:00
2026-10-16 13:56:20 -07:00
2026-10-16 13:56:20 -07:00
2026-10-15 15:10:20 +02:00
2026-10-16 17:49:54 -04:00
2026-10-08 12:09:24 -07:00
2026-10-08 19:09:50 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 17:59:08 -07:00
2026-10-08 17:22:54 +02:00
2026-10-11 23:38:02 -07:00
2026-10-12 16:55:20 -07:00
2026-10-11 17:21:07 +05:30
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 19:54:07 +02:00
2026-10-09 10:24:04 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:31:52 +02:00
2026-10-10 15:20:13 +02:00
2026-10-14 20:05:34 -04:00
2026-10-15 22:12:28 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-13 03:19:50 +05:30
2026-10-13 22:51:07 -04:00
2026-10-13 22:51:07 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:22 +05:30
2026-10-14 00:32:21 +05:30
2026-10-15 00:31:20 -04:00
2026-10-13 00:17:27 -07:00
2026-10-16 17:49:54 -04:00
2026-10-09 02:10:48 -07:00
2026-10-16 19:39:48 -04:00
2026-10-16 17:49:54 -04:00
2026-10-16 19:39:48 -04:00
2026-10-16 22:09:52 +00:00
2026-10-16 19:12:02 -04:00
2026-10-14 20:05:34 -04:00
2026-10-10 15:20:13 +02:00
2026-10-16 01:54:58 -07:00
2026-10-16 01:54:58 -07:00
2026-10-16 01:54:58 -07:00
2026-10-10 22:49:21 -07:00
2026-10-16 19:39:48 -04:00
2026-10-13 05:43:48 -07:00
2026-10-08 19:08:58 -07:00
2026-10-13 00:31:15 -07:00
2026-10-16 07:19:05 -07:00
2026-10-15 23:48:25 -04:00
2026-10-16 17:49:54 -04:00
2026-10-16 03:56:32 -07:00
2026-10-14 00:45:08 +05:30
2026-10-16 19:39:48 -04:00
2026-10-15 00:31:20 -04:00
2026-10-07 10:57:34 -07:00
2026-10-16 07:09:45 -07:00
2026-10-14 20:05:34 -04:00
2026-10-13 00:31:15 -07:00
2026-10-14 20:05:34 -04:00
2026-10-15 00:31:20 -04:00
2026-10-16 19:39:48 -04:00
2026-10-08 17:22:54 +02:00
2026-10-15 09:22:21 -07:00
2026-10-16 14:33:41 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-16 08:59:43 +05:30
2026-10-14 00:46:15 +05:30
2026-10-11 21:41:22 -07:00
2026-10-08 19:28:23 +02:00
2026-10-07 17:21:31 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 16:55:20 -07:00
2026-10-12 16:55:20 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-12 16:55:20 -07:00
2026-10-12 19:43:49 +05:30
2026-10-08 19:09:32 -07:00
2026-10-09 17:31:52 +02:00
2026-10-10 17:59:08 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 16:55:20 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-14 23:08:31 -04:00
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:52 +02:00
2026-10-16 07:09:45 -07:00
2026-10-08 12:41:27 -07:00
2026-10-07 10:57:35 -07:00
2026-10-16 17:49:54 -04:00
2026-10-16 19:39:48 -04:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 01:15:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 18:04:50 +02:00
2026-10-08 17:22:54 +02:00
2026-10-14 12:42:02 -04:00
2026-10-14 00:32:21 +05:30
2026-10-15 22:12:28 +02:00
2026-10-16 17:42:17 -04:00
2026-10-15 22:12:28 +02:00
2026-10-14 12:42:02 -04:00
2026-10-09 17:31:52 +02:00
2026-10-13 00:29:04 +05:30
2026-10-09 17:34:38 +02:00
2026-10-15 22:25:22 +02:00
2026-10-13 01:35:42 +05:30
2026-10-13 00:29:04 +05:30
2026-10-09 17:34:38 +02:00
2026-10-13 01:35:42 +05:30
2026-10-14 00:32:22 +05:30
2026-10-14 00:32:21 +05:30
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02: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-09 17:34:36 +02:00
2026-10-13 22:08:20 +05:30
2026-10-16 14:31:11 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-16 19:15:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 19:22:03 +02:00
2026-10-10 10:43:32 -07:00
2026-10-16 21:36:26 +00:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 13:11:28 -07:00
2026-10-12 13:11:28 -07:00
2026-10-14 00:06:58 +05:30
2026-10-16 22:15:24 +00:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 04:12:02 -07:00
2026-10-16 14:31:11 -07:00
2026-10-10 10:43:32 -07:00
2026-10-10 10:43:32 -07:00
2026-10-08 03:40:04 -07:00
2026-10-07 16:57:01 -07:00
2026-10-16 16:13:19 +00:00
2026-10-07 16:01:10 -07:00
2026-10-12 14:00:32 -07:00
2026-10-16 19:39:48 -04:00
2026-10-16 19:39:48 -04:00
2026-10-09 17:34:38 +02:00
2026-10-16 19:15:07 -04:00
2026-10-10 10:43:32 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 21:18:25 -07:00
2026-10-10 15:20:13 +02:00
2026-10-16 21:35:53 +00:00
2026-10-09 17:34:36 +02:00
2026-10-14 00:32:21 +05:30
2026-10-08 17:22:54 +02:00
2026-10-13 01:11:36 +05:30
2026-10-14 00:29:12 +05:30
2026-10-14 23:29:57 +05:30
2026-10-07 10:57:35 -07:00
2026-10-13 01:38:59 +00:00
2026-10-11 19:31:37 -07:00
2026-10-14 12:41:58 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-16 10:06:12 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 15:46:25 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-10 15:20:13 +02:00
2026-10-10 06:49:02 -07:00
2026-10-14 08:50:46 -07:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 12:09:24 -07:00
2026-10-16 02:21:08 -07:00
2026-10-16 17:49:54 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:52 +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-09 17:34:36 +02:00
2026-10-10 17:47:35 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 05:52:02 -07:00
2026-10-09 02:10:47 -07:00
2026-10-09 07:08:20 -07:00
2026-10-09 10:24:04 -07:00
2026-10-16 07:09:45 -07:00
2026-10-16 07:09:45 -07:00
2026-10-08 19:00:45 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:38:54 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 13:58:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 13:56:20 -07:00
2026-10-09 04:16:17 -07:00
2026-10-15 11:54:53 -07:00
2026-10-08 17:22:54 +02:00
2026-10-15 05:46:17 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 17:34:38 +02:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-16 19:39:48 -04:00
2026-10-12 14:00:32 -07:00
2026-10-16 19:39:48 -04: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-10 15:20:14 +02:00
2026-10-09 19:46:19 -07:00
2026-10-13 04:42:06 -07:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-07 10:57:35 -07:00
2026-10-16 03:56:32 -07:00
2026-10-09 17:34:38 +02:00
2026-10-15 22:25:22 +02:00
2026-10-09 17:34:36 +02:00
2026-10-10 17:47:35 -07:00
2026-10-09 17:34:36 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:36 +02:00
2026-10-07 06:15:58 -07:00
2026-10-10 06:49:02 -07:00
2026-10-15 22:12:28 +02:00
2026-10-10 15:20:13 +02:00
2026-10-11 23:38:02 -07:00
2026-10-08 17:22:54 +02:00
2026-10-14 20:05:34 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 14:22:08 -07:00
2026-10-12 03:18:48 -07:00
2026-10-16 01:54:58 -07:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-10-07 17:13:11 -04:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-13 01:38:59 +00:00
2026-10-14 05:52:49 -07:00
2026-10-09 07:08:21 -07:00
2026-10-16 16:09:35 +00:00
2026-10-09 14:25:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-16 19:15:07 -04:00
2026-10-16 08:50:13 -04:00
2026-10-16 02:00:45 -07:00
2026-10-09 14:25:07 -07:00
2026-10-09 14:25:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:36 +02:00
2026-10-16 19:15:07 -04:00
2026-10-09 10:24:04 -07:00
2026-10-12 21:01:49 -07:00
2026-10-09 17:31:52 +02:00
2026-10-16 19:15:07 -04:00
2026-10-08 17:22:54 +02:00
2026-10-14 00:32:22 +05:30
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-11 23:38:02 -07:00
2026-10-12 21:34:13 -04:00
2026-10-09 17:34:38 +02:00