Files
deepseek-harness/packages/client/ui-reference/tests
LegGasaiandimccyu 0a37a1b89a fix(web): keep conversation file references on the same file after a directory move (#8830)
* fix(workspace-path): address opened files by absolute path

`fileAddressFor` rewrote an absolute path inside the Session's directory
into a relative address. A Sidebar tab opened that way named another file,
or none, once the Session's directory moved and the page reloaded.

The address now carries the absolute path whenever one is known: an
absolute path is kept and a relative path is joined to the directory the
caller supplies. A relative path stays relative only while that directory
is unknown.

* fix(ui-chat): resolve relative images from the Session's current directory

A relative Markdown image used the Session header directory, so an image
written while the Session worked in a worktree did not load. It now uses
the directory the Session works in, the base relative file links already
use.

* fix(ui-reference): write picked and dropped files as absolute mentions

A file or folder picked from the `@` list was sent as a path relative to
the Session's directory, and a Desktop drop inside that directory was
rewritten to a relative path. After the directory moved, the sent message
named another file or none.

A settled pick now joins the listed path to the Session's current
directory, and a dropped or pasted file keeps the path the shell reports.
Drill text stays relative. Hand-typed relative mentions are unchanged.

* fix(deliverables): ask for absolute Markdown link and image targets

The file-reference guidance allowed targets relative to the working
directory. A relative target in an earlier reply named another file once
the Session's directory moved, and a model working in a worktree sometimes
wrote targets relative to the original project.

The guidance now asks for absolute targets. The expected system prompts
that assemble this section carry the new wording.

* docs(notes): record how conversation file references survive directory moves

* docs(notes): cite the earlier per-message implementation and its revert

* test(snapshots): carry the absolute-target guidance into the session-send-message prompt

* test(snapshots): add the subagent concurrency sentence to the timeline-follow-chat prompt

The scenario's expected system prompt on master predates the subagent
guidance sentence that states the shared concurrency limit, so its replay
fails on master and on every branch that merges it.

* docs(ui-conversation): remove the stale sentence on relative dropped paths

---------

Co-authored-by: imccyu <[email protected]>
2026-11-19 18:30:41 +08:00
..