Repository navigation
Replies: 1 comment
|
简短交叉引用,不打断原讨论主题。 你们这个补丁思路(在
顺带把我实测过的本地补丁放这儿,供你们改 和你帖子里的痛点是一致的:现在卡片上能做的事远比看上去少 —— 你们要的 Download 在 headless/WSL 下是唯一出路,我这边要的"点一下用系统程序打开"则是把已有能力从 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
presenttool and deliverable cards (delivery cards + changed-files card). The card action set today: preview in sidebar / reveal in file manager / open with an application.Proposal
Add a native Download action to deliverable cards (and optionally to changed-file rows):
<a href download>in the card action row. All required data is already available insidePresentedFileCard—resolveWorkspacePath(cwd, file.path)is already computed there (it is the preview button'stitle).Content-Disposition: attachment(size-capped), equivalent to what the sidebar preview download already does.Evidence it works
We patched the official client bundle (
dsh-client-ui-deliverables/lib/client.js) to prepend a download link in the actions row, backed by a ~40-line webServer route in a plugin (serves the resolved path with attachment headers). Verified end-to-end: the link renders on every deliverable card and clicking downloads the file with the correct filename. Happy to share the patch details.Notes
publish_artifactcards used to have direct download).All reactions