Files
deepseek-harness/packages/api/workspace-files/src
LegGasai 3c076d74ff fix(workspace-files): judge a directory's descent from the backend's spelling
`workspaceDescent` parsed the request string by its own rules, while the
filesystem backend expands a leading `~` and applies its platform's drive
and UNC rules to the same string. `list('~')` and a directory watch on `~`
were therefore accepted with no link in the workspace, as was a path on
another drive under a root spelled `//server/share`.

The check now compares the two spellings the backend resolved, the root's
and the directory's `displayPath`: absolute, home prefix expanded, no link
followed. A root spelling that is not absolute never qualifies.

Also correct two documents that still stated the earlier rule and the
reason the decision record gave for refusing a `..` segment.

Refs #8895
2026-11-20 16:10:31 +08:00
..