kshitijk4poor
81208783ca
refactor(approval): one "no user can answer" helper for every CLI-callback prompt
...
`hermes chat -q`, cron and unattended platforms can all have the CLI panel
callback registered with nobody to answer it. The MCP/vault consent prompt
(#133229 ) and the vault unlock prompt each spelled out
single_query or cron or unattended_platform by hand; the protected-instruction
gate and the memory prompt (salvaged above) checked single-query only, so a
cron job or a webhook session could still wait the full approval timeout
there. tools.approval_context._no_user_can_answer() now answers it once and
every one of those call sites uses it.
The memory prompt's _interactive_approval_available() wrapper is folded into
that one check, and its import- and runtime-failure fallbacks (and their
parametrized test) go: _no_user_can_answer reads session env through
_session_env, which already swallows errors, and tools.approval_context
imports nothing from the memory/terminal side.
2026-10-05 20:08:11 +05:30
..
2026-09-29 03:28:46 +05:30
2026-09-28 10:21:41 -07:00
2026-10-02 01:18:03 +05:30
2026-09-28 10:21:41 -07:00
2026-09-29 22:57:48 -04:00
2026-10-03 16:29:34 +05:30
2026-10-05 20:08:11 +05:30
2026-09-25 21:27:06 +05:30
2026-09-28 12:53:29 -05:00
2026-10-04 00:08:20 -07:00
2026-10-03 18:17:35 +05:30
2026-09-28 14:16:18 -07:00
2026-10-04 18:29:01 -07:00
2026-10-04 17:51:24 -07:00
2026-10-02 00:18:00 +05:30
2026-10-02 00:18:00 +05:30
2026-10-02 00:18:00 +05:30
2026-09-24 22:26:23 +05:30
2026-09-24 22:25:06 +05:30
2026-09-29 23:54:34 +05:30
2026-10-03 13:38:29 -07:00
2026-10-05 19:35:01 +05:30
2026-10-05 19:35:01 +05:30
2026-09-22 01:19:12 -07:00
2026-10-02 16:44:56 -07:00
2026-09-23 15:13:16 -07:00
2026-10-02 16:44:56 -07:00
2026-09-28 10:21:41 -07:00
2026-09-30 22:59:48 -05:00
2026-09-28 10:21:41 -07:00
2026-09-23 18:29:35 -05:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-10-03 16:31:39 +05:30
2026-09-24 15:58:19 +05:30
2026-09-24 15:58:19 +05:30
2026-09-25 13:49:31 -05:00
2026-09-23 11:41:01 -04:00
2026-10-05 19:35:01 +05:30
2026-10-03 16:31:39 +05:30
2026-10-02 01:24:41 +05:30
2026-09-23 18:52:49 -05:00
2026-10-03 16:54:06 +05:30
2026-10-02 00:50:20 +05:30
2026-09-28 14:16:18 -07:00
2026-10-04 12:02:15 +05:30
2026-09-26 23:49:25 +05:30
2026-09-28 11:29:49 -05:00
2026-10-04 13:53:34 +05:30
2026-10-03 18:17:35 +05:30
2026-10-03 18:22:19 +05:30
2026-09-23 23:06:15 +05:30
2026-10-03 18:22:19 +05:30
2026-10-02 00:50:20 +05:30
2026-09-26 11:22:06 -07:00
2026-09-24 15:44:48 +05:30
2026-10-02 00:03:01 +05:30
2026-09-28 10:21:41 -07:00
2026-09-26 17:59:52 -05:00
2026-09-27 00:04:22 +05:30
2026-09-28 12:43:03 -07:00
2026-10-02 22:21:27 -05:00
2026-09-29 18:33:44 +05:30
2026-10-02 22:59:00 -05:00
2026-09-29 19:31:49 -05:00
2026-09-28 10:21:41 -07:00
2026-10-04 02:12:57 +05:30
2026-10-04 13:53:34 +05:30
2026-09-24 02:23:44 -04:00
2026-09-24 00:30:45 +00:00
2026-09-28 14:16:18 -07:00
2026-09-28 14:16:18 -07:00
2026-09-28 14:16:18 -07:00
2026-10-02 01:18:03 +05:30
2026-09-28 10:21:41 -07:00
2026-10-04 17:54:05 -07:00
2026-09-29 22:07:30 +05:30
2026-09-23 18:29:35 -05:00
2026-09-27 02:02:41 +05:30
2026-10-01 09:26:00 -04:00
2026-09-30 22:30:35 -04:00
2026-09-28 10:21:41 -07:00
2026-09-30 23:10:24 -05:00
2026-09-24 08:51:52 -04:00
2026-09-23 18:26:45 -07:00
2026-09-28 12:43:03 -07:00
2026-09-23 01:06:32 -07:00
2026-10-03 18:17:35 +05:30
2026-10-02 12:29:16 -04:00
2026-09-29 04:15:21 +05:30
2026-10-02 20:28:55 -05:00
2026-10-02 20:29:34 -05:00
2026-09-23 15:26:34 -04:00
2026-10-05 20:01:03 +05:30
2026-09-28 10:21:41 -07:00
2026-09-27 01:55:21 +05:30
2026-09-28 10:21:41 -07:00
2026-09-22 16:15:34 +05:30
2026-09-23 11:41:01 -04:00
2026-10-04 23:05:42 -07:00
2026-09-28 10:21:41 -07:00
2026-09-27 00:38:34 +05:30
2026-09-23 21:28:38 +05:30
2026-10-02 01:18:03 +05:30
2026-09-26 17:59:52 -05:00
2026-10-03 16:29:34 +05:30
2026-09-26 22:21:47 +05:30
2026-09-27 02:48:48 -05:00
2026-09-25 21:28:32 +05:30
2026-10-03 21:15:17 +05:30
2026-10-03 13:38:29 -07:00
2026-10-03 13:38:29 -07:00
2026-09-28 10:21:41 -07:00
2026-10-02 00:53:19 +05:30
2026-09-28 10:21:41 -07:00
2026-09-28 11:29:49 -05:00
2026-09-27 01:10:56 +05:30
2026-09-29 14:53:00 -05:00
2026-09-29 22:57:48 -04:00
2026-10-02 13:50:23 -04:00
2026-09-29 04:15:21 +05:30
2026-10-02 20:18:26 -05:00
2026-09-28 10:21:41 -07:00
2026-10-05 00:23:05 -07:00
2026-09-26 23:49:25 +05:30
2026-10-03 23:05:48 -07:00
2026-10-02 04:09:57 -07:00
2026-09-24 22:41:10 +05:30
2026-09-26 06:10:53 +05:30
2026-09-29 14:53:00 -05:00
2026-09-27 02:22:23 +05:30
2026-10-01 11:45:41 -07:00
2026-10-01 00:42:30 -05:00
2026-09-28 10:21:41 -07:00
2026-09-24 22:41:10 +05:30
2026-09-26 20:40:40 -05:00
2026-10-01 23:50:31 -07:00
2026-10-04 00:08:20 -07:00
2026-10-01 13:23:12 -07:00
2026-09-28 12:43:03 -07:00
2026-10-02 01:04:12 +05:30
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-10-01 03:27:39 -05:00
2026-09-24 22:33:58 +05:30
2026-09-28 12:43:03 -07:00
2026-09-24 22:27:18 +05:30
2026-10-04 18:04:17 -07:00
2026-10-04 18:04:17 -07:00
2026-09-28 14:16:18 -07:00
2026-10-03 17:44:58 +05:30
2026-09-29 15:57:52 -05:00
2026-09-26 06:10:53 +05:30
2026-10-04 17:47:39 -07:00
2026-10-04 18:04:17 -07:00
2026-10-02 00:50:20 +05:30
2026-10-03 16:18:04 -05:00
2026-09-28 12:43:03 -07:00
2026-09-23 05:36:34 -07:00
2026-10-01 12:08:13 -07:00
2026-10-02 00:18:00 +05:30
2026-09-28 12:43:03 -07:00
2026-09-28 12:43:03 -07:00
2026-09-28 10:21:41 -07:00
2026-09-24 22:41:10 +05:30
2026-10-02 12:29:16 -04:00
2026-10-02 12:29:16 -04:00
2026-10-02 00:53:19 +05:30
2026-09-29 23:54:34 +05:30
2026-09-26 17:15:30 -05:00
2026-10-01 16:40:58 +05:30
2026-09-26 23:49:25 +05:30
2026-10-02 01:18:03 +05:30
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00
2026-09-28 10:21:41 -07:00