deepseek-harness/docs
Tianyi Cui 53b215c646 fix(tool-fs): write always renders a diff card on the completed update
A Write CREATE rendered its completed tool_call_update as the model-facing
result TEXT (`<path>…</path>…Created file`), which — because an ACP
tool_call_update.content REPLACES the call's content — clobbered the
new-file diff the pending call installed. So Zed showed the diff, then
replaced it with raw XML-ish text; only overwrite/edit looked right
(their result re-sends a diff).

write's presentResult now ALWAYS returns a diff card for a successful
write: the applied contextual hunk from `meta` when there is one
(overwrite), else an args-derived whole-file diff (`oldText: null`) for a
create or an unchanged-content overwrite. This matches claude-agent-acp,
where the create diff rides on the update and no result text replaces it.
An error still falls through to generic rendering so its message shows.
edit is unchanged (it always has a hunk; no whole-file fallback).

Re-recorded fs-write / fs-write-overwrite goldens; the create's completed
update is now a {type:'diff'} block, not the XML result text.
2026-07-03 20:52:36 +08:00
..
cookbook fix(tool-fs): CRLF-safe write diff, opaque meta, doc sync 2026-07-03 18:00:16 +08:00
cordis-catalog fix(tool-fs): CRLF-safe write diff, opaque meta, doc sync 2026-07-03 18:00:16 +08:00
core-data-structures docs(tools): sync ToolExecutionResult.meta comment to unknown 2026-07-03 19:05:46 +08:00
i18n docs(i18n): address round-2 terminology review 2026-07-01 23:08:45 +08:00
postmortem Fix doc cross-links for the hierarchy; add package-path + shape gates 2026-06-20 23:12:14 +08:00
rfc fix(tool-fs): write always renders a diff card on the completed update 2026-07-03 20:52:36 +08:00
tool-catalog docs(tool-catalog): register dsh-tool-fs in the boot manifest 2026-07-02 09:30:04 +08:00
AGENTS.md docs(rfc): classify RFCs by kind via path-encoded subdirectories 2026-06-20 22:29:45 +08:00
architecture.md feat(coding-agent): wire the filesystem tools into the demo 2026-07-02 19:46:59 +08:00
development.md docs: address review sync gaps 2026-07-01 12:56:13 +08:00
module-graph.md fix(tool-fs): CRLF-safe write diff, opaque meta, doc sync 2026-07-03 18:00:16 +08:00