Sanjay Santhanam
a52ed70608
fix(terminal): suppress declare -x stdout leak when sourcing snapshot on macOS
...
On macOS (bash 3.2 and certain Homebrew builds), sourcing a file
containing declare -x statements prints each declaration to stdout.
The session snapshot (written by export -p) is full of these, so
every command execution prepends ~60 lines of env vars into the LLM's
context window, wasting tokens and potentially exceeding context
limits (issue #15459 ).
Fix: redirect both stdout and stderr to /dev/null when sourcing the
snapshot. The source builtin still sets the variables in the current
shell — only the print output is suppressed. On Linux this is already
silent, so the redirect is harmless.
Fixes #15459
2026-04-26 22:08:25 -07:00
..
2026-04-16 12:36:49 -07:00
2026-04-26 22:08:25 -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-26 19:05:36 -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-26 11:55:02 -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