vominh1919
2e6699b319
fix: strip leaked declare-x env dump from terminal output on macOS ( #15459 )
...
On macOS (bash 3.2 and some Homebrew bash builds) `source`ing a file that
contains `declare -x` statements prints each declaration to stdout. The
persistent-shell wrapper in tools/environments/base.py was only redirecting
stderr when sourcing the session snapshot, so ~60 lines of env vars leaked
into every terminal tool response — blowing out context and triggering
HTTP 400s on context-limited providers.
Fix: redirect both stdout and stderr when sourcing the snapshot. Linux
bash is silent here, so the redirect is harmless there; macOS no longer
leaks.
Closes #15459
Co-authored-by: Sanjays2402 <51058514+Sanjays2402@users.noreply.github.com >
2026-04-27 00:19:48 -07:00
..
2026-04-16 12:36:49 -07:00
2026-04-27 00:19:48 -07:00
2026-03-17 02:33:12 -07:00
2026-03-31 08:48:54 +09:00
2026-03-23 07:43:12 -07:00
2026-04-25 22:07:12 -07:00
2026-04-08 02:24:32 -07:00
2026-04-01 04:18:50 -07:00
2026-04-21 00:50:58 -07:00
2026-04-24 02:44:46 -07:00
2026-04-23 22:23:37 -07:00
2026-04-23 22:23:37 -07:00
2026-04-26 20:57:19 -07:00
2026-04-08 02:24:32 -07:00
2026-04-26 19:05:52 -07:00
2026-04-07 13:36:38 -07:00
2026-04-26 11:55:02 -07:00
2026-04-11 13:59:52 -07:00
2026-04-25 04:49:28 -07:00
2026-04-07 10:25:31 -07:00
2026-04-26 20:57:19 -07:00
2026-04-26 20:48:38 -07:00
2026-04-21 06:14:25 -07:00
2026-04-17 19:04:11 -07:00
2026-04-17 19:04:11 -07:00
2026-04-23 21:51:19 -07:00
2026-04-21 16:41:26 -07:00
2026-04-27 00:17:26 -07:00
2026-04-21 02:03:46 -07:00
2026-04-13 04:45:07 -07:00
2026-04-23 03:01:18 -07:00
2026-04-17 20:39:25 -07:00
2026-04-02 12:40:03 +11:00
2026-04-26 05:43:54 -07:00
2026-04-26 05:43:54 -07:00
2026-04-26 18:21:20 -07:00
2026-04-14 10:18:05 -07:00
2026-04-23 15:14:11 -07:00
2026-03-18 02:55:30 -07:00
2026-03-11 20:02:36 -07:00
2026-04-05 12:46:07 -07:00
2026-04-21 02:03:46 -07:00
2026-04-11 13:59:52 -07:00
2026-04-26 08:44:58 -07:00
2026-04-14 21:12:29 -07:00
2026-04-07 10:25:31 -07:00
2026-04-24 02:44:46 -07:00
2026-04-26 18:50:49 -07:00
2026-04-26 19:03:17 -07:00
2026-04-23 06:20:47 -07:00
2026-04-23 06:20:47 -07:00
2026-04-26 20:57:10 -07:00
2026-04-23 05:09:08 -07:00
2026-04-24 15:15:07 -07:00
2026-04-27 00:19:48 -07:00
2026-04-23 03:08:53 -07:00
2026-04-11 16:22:50 -07:00
2026-04-26 19:02:55 -07:00
2026-04-23 21:51:19 -07:00
2026-04-11 14:26:11 -07:00
2026-04-24 02:50:14 -07:00
2026-04-21 17:49:39 -07:00
2026-04-26 18:27:13 -07:00
2026-04-20 00:32:09 -07:00
2026-04-17 21:16:33 -07:00
2026-04-22 17:36:33 -07:00
2026-04-07 10:25:31 -07:00
2026-04-16 02:24:08 -07:00
2026-04-26 18:50:49 -07:00