Christian Gunderman
5dc5b4ed4a
fix: handle ENAMETOOLONG gracefully during path resolution
...
This fix was recovered from a timed-out bot run. It addresses issue #26979
where the CLI would crash if a user provided an extremely long path string
in an @ command (e.g. @/aaa...a).
Changes:
- Updated 'robustRealpath' in 'packages/core/src/utils/paths.ts' to catch
and gracefully handle 'ENAMETOOLONG' and 'EINVAL' errors from fs.realpathSync
and fs.lstatSync.
- Added a defensive try-catch block to 'checkPermissions' in
'packages/cli/src/ui/hooks/atCommandProcessor.ts' to prevent long path
strings from crashing the CLI during @ command parsing.
- Added regression unit tests to verify the fix.
2026-05-13 20:24:15 -07:00
..
2026-02-26 07:49:11 +00:00
2026-04-01 15:56:10 +00:00
2026-05-13 20:24:15 -07:00
2026-05-13 20:24:15 -07:00
2026-03-10 14:54:15 +00:00
2026-03-10 14:54:15 +00:00
2026-04-01 16:09:30 +00:00
2026-04-08 07:31:17 -07:00
2026-04-29 17:20:57 +00:00
2026-04-29 17:20:57 +00:00
2026-03-07 23:17:10 +00:00
2026-03-31 21:54:22 +00:00
2026-05-01 18:58:55 +00:00
2026-05-06 21:23:26 +00:00
2026-04-03 00:39:49 +00:00
2026-04-03 00:39:49 +00:00
2026-03-20 20:08:29 +00:00
2026-04-03 00:39:49 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 21:21:40 +00:00
2026-03-20 20:08:29 +00:00
2026-04-21 18:35:14 +00:00
2026-04-21 18:35:14 +00:00
2026-03-28 21:27:51 +00:00
2026-03-28 21:27:51 +00:00
2026-04-07 19:44:09 +00:00
2026-04-07 19:44:09 +00:00
2026-03-20 20:08:29 +00:00
2026-04-03 00:39:49 +00:00
2026-03-25 03:11:09 +00:00
2026-03-25 03:11:09 +00:00
2026-03-11 21:21:40 +00:00
2026-04-13 18:32:18 +00:00
2026-03-11 21:21:40 +00:00
2026-04-02 04:33:07 +00:00
2026-03-30 13:15:10 -07:00
2026-03-20 20:08:29 +00:00
2026-02-05 20:52:41 +00:00
2026-04-21 19:12:50 +00:00
2026-04-21 19:12:50 +00:00
2026-03-10 20:22:03 +00:00
2026-03-20 20:08:29 +00:00
2026-03-16 19:01:52 +00:00
2026-03-20 20:08:29 +00:00
2026-03-19 17:05:33 +00:00
2026-02-18 20:28:17 +00:00
2026-04-03 00:39:49 +00:00
2026-04-02 04:33:07 +00:00
2026-05-01 19:45:31 +00:00
2026-05-01 19:45:31 +00:00
2026-05-04 17:35:13 +00:00
2026-05-04 17:35:13 +00:00
2026-03-24 01:49:51 +00:00
2026-03-24 01:49:51 +00:00
2026-03-20 20:08:29 +00:00
2026-03-24 02:30:48 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-02-10 00:10:15 +00:00
2026-03-24 01:49:51 +00:00
2026-03-09 18:35:08 +00:00
2026-03-20 20:08:29 +00:00
2026-02-05 20:38:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 21:21:40 +00:00
2026-03-19 17:05:33 +00:00
2026-02-11 17:38:01 +00:00
2026-04-02 19:44:39 +00:00
2026-04-02 19:44:39 +00:00
2026-04-08 23:27:24 +00:00
2026-04-08 23:27:24 +00:00
2026-03-20 20:08:29 +00:00
2026-01-23 23:32:06 +00:00
2026-03-20 20:08:29 +00:00
2026-05-05 17:52:08 +00:00
2026-05-05 17:52:08 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 21:21:40 +00:00
2026-03-20 20:08:29 +00:00
2026-01-27 14:19:54 +00:00
2026-04-03 00:39:49 +00:00
2026-04-02 04:33:07 +00:00
2026-03-24 02:30:48 +00:00
2026-03-25 19:15:08 +00:00
2026-03-20 20:08:29 +00:00
2026-02-27 16:52:37 +00:00
2026-03-11 21:21:40 +00:00
2026-03-20 20:08:29 +00:00
2026-03-07 03:14:44 +00:00
2026-02-20 21:08:24 +00:00
2026-02-17 15:16:37 +00:00
2026-03-19 17:05:33 +00:00
2026-02-05 20:38:29 +00:00
2026-03-20 20:08:29 +00:00
2026-04-16 18:45:54 +00:00
2026-02-20 21:08:24 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 23:26:33 +00:00
2026-04-09 21:13:55 +00:00
2026-04-09 21:13:55 +00:00
2026-03-20 20:08:29 +00:00
2026-02-23 01:18:07 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 18:35:08 +00:00
2026-03-11 21:21:40 +00:00
2026-03-04 06:52:56 +00:00
2026-03-20 20:08:29 +00:00
2026-02-06 16:10:17 +00:00
2026-03-20 20:08:29 +00:00
2026-04-09 19:06:27 +00:00
2026-04-23 14:07:06 +00:00
2026-04-23 14:07:06 +00:00
2026-03-19 17:05:33 +00:00
2026-03-05 09:20:46 +00:00
2026-02-20 22:28:55 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 23:26:33 +00:00
2026-03-20 20:08:29 +00:00
2026-03-09 23:26:33 +00:00
2026-03-20 20:08:29 +00:00
2026-03-05 09:20:46 +00:00
2026-02-13 23:33:02 +00:00
2026-02-27 15:07:14 +00:00
2026-03-20 20:08:29 +00:00
2026-03-19 17:05:33 +00:00
2026-01-22 20:46:18 +00:00
2026-05-12 18:58:25 +00:00
2026-04-09 19:06:27 +00:00
2026-03-20 20:08:29 +00:00
2026-04-09 19:06:27 +00:00
2026-02-17 15:16:37 +00:00
2026-05-07 19:39:03 +00:00
2026-04-24 21:29:38 +00:00
2026-03-20 20:08:29 +00:00
2026-03-20 20:08:29 +00:00
2026-03-11 18:43:42 +00:00