JoaoMarcos44
c02af6d14a
fix(pm): gateway and dashboard never prompt for a lazy install on an inherited TTY
...
pm.extras.ensure_import asked "Install it now? [Y/n]" whenever
stdin/stdout were TTYs. A gateway run under a tmux respawn loop, or
started as a hidden Windows console, has a TTY. So a missing extra
(check_telegram_requirements -> ensure_import("telegram")) blocked the
event loop in input() until the liveness watchdog exited 75, and the
respawn loop repeated that indefinitely.
suppress_interactive_install_prompts() is a process-wide, re-entrant
scope; ensure_import treats it like a running prompt_toolkit app. It
now wraps gateway.run_bootstrap.start_gateway (hermes gateway run,
gateway.run.main) and hermes_cli.web_server.start_server
(dashboard/serve).
Live: on main, check_telegram_requirements under a real PTY sat at
the [Y/n] prompt. On this head, inside the gateway scope, it returns
False with no prompt (the adapter is skipped with "requirements not
met").
Salvages #125775 (@JoaoMarcos44): the scope and its pm test are
cherry-picked; the call sites are re-applied because start_gateway
moved to run_bootstrap and dashboard startup moved to start_server.
Part of #125607 (the no-prompt half; the off-loop install half follows in the next layer)
2026-11-09 15:02:48 -08:00
..
2026-11-07 12:01:04 -08:00
2026-11-08 22:46:20 -08:00
2026-10-29 16:58:09 +05:30
2026-11-07 01:17:21 -05:00
2026-11-08 15:52:48 +05:30
2026-11-10 00:16:18 +05:30
2026-11-06 23:02:20 -05:00
2026-11-02 04:06:07 -08:00
2026-10-26 11:34:08 -04:00
2026-11-05 17:59:21 -05:00
2026-10-29 16:58:09 +05:30
2026-11-09 21:17:06 +01:00
2026-10-29 16:58:09 +05:30
2026-10-28 13:09:00 -07:00
2026-11-10 00:16:18 +05:30
2026-10-25 20:47:10 -07:00
2026-10-25 20:47:10 -07:00
2026-11-09 18:06:44 +05:30
2026-10-27 12:44:44 -07:00
2026-11-02 06:58:25 -08:00
2026-11-06 23:02:03 -05:00
2026-10-30 11:13:02 -04:00
2026-11-09 18:06:44 +05:30
2026-10-27 17:33:48 -07:00
2026-10-27 13:23:31 -07:00
2026-10-30 13:46:07 -04:00
2026-11-04 12:56:04 -05:00
2026-10-29 16:58:09 +05:30
2026-11-06 22:59:41 -08:00
2026-10-29 16:58:09 +05:30
2026-11-05 17:59:21 -05:00
2026-11-06 08:46:25 -08:00
2026-11-06 08:46:25 -08:00
2026-11-05 22:23:44 -08:00
2026-11-05 23:12:42 -08:00
2026-11-05 23:12:42 -08:00
2026-11-07 02:46:16 -05:00
2026-10-28 19:05:57 -07:00
2026-11-04 12:56:04 -05:00
2026-11-04 13:26:30 -08:00
2026-11-04 13:38:09 -08:00
2026-11-05 23:12:42 -08:00
2026-11-08 17:34:10 +05:30
2026-11-02 07:54:35 -08:00
2026-11-06 08:46:25 -08:00
2026-11-06 08:46:25 -08:00
2026-11-05 23:12:42 -08:00
2026-10-26 13:04:58 +05:30
2026-11-04 13:26:30 -08:00
2026-11-04 13:26:30 -08:00
2026-10-29 16:30:39 +05:30
2026-11-04 13:26:30 -08:00
2026-10-28 19:05:57 -07:00
2026-11-04 13:38:09 -08:00
2026-11-05 23:12:42 -08:00
2026-11-06 20:23:20 -05:00
2026-11-06 20:23:20 -05:00
2026-10-25 21:57:29 -07:00
2026-10-27 12:57:09 -07:00
2026-11-09 15:02:48 -08:00
2026-11-04 23:06:14 -08:00
2026-11-06 23:02:20 -05:00
2026-10-27 17:33:48 -07:00
2026-10-27 20:24:05 -07:00
2026-10-30 11:13:02 -04:00
2026-11-10 00:16:18 +05:30
2026-11-07 16:44:24 -08:00
2026-10-30 11:13:02 -04:00
2026-10-27 17:33:48 -07:00
2026-10-30 15:41:47 +05:30
2026-10-27 17:33:48 -07:00
2026-11-10 00:16:18 +05:30
2026-11-07 02:46:16 -05:00
2026-11-04 23:37:25 -05:00
2026-11-04 21:32:52 -08:00
2026-10-25 21:02:41 -07:00
2026-11-09 14:42:06 -08:00
2026-11-01 15:47:21 -08:00
2026-10-29 16:58:09 +05:30
2026-10-27 16:30:14 +05:30
2026-10-29 16:58:09 +05:30
2026-11-08 11:44:20 -08:00
2026-11-06 04:08:24 +01:00
2026-10-27 07:53:07 -07:00
2026-11-08 16:47:03 +05:30
2026-11-08 16:47:03 +05:30
2026-10-27 11:51:03 -07:00
2026-11-07 01:17:21 -05:00
2026-11-06 23:04:28 -05:00
2026-11-04 23:37:25 -05:00
2026-11-07 02:46:16 -05:00
2026-11-09 14:42:06 -08:00
2026-10-25 22:22:46 -07:00
2026-10-28 00:51:25 -04:00
2026-10-27 12:57:09 -07:00
2026-10-29 16:30:39 +05:30
2026-11-06 20:48:57 -05:00
2026-10-31 22:08:49 -07:00
2026-10-29 16:30:39 +05:30
2026-10-29 16:30:39 +05:30
2026-11-07 12:01:04 -08:00
2026-11-07 12:01:04 -08:00
2026-11-07 15:15:48 -08:00
2026-11-07 12:01:04 -08:00
2026-11-07 12:01:04 -08:00
2026-11-07 12:01:04 -08:00
2026-11-07 12:01:04 -08:00
2026-11-07 17:54:05 -06:00
2026-11-07 12:01:04 -08:00
2026-11-07 12:01:04 -08:00
2026-11-09 00:56:23 +05:30
2026-11-07 00:01:43 -05:00
2026-10-27 16:30:14 +05:30
2026-11-04 23:37:25 -05:00
2026-10-29 16:30:39 +05:30
2026-11-06 10:38:43 -05:00
2026-11-06 10:38:43 -05:00
2026-11-09 00:56:23 +05:30
2026-10-29 16:58:09 +05:30
2026-11-09 00:56:23 +05:30
2026-11-01 19:24:04 +05:30
2026-10-27 16:30:14 +05:30
2026-11-07 00:01:43 -05:00
2026-11-09 14:42:06 -08:00
2026-10-29 16:58:09 +05:30
2026-11-02 04:24:00 -08:00
2026-10-30 13:46:07 -04:00
2026-11-08 11:59:30 -08:00
2026-11-02 15:06:27 -05:00
2026-10-27 16:30:14 +05:30
2026-10-29 16:58:09 +05:30
2026-11-08 09:51:09 -08:00
2026-10-31 22:04:21 -07:00
2026-10-28 17:06:43 +05:30
2026-11-05 17:59:21 -05:00
2026-11-06 23:02:20 -05:00
2026-11-06 21:18:01 -08:00
2026-11-08 01:26:58 -08:00
2026-11-06 23:02:29 -05:00
2026-11-06 04:08:24 +01:00
2026-10-27 12:13:49 -07:00
2026-11-06 04:08:46 +01:00
2026-11-02 20:53:09 -08:00
2026-11-08 15:52:48 +05:30
2026-11-04 20:52:12 -08:00
2026-11-09 19:13:40 +01:00
2026-11-06 23:01:26 -05:00
2026-11-10 00:16:18 +05:30
2026-10-28 00:51:25 -04:00
2026-11-08 11:44:20 -08:00
2026-11-01 22:07:56 -08:00
2026-11-10 00:49:30 +05:30
2026-11-06 10:41:13 -05:00
2026-11-01 19:53:24 -08:00
2026-10-30 15:41:47 +05:30
2026-10-27 16:03:08 -07:00
2026-10-27 12:44:44 -07:00
2026-10-26 00:32:11 -07:00
2026-10-25 22:28:34 -07:00
2026-10-27 12:44:44 -07:00
2026-11-04 12:56:04 -05:00
2026-11-10 03:03:18 +05:30
2026-11-08 20:09:42 +05:30
2026-11-09 18:06:44 +05:30
2026-11-09 18:06:44 +05:30
2026-10-28 18:55:56 -07:00
2026-10-28 18:55:56 -07:00
2026-11-05 17:59:21 -05:00
2026-11-04 13:26:30 -08:00
2026-11-06 20:39:14 -08:00
2026-11-09 07:41:08 -08:00
2026-10-30 04:39:18 -07:00
2026-11-06 20:22:20 -05:00
2026-11-06 20:22:20 -05:00
2026-10-26 00:40:32 -07:00
2026-11-06 20:48:57 -05:00
2026-11-06 20:22:20 -05:00
2026-11-06 23:27:29 +05:30
2026-11-05 18:28:39 -05:00
2026-11-06 20:22:20 -05:00
2026-11-06 20:48:57 -05:00
2026-10-28 23:07:47 -07:00
2026-11-05 18:47:10 -05:00
2026-10-25 21:57:29 -07:00
2026-11-04 21:58:12 -08:00
2026-11-04 21:58:12 -08:00
2026-11-04 21:58:12 -08:00
2026-10-28 17:21:32 -07:00
2026-11-05 18:28:39 -05:00
2026-11-05 19:16:24 -05:00
2026-11-04 21:58:12 -08:00
2026-11-05 18:28:39 -05:00
2026-11-05 19:16:24 -05:00
2026-11-06 20:22:31 -05:00
2026-10-30 11:27:59 +05:30
2026-11-07 21:35:26 -08:00
2026-11-05 18:27:13 -05:00
2026-11-06 23:27:29 +05:30
2026-10-28 13:09:00 -07:00
2026-11-06 12:57:52 -05:00
2026-11-06 20:22:31 -05:00
2026-11-04 21:58:12 -08:00
2026-11-08 12:02:09 -08:00
2026-11-06 23:04:28 -05:00
2026-10-29 16:58:09 +05:30
2026-11-10 00:16:18 +05:30
2026-11-07 01:11:16 -05:00
2026-11-05 13:08:14 +05:30
2026-11-06 23:27:29 +05:30
2026-10-27 17:33:48 -07:00
2026-11-07 12:01:04 -08:00
2026-11-10 00:16:18 +05:30
2026-11-08 22:20:51 -08:00
2026-10-27 17:33:48 -07:00
2026-11-04 13:38:09 -08:00
2026-11-04 21:32:52 -08:00
2026-11-01 21:54:15 -08:00
2026-10-30 08:02:40 -07:00
2026-11-02 06:57:42 -08:00
2026-11-02 06:57:42 -08:00
2026-10-30 08:02:40 -07:00
2026-10-27 18:24:44 -07:00
2026-11-04 23:37:25 -05:00
2026-11-07 02:46:16 -05:00
2026-11-07 02:46:16 -05:00
2026-11-01 21:30:21 -08:00
2026-10-25 22:36:59 -07:00
2026-11-07 02:46:16 -05:00
2026-11-01 19:53:24 -08:00
2026-11-09 00:56:23 +05:30
2026-11-09 00:56:23 +05:30
2026-11-09 00:56:23 +05:30
2026-11-07 01:17:21 -05:00
2026-11-09 19:13:40 +01:00
2026-11-06 23:04:10 -05:00
2026-11-07 00:01:43 -05:00
2026-10-26 18:14:35 -04:00
2026-10-27 12:57:09 -07:00
2026-11-07 01:17:21 -05:00
2026-10-27 16:30:14 +05:30
2026-11-07 01:17:21 -05:00
2026-10-28 13:10:38 -07:00
2026-10-27 14:02:54 -07:00
2026-11-07 01:17:21 -05:00
2026-10-29 16:58:09 +05:30
2026-10-27 13:23:31 -07:00
2026-11-06 23:17:16 -05:00
2026-11-06 23:23:32 -05:00
2026-11-06 23:17:16 -05:00
2026-11-06 04:08:24 +01:00
2026-11-10 00:16:18 +05:30
2026-11-07 00:01:43 -05:00
2026-11-01 10:08:01 -08:00
2026-11-04 21:32:52 -08:00
2026-11-06 04:08:24 +01:00
2026-11-06 23:02:03 -05:00
2026-11-09 21:17:06 +01:00
2026-11-06 04:08:24 +01:00
2026-11-06 23:04:10 -05:00
2026-11-07 00:01:43 -05:00
2026-11-07 00:01:43 -05:00
2026-11-01 07:26:34 +05:30
2026-10-27 13:23:31 -07:00
2026-10-27 07:53:07 -07:00
2026-10-29 16:58:09 +05:30
2026-10-29 16:58:09 +05:30
2026-11-09 21:17:06 +01:00
2026-11-06 20:23:34 -05:00
2026-11-06 04:08:24 +01:00
2026-11-07 17:54:05 -06:00
2026-11-07 17:54:05 -06:00
2026-11-06 04:08:46 +01:00
2026-11-04 21:58:12 -08:00
2026-11-07 12:01:04 -08:00
2026-11-02 13:56:48 -05:00
2026-11-07 12:01:04 -08:00
2026-11-05 02:36:29 +05:30
2026-10-30 05:54:35 -07:00
2026-11-07 12:01:04 -08:00
2026-10-26 18:13:41 -04:00
2026-10-29 16:58:09 +05:30
2026-10-31 12:56:13 +05:30
2026-11-05 13:08:14 +05:30
2026-11-06 20:39:14 -08:00
2026-10-26 00:32:11 -07:00
2026-10-27 10:56:48 -04:00
2026-10-28 12:18:46 -04:00
2026-11-03 22:58:38 -05:00
2026-10-27 20:55:07 -07:00
2026-11-07 12:01:04 -08:00
2026-11-09 15:02:48 -08:00
2026-11-07 12:01:04 -08:00
2026-11-04 10:58:03 -06:00
2026-10-27 09:42:22 -04:00
2026-10-27 20:44:23 -07:00
2026-10-28 07:25:35 -07:00
2026-11-07 12:01:04 -08:00
2026-11-05 18:26:06 -05:00
2026-10-27 09:42:22 -04:00
2026-11-02 13:56:48 -05:00
2026-10-27 17:33:48 -07:00