You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Configurable directory for pasted attachments (instead of <pane cwd>/.herdr-web-ui/) #331
Pasted and attached files are always written to <pane cwd>/.herdr-web-ui/ (server/paste.ts, savePaneImage). There is no setting to change this; the OS temp dir is only used when the pane has no known cwd.
The in-project location makes sense for avoiding agent read-permission prompts, but it means every repository I paste into from the web UI picks up an untracked .herdr-web-ui/ directory containing screenshots. Those then show up in git status, need per-repo or global ignore rules, and accumulate until cleaned up by hand. For some workflows (e.g. infrastructure repos, shared checkouts) I would rather attachments never land in the working tree at all.
Seen on v0.3.41 (plugin install), Linux.
Proposal
Make the paste directory configurable, for example:
HERDR_WEB_PASTE_DIR (unset = current behaviour, <pane cwd>/.herdr-web-ui/)
When set, write attachments to that directory instead, e.g. HERDR_WEB_PASTE_DIR=/tmp/herdr-web-ui
It would fit alongside the other env vars in the Configuration table in docs/guide.md. Optionally a Settings toggle ("save attachments in the project / in a temp directory"), but an env var alone would cover it.
Activity