Siddharth Balyan
a11aed1acc
fix(cli): local backend CLI always uses launch directory, stops .env sync of TERMINAL_CWD ( #19334 )
...
The old CWD heuristic was fooled by:
1. TERMINAL_CWD persisted to .env by `hermes config set terminal.cwd`
2. Inherited TERMINAL_CWD from parent hermes processes
3. Only resolved when config had a placeholder value (not explicit paths)
Fix:
- load_cli_config() unconditionally uses os.getcwd() for local backend
- TERMINAL_CWD always force-exported in CLI mode (overrides stale values)
- Gateway sets _HERMES_GATEWAY=1 marker so lazy cli.py imports don't clobber
- Remove terminal.cwd from config-set .env sync map (prevents re-poisoning)
- Clarify setup wizard label as 'Gateway working directory'
Closes #19214
2026-05-04 11:36:19 +05:30
..
2026-05-03 16:58:25 -07:00
2026-04-29 20:33:29 -07:00
2026-04-29 09:53:42 -07:00
2026-05-03 15:26:33 -07:00
2026-04-28 06:46:45 -07:00
2026-04-28 01:50:23 -07:00
2026-04-30 07:03:00 +05:30
2026-04-28 22:11:10 -07:00
2026-04-14 16:11:37 -07:00
2026-04-28 01:50:23 -07:00
2026-04-13 16:32:04 -07:00
2026-04-11 13:14:32 -05:00
2026-04-23 13:32:43 -07:00
2026-03-30 17:07:21 -07:00
2026-05-03 15:29:06 -07:00
2026-04-14 10:45:42 -07:00
2026-05-04 11:36:19 +05:30
2026-04-24 05:09:08 -07:00
2026-04-24 05:07:01 -07:00
2026-05-02 01:29:57 -07:00
2026-04-16 12:36:49 -07:00
2026-05-03 11:42:20 -07:00
2026-03-26 01:34:27 -07:00
2026-04-28 06:46:45 -07:00
2026-05-02 01:40:31 -07:00
2026-04-28 21:04:35 -07:00
2026-04-28 04:58:22 -07:00
2026-04-26 06:19:04 -07:00
2026-05-02 08:51:30 +05:30
2026-04-30 23:10:20 -07:00
2026-04-28 06:46:45 -07:00
2026-05-03 15:13:39 -07:00
2026-05-03 15:13:39 -07:00
2026-04-11 17:23:36 -07:00
2026-05-04 14:13:38 +10:00
2026-04-29 04:03:03 -07:00
2026-05-02 01:40:31 -07:00
2026-04-28 06:46:45 -07:00
2026-04-29 09:53:42 -07:00
2026-05-03 00:32:55 -07:00
2026-04-30 19:34:19 -07:00
2026-04-26 19:02:55 -07:00
2026-04-29 16:55:27 -07:00
2026-04-23 02:34:11 -07:00
2026-04-29 21:56:51 -07:00
2026-04-30 20:29:37 -04:00
2026-04-30 19:56:18 -07:00
2026-04-30 06:43:22 -04:00
2026-04-30 04:32:11 -07:00
2026-04-24 12:07:46 -04:00
2026-04-29 20:33:29 -07:00
2026-04-30 20:18:44 -07:00
2026-05-04 11:36:19 +05:30
2026-04-29 04:03:03 -07:00
2026-04-26 20:57:10 -07:00
2026-04-28 18:47:14 -05:00
2026-04-30 23:21:54 -07:00
2026-04-30 19:46:06 -07:00
2026-04-26 20:48:20 -07:00
2026-04-30 02:30:36 -07:00
2026-05-04 00:04:36 +05:30
2026-04-18 19:18:13 -07:00
2026-04-29 07:22:33 -07:00
2026-04-23 16:18:15 -07:00
2026-05-04 15:37:27 +10:00
2026-04-29 04:03:03 -07:00