Teknium
ee9f9c82a0
fix(gateway,cli): a skill's missing env var opens main's masked secret panel; the gateway saves it
...
Main's classic CLI registered set_secret_capture_callback in process: skill_view of a
skill whose required_environment_variables were missing opened the masked "Skill Setup
Required" panel and saved the answer to the profile .env. On the session authority the
skill runs in the gateway, where a gateway surface only returned the "secure secret
entry is not available" hint.
Gateway (generic, no CLI naming; usable by the TUI/Desktop too):
- gateway/session_secret_prompt.py: for a local viewer's turn the runner binds a
turn-scoped capture callback (tools.skills_tool.bind_turn_secret_capture, a ContextVar
so tool workers started with propagate_context_to_thread inherit it). It sends main's
`secret` server→client request (SecretRequestParams -> ValueResult) through the same
request/response machinery as the sudo prompt (session_sudo_prompt.ask_viewer), saves a
non-empty answer with save_env_value_secure in the gateway, and returns main's result.
- tools/skills_tool_setup: a bound turn callback wins over the gateway-surface hint and
the process-global slot. Messaging turns bind nothing: hint unchanged.
CLI: GatewayAgent answers a `secret` request with main's own panel (prompt_for_secret,
same lines) and returns the value in the JSON-RPC response; the panel's local .env save
is captured, so this process never writes .env.
LEDGER: CB-021, IPS-049 (W4).
(cherry picked from commit 23d28512108bc0469af2c7423f9c6e8e68e87258)
2026-10-12 22:48:29 -07:00
..
2026-10-10 15:20:13 +02:00
2026-10-10 15:20:13 +02:00
2026-10-12 20:01:50 -07:00
2026-10-11 16:53:57 -07:00
2026-10-08 19:00:45 -07:00
2026-10-09 10:24:04 -07:00
2026-10-06 14:22:13 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-07 06:48:09 -07:00
2026-10-08 12:07:00 -07:00
2026-10-08 04:19:43 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-11 11:24:19 -07:00
2026-10-08 19:54:07 +02:00
2026-10-01 16:18:46 +05:30
2026-10-10 17:59:08 -07:00
2026-10-09 10:24:04 -07:00
2026-10-08 12:09:24 -07:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:31:52 +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 02:04:29 -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-08 17:22:54 +02:00
2026-10-06 14:24:24 -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 17:22:54 +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-10 23:42:04 -07:00
2026-10-12 17:31:39 +05:30
2026-10-12 03:18:48 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 13:29:32 -07:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:31:26 -07: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-11 16:53:57 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +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 12:09:24 -07:00
2026-10-08 21:29:48 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:14 +02: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-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-05 16:46:53 -05:00
2026-10-12 13:41:29 -04:00
2026-10-09 17:31:52 +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:31:52 +02:00
2026-10-12 13:41:29 -04:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-08 21:38:54 -07:00
2026-10-11 16:53:57 -07:00
2026-10-12 13:41:29 -04:00
2026-10-08 19:54:07 +02:00
2026-10-05 01:15:16 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 15:36:14 -04:00
2026-10-08 17:22:54 +02:00
2026-10-07 11:19:10 +05:30
2026-10-02 20:24:01 -05:00
2026-10-13 01:35:42 +05:30
2026-10-13 01:35:42 +05:30
2026-10-13 01:35:42 +05:30
2026-10-08 21:38:05 +02:00
2026-10-03 10:26:12 -07:00
2026-10-09 17:34:38 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 18:25:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 22:25:50 -05:00
2026-10-09 10:24:04 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 21:34:28 -07: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-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 14:25:07 -07:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-12 18:25:59 -07:00
2026-10-08 17:22:54 +02:00
2026-10-12 21:34:28 -07:00
2026-10-08 21:29:48 +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-08 17:22:54 +02:00
2026-10-12 13:41:29 -04:00
2026-10-11 04:37:57 -07:00
2026-10-11 04:37:57 -07:00
2026-10-11 19:31:36 -07:00
2026-10-06 00:00:57 -04:00
2026-10-11 19:27:06 +02:00
2026-10-08 19:08:59 -07:00
2026-10-10 15:20:13 +02:00
2026-10-07 10:57:33 -07:00
2026-10-11 11:24:19 -07:00
2026-10-10 15:20:13 +02:00
2026-10-08 21:38:54 -07:00
2026-10-07 01:03:03 +05:30
2026-10-10 15:20:14 +02:00
2026-10-04 00:08:20 -07:00
2026-10-08 17:22:54 +02:00
2026-10-09 10:24:04 -07:00
2026-10-13 01:35:42 +05:30
2026-10-09 17:34:36 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 21:29:48 +02:00
2026-10-09 17:34:38 +02:00
2026-10-12 13:41:29 -04:00
2026-10-09 17:34:36 +02:00
2026-10-10 15:20:13 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 04:37:57 -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-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:34:36 +02:00
2026-10-09 13:58:16 -07:00
2026-10-09 17:34:36 +02:00
2026-10-09 14:25:07 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-12 22:48:29 -07:00
2026-10-12 22:48:29 -07:00
2026-10-08 17:22:54 +02:00
2026-09-30 12:00:50 +05:30
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-09 10:24:04 -07:00
2026-10-11 16:53:57 -07:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 16:53:57 -07:00
2026-10-02 22:42:55 -05:00
2026-10-08 19:42:29 +02:00
2026-10-05 20:08:11 +05:30
2026-10-12 03:18:48 -07:00
2026-10-08 19:54:07 +02:00
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-11 17:21:07 +05:30
2026-10-08 17:22:54 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:31:52 +02:00
2026-10-09 17:31:52 +02:00
2026-10-13 01:35:42 +05:30
2026-10-07 01:02:34 +05:30
2026-10-07 01:02:34 +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-09 17:34:38 +02: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-05 12:37:46 -04:00
2026-10-10 15:20:13 +02:00
2026-10-09 17:34:38 +02:00
2026-09-30 23:02:33 -05: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-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 02:34:03 -07:00
2026-10-08 17:22:54 +02:00
2026-10-01 01:50:16 -05:00
2026-10-08 21:29:48 +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-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 17:22:54 +02:00
2026-10-10 15:20:14 +02:00
2026-10-08 17:22:54 +02:00
2026-10-09 17:34:38 +02:00
2026-10-08 21:29:48 +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-09 17:34:36 +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