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-17 00:34:50 -05:00
2026-09-18 16:24:07 +05:30
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-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-18 09:37:29 -07:00
2026-09-16 17:50:47 -07:00
2026-09-18 09:37:29 -07:00
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-20 19:45:30 -07:00
2026-09-20 19:45:30 -07: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-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-18 20:35:27 +05:30
2026-09-18 20:35:27 +05:30
2026-09-17 14:51:18 -04:00
2026-09-20 14:29:15 -07:00
2026-09-20 14:29:15 -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-20 18:47:20 -07:00
2026-09-20 18:47:20 -07:00
2026-09-20 19:37:57 -07:00
2026-09-20 19:37:57 -07:00
2026-09-20 19:45:30 -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-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-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-20 11:27:03 -07:00
2026-09-20 11:27:03 -07:00
2026-09-20 19:13:13 -07:00
2026-09-20 19:13:13 -07:00
2026-09-20 19:21:46 -07:00
2026-09-20 19:21:46 -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-17 14:51:18 -04:00
2026-09-17 14:51:18 -04: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-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-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-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-18 09:18:32 -07:00
2026-09-18 09:18:32 -07: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