teknium1
60dd9778c6
fix(desktop): large text pastes attach from HERMES_HOME/composer-pastes when the chat cwd is elsewhere
...
Desktop persisted a large paste under Electron's userData dir and attached
it as `@file:<abs path>`; the tui_gateway prompt path expands that reference
with `allowed_root=cwd`, so `_resolve_path` refused it with "path is outside
the allowed workspace" whenever the chat's cwd was not an ancestor of the
paste dir (always on Linux/macOS, and on Windows for any project cwd).
Electron now writes pastes under `<HERMES_HOME>/composer-pastes`, and
`agent/context_references.py::_resolve_path` admits exactly that anchored
directory (active profile home and global root, via file_safety._hermes_dirs)
as the one root besides `allowed_root`. A sibling directory that merely
contains the substring stays refused; the credential deny-list still runs
on the admitted path.
Supersedes the substring whitelist proposed in #117150 .
Fixes #117149
2026-09-20 19:45:30 -07:00
..
2026-09-09 21:34:06 -04:00
2026-09-16 19:13:25 -05:00
2026-09-17 00:34:50 -05:00
2026-09-18 16:24:07 +05:30
2026-09-15 19:10:53 -07:00
2026-09-18 00:00:23 -07:00
2026-09-20 12:24:46 -07:00
2026-09-20 12:24:46 -07:00
2026-09-17 00:34:50 -05:00
2026-09-16 17:19:06 -07:00
2026-09-16 17:19:06 -07:00
2026-09-11 07:33:17 -05:00
2026-09-15 10:50:53 +05:30
2026-09-20 19:13:13 -07:00
2026-09-18 09:49:46 -07:00
2026-09-18 09:49:46 -07:00
2026-09-16 17:19:06 -07:00
2026-09-16 17:19:06 -07:00
2026-09-17 00:34:50 -05:00
2026-09-11 12:53:07 +05:30
2026-09-11 12:53:07 +05:30
2026-09-11 07:33:17 -05:00
2026-09-11 07:33:17 -05:00
2026-09-15 10:50:53 +05:30
2026-09-15 10:50:53 +05:30
2026-09-08 00:13:36 +00:00
2026-09-08 02:30:34 +05:30
2026-09-15 10:50:53 +05:30
2026-09-15 10:50:53 +05:30
2026-09-11 07:33:17 -05:00
2026-09-11 12:53:07 +05:30
2026-09-11 12:53:07 +05:30
2026-09-15 03:46:45 -07:00
2026-09-15 03:46:45 -07:00
2026-09-11 07:33:17 -05:00
2026-09-18 09:37:29 -07:00
2026-09-16 17:50:47 -07:00
2026-09-18 09:37:29 -07:00
2026-09-12 10:00:08 +05:30
2026-09-18 00:00:23 -07:00
2026-09-18 00:00:23 -07:00
2026-09-16 19:13:25 -05:00
2026-09-16 19:13:25 -05:00
2026-09-16 19:13:25 -05:00
2026-09-16 19:13:25 -05:00
2026-09-16 19:13:25 -05:00
2026-09-16 19:13:25 -05:00
2026-09-16 19:13:25 -05:00
2026-09-20 19:45:30 -07:00
2026-09-20 19:45:30 -07:00
2026-09-11 07:33:17 -05:00
2026-09-11 07:33:17 -05:00
2026-09-20 19:04:11 -07:00
2026-09-20 19:04:11 -07:00
2026-09-18 00:00:23 -07:00
2026-09-18 00:00:23 -07:00
2026-09-08 06:53:22 -07:00
2026-09-08 06:53:22 -07:00
2026-09-16 17:17:22 -07:00
2026-09-16 17:17:22 -07:00
2026-09-16 17:17:22 -07:00
2026-09-16 23:55:40 -05:00
2026-09-16 12:39:46 -05:00
2026-09-18 20:35:27 +05:30
2026-09-18 20:35:27 +05:30
2026-09-17 14:51:18 -04:00
2026-09-10 09:38:07 -07:00
2026-09-10 09:38:07 -07:00
2026-09-11 12:53:17 +00:00
2026-09-15 10:50:53 +05:30
2026-09-20 14:29:15 -07:00
2026-09-20 14:29:15 -07:00
2026-09-11 12:53:07 +05:30
2026-09-07 07:11:36 -07:00
2026-09-07 07:11:36 -07:00
2026-09-16 17:47:26 -07:00
2026-09-16 17:47:26 -07:00
2026-09-17 08:54:13 -07:00
2026-09-17 08:54:13 -07:00
2026-09-12 10:00:06 +05:30
2026-09-14 13:41:54 -04:00
2026-09-20 18:47:20 -07:00
2026-09-20 18:47:20 -07:00
2026-09-10 08:19:13 -07:00
2026-09-10 08:19:13 -07:00
2026-09-10 09:37:47 -07:00
2026-09-08 22:57:02 -04:00
2026-09-12 10:00:08 +05:30
2026-09-20 19:37:57 -07:00
2026-09-20 19:37:57 -07:00
2026-09-15 18:29:37 -07:00
2026-09-15 18:29:37 -07:00
2026-09-15 10:50:53 +05:30
2026-09-11 07:33:17 -05:00
2026-09-20 19:45:30 -07:00
2026-09-15 13:00:12 +05:30
2026-09-15 13:00:12 +05:30
2026-09-15 19:10:53 -07:00
2026-09-15 19:10:53 -07:00
2026-09-11 07:37:59 -05:00
2026-09-11 19:00:50 +00:00
2026-09-11 07:32:34 -05:00
2026-09-11 07:32:34 -05:00
2026-09-11 12:53:07 +05:30
2026-09-11 12:53:07 +05:30
2026-09-09 23:37:48 -05:00
2026-09-09 23:37:48 -05:00
2026-09-10 04:43:55 +00:00
2026-09-09 23:37:48 -05:00
2026-09-10 04:49:08 +00:00
2026-09-10 04:43:55 +00:00
2026-09-10 04:43:55 +00:00
2026-09-11 07:32:34 -05:00
2026-09-15 18:45:13 -07:00
2026-09-15 18:45:13 -07:00
2026-09-11 07:32:34 -05:00
2026-09-11 07:32:34 -05:00
2026-09-11 07:14:55 -05:00
2026-09-15 03:46:45 -07:00
2026-09-15 03:46:45 -07:00
2026-09-17 00:34:50 -05:00
2026-09-11 06:23:18 -07:00
2026-09-11 06:23:18 -07:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-15 18:54:28 -07:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-17 00:34:50 -05:00
2026-09-18 14:39:29 +05:30
2026-09-18 16:24:07 +05:30
2026-09-18 00:00:23 -07:00
2026-09-18 16:24:07 +05:30
2026-09-20 16:20:08 -07:00
2026-09-20 16:20:08 -07:00
2026-09-17 14:51:18 -04:00
2026-09-17 09:05:24 -07:00
2026-09-17 09:05:24 -07:00
2026-09-17 09:05:24 -07:00
2026-09-15 10:50:53 +05:30
2026-09-15 19:10:53 -07:00
2026-09-15 19:10:53 -07:00
2026-09-11 19:00:50 +00:00
2026-09-11 06:23:18 -07:00
2026-09-20 11:27:03 -07:00
2026-09-20 11:27:03 -07:00
2026-09-11 07:33:17 -05:00
2026-09-11 07:33:17 -05:00
2026-09-11 12:26:01 +05:30
2026-09-20 19:13:13 -07:00
2026-09-20 19:13:13 -07:00
2026-09-11 06:22:35 -07:00
2026-09-11 06:22:35 -07:00
2026-09-11 12:53:17 +00:00
2026-09-11 12:53:17 +00:00
2026-09-11 12:53:07 +05:30
2026-09-16 09:46:44 -04:00
2026-09-16 09:46:44 -04:00
2026-09-16 16:18:17 -05:00
2026-09-20 19:21:46 -07:00
2026-09-20 19:21:46 -07:00
2026-09-16 16:18:17 -05:00
2026-09-09 12:13:14 -07:00
2026-09-09 12:13:14 -07:00
2026-09-18 09:37:29 -07:00
2026-09-18 09:37:29 -07:00
2026-09-18 12:43:36 -07:00
2026-09-20 18:30:20 -07:00
2026-09-11 07:32:00 +00:00
2026-09-10 20:08:03 +02:00
2026-09-14 20:22:49 +05:30
2026-09-14 20:22:49 +05:30
2026-09-15 18:46:32 -07:00
2026-09-15 18:46:32 -07:00
2026-09-14 19:56:15 +05:30
2026-09-14 19:56:15 +05:30
2026-09-11 07:33:17 -05:00
2026-09-11 07:33:17 -05:00
2026-09-12 08:18:50 -07:00
2026-09-12 08:18:50 -07:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-08 18:45:42 -05:00
2026-09-20 12:02:31 -07:00
2026-09-20 12:02:31 -07:00
2026-09-20 15:08:40 -07:00
2026-09-20 15:08:40 -07:00
2026-09-20 11:26:29 -07:00
2026-09-20 11:26:29 -07:00
2026-09-20 11:26:29 -07:00
2026-09-07 05:55:26 -07:00
2026-09-20 11:14:36 -07:00
2026-09-20 11:14:36 -07:00
2026-09-16 17:13:56 -07:00
2026-09-16 17:13:56 -07:00
2026-09-15 10:49:40 +05:30
2026-09-15 10:49:40 +05:30
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-12 10:00:08 +05:30
2026-09-20 19:21:46 -07:00
2026-09-20 19:21:46 -07:00
2026-09-18 12:43:36 -07:00
2026-09-18 12:43:36 -07:00
2026-09-15 10:50:53 +05:30
2026-09-15 10:50:53 +05:30
2026-09-18 09:18:32 -07:00
2026-09-18 09:18:32 -07:00
2026-09-10 03:02:40 +00:00
2026-09-10 03:02:40 +00:00
2026-09-09 12:09:00 -07:00
2026-09-09 19:21:46 +00:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00
2026-09-17 14:51:18 -04:00