* 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]>
Replace the observable SessionInput.referenceInsertionAllowed with
canInsertReferences(), a read that addReferences rechecks before editing.
The file context menu now observes only the locale; a draft that becomes
uneditable while the menu stays open reports failure on selection. The
input facade reads Session and composer-block facts through plain
functions, matching the quote-insertion dependency.
SessionInputShell now receives the Session and composer-block sources
directly and evaluates removal, subagent mode, and blocks in one private
check shared by quote insertion and referenceInsertionAllowed. The
separate draft-editability helper is removed.
Replace the public SessionInput.addFiles with addReferences, keeping the
attachment-carrying addFiles as a SessionInputShell method for drop and
paste. Conversation now owns the Session and composer-block editability
rule as an observable referenceInsertionAllowed, shared with quote
insertion, so the file context menu no longer duplicates it.
A stat that rejects left its Session and path marked as outstanding, so the
mention stayed original text until reload. The flag now clears on rejection
and the rejection stays unhandled, so the Remote assembly fault is reported.
The README states why presence does not read the `file` resource through
`useResource`, that a symbolic link counts as present, and that a picked
candidate is confirmed only for the same Session and page load. The module
comment states that outstanding stats are unbounded. `openReference` and
`presenceFor` reuse `mentionPath` and `MentionSessionId`, and the Web scenario
drops a fixture write the scaffold already performs on refresh.
The lower branch removed `rootOf` and the `workspaceRoot` projection: a Session
has one directory, read through `ctx.workingDirectory.get`. This merge moves the
consumers of this branch to that read.
- sandbox-policy, workspace-files, and workspace-changes read `get`; the
`recordedRootOf` read is removed. With the working-directory service mounted,
a Session without a header directory is bounded by that service's default
directory.
- The skill catalog, sidebar terminals, project instructions, `@` file
candidates, the LSP workspace, and skill lookup return to the lower branch's
code, which already reads the directory.
- The client helper exports `selectSessionDirectory` and `sessionDirectory`
in place of the `{ root, cwd }` pair; `WorkspaceChangesSummary` keeps `cwd`,
now the directory the turn started in.
- A stored `working-directory/change` inside the project moves the write
boundary and file views with the directory; one outside returns to the project.
* feat(release): publish package source, declaration maps, and documentation
Every release member publishes its TypeScript source and the declaration
maps that resolve into it, and @deepseek-ai/dsh publishes the repository
Markdown documentation staged from docs/ at prepack time.
The ./src/* export most members already declared now resolves for an
installed consumer, and a consumer editor follows a declaration to the
implementation. Bundled JavaScript maps stay unpublished; the vendored
family and the Desktop runtime file policy are unchanged.
Rationale: .agents/notes/implemented/process/2026-10-08-published-source-and-docs.md
* feat(release): publish JavaScript maps and compress bundles
Every emitted JavaScript map ships beside the bundle it describes, and the
workspace build and the client preset compress bundles without mangling
identifiers.
The documentation payload now mirrors the website publication manifest and
is removed again by `postpack`; Desktop and the Python executable exclude
the published source, documentation, and maps; `clean` removes a staged
copy. Typert's publication contract gains the Remote declaration map.
* fix(release): keep node bundles readable for the worker image
The browser worker image lowers `yield*` only as a whole statement and
rewrites `for await` loops by their source layout, so compressed node-side
entries either fail that lowering or lower to unparseable code. Only the
browser bundles keep compression, which removes about a third of their text.
The bundle-purity assertion now matches the module-loader call regardless of
the quote style compression picks, and the release-pack fixture exercises
the installed package's new documentation requirement.
* feat(release): publish the whole documentation tree
`@deepseek-ai/dsh` copies `docs/` in full instead of the website's page
set: the maintainer documents, the generated migration records, the
translation guidelines, and the `*.i18n.yaml` consistency records ship
with the installed package, so the documentation's own links resolve
without a checkout.
* feat(release): publish the upgrade guides with the documentation
The staged documentation keeps the website's page set and adds every
`docs/upgrade-guide/` document, which is what an installed reader consults
when a released change breaks something. The rest of the maintainer tree
stays out.
* test(release): expect source and maps in master's new payload cases
* feat(release): keep installed docs and source readable in Desktop
Desktop keeps the published src/ and docs/ trees inside app.asar, and
every model shell call receives DSH_INSTALL_DIR and DSH_NODE_EXECUTABLE
so an agent can read them through Electron's Node mode. Staging also
generates docs/upgrade-guide/README.md, an index of the upgrade guides
grouped by the release they upgrade from.
Minified client bundles print string literals with backticks: the
worker image packer now recognizes those chunk requests, client license
banners are prepended after minification so their text survives, and
the affected artifact tests accept either quote.
* test(desktop): read archived docs through the Windows PowerShell form
Regenerate the config catalog for the shifted shell-env source line.
* test(desktop): wait for the GUI-subsystem Electron process from PowerShell
* build(release): publish source and maps from the message-quotes package
* build(release): publish source and maps from packages new on master
* build(release): publish source and maps from the tool-office package
Every consumer that describes the project to the user or draws the write
boundary reads rootOf(session) instead of the header directory: the sandbox
workspace-write policy, the workspace file service and desktop file drag, the
change recorder, the client Files tree, deliverables, open-in-app actions and
Session rows, new sidebar terminals, @ file candidates, the skill catalog,
project-instruction discovery, and the LSP workspace. The model's relative
paths keep resolving from the current directory.
The sandbox policy derives a linked checkout's Git administration directory
and common directory from its .git pointer and grants them as extra writable
roots; tool executions wait for that derivation through prepare(), and
Session creation and directory changes start it early. Windows ACL
confinement grants each extra root a standing ACE through a repeatable
--writable runner argument instead of refusing the policy.
Refs #2658
Merge master and preserve pinned-row visibility. Remove redundant Chat and tool-tree menu forwarding, unify trigger names, and bind file targets at the consuming Slot. Address CI static and coverage gaps without changing upstream scroll assertions.