Files
hermes-agent/hermes_cli/subcommands
liuhao1024 77ca949b90 fix(cli): stop dpaste.com fallback from leaking debug logs for 7 days
The dpaste.com fallback path kept pastes for 7 days (vs the promised
6-hour auto-delete), could not be deleted by `hermes debug delete`
(anonymous pastes have no owner token), and the pending-paste sweep
skipped dpaste URLs entirely — while the share output still claimed
pastes auto-delete in 6 hours.

- Default the dpaste.com fallback retention to 1 day (dpaste's minimum)
  across --expire, upload_to_pastebin, and build_debug_share so the
  dashboard endpoint benefits too
- Print an accurate warning when uploads fall back to dpaste.com
  (retention window + no delete path) instead of the 6-hour promise
- Mention the fallback retention in the CLI and gateway privacy notices
  before the user consents to uploading
- Explain in `hermes debug delete` errors why dpaste.com pastes cannot
  be deleted and that they expire on their own

Refs #106164

[salvage: trimmed to 2 invariant tests (dpaste delete error, dpaste fallback notice);
5 duplicative default-value tests dropped]
2026-09-09 10:54:34 -07:00
..