fix: bump debug share paste TTL from 1 hour to 6 hours (#11240)
Users (Teknium) report missing debug reports before the 1-hour auto-delete fires. 6 hours gives enough window for async bug-report triage without leaving sensitive log data on public paste services indefinitely. Applies to both the CLI (hermes debug share) and gateway (/debug) paths.
This commit is contained in:
@@ -6889,7 +6889,7 @@ class GatewayRunner:
|
|||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
return f"✗ Failed to upload debug report: {exc}"
|
return f"✗ Failed to upload debug report: {exc}"
|
||||||
|
|
||||||
# Schedule auto-deletion after 1 hour
|
# Schedule auto-deletion after 6 hours
|
||||||
_schedule_auto_delete(list(urls.values()))
|
_schedule_auto_delete(list(urls.values()))
|
||||||
|
|
||||||
lines = [_GATEWAY_PRIVACY_NOTICE, "", "**Debug report uploaded:**", ""]
|
lines = [_GATEWAY_PRIVACY_NOTICE, "", "**Debug report uploaded:**", ""]
|
||||||
@@ -6898,7 +6898,7 @@ class GatewayRunner:
|
|||||||
lines.append(f"`{label:<{label_width}}` {url}")
|
lines.append(f"`{label:<{label_width}}` {url}")
|
||||||
|
|
||||||
lines.append("")
|
lines.append("")
|
||||||
lines.append("⏱ Pastes will auto-delete in 1 hour.")
|
lines.append("⏱ Pastes will auto-delete in 6 hours.")
|
||||||
lines.append("For full log uploads, use `hermes debug share` from the CLI.")
|
lines.append("For full log uploads, use `hermes debug share` from the CLI.")
|
||||||
lines.append("Share these links with the Hermes team for support.")
|
lines.append("Share these links with the Hermes team for support.")
|
||||||
return "\n".join(lines)
|
return "\n".join(lines)
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ _DPASTE_COM_URL = "https://dpaste.com/api/"
|
|||||||
# paste.rs caps at ~1 MB; we stay under that with headroom.
|
# paste.rs caps at ~1 MB; we stay under that with headroom.
|
||||||
_MAX_LOG_BYTES = 512_000
|
_MAX_LOG_BYTES = 512_000
|
||||||
|
|
||||||
# Auto-delete pastes after this many seconds (1 hour).
|
# Auto-delete pastes after this many seconds (6 hours).
|
||||||
_AUTO_DELETE_SECONDS = 3600
|
_AUTO_DELETE_SECONDS = 21600
|
||||||
|
|
||||||
|
|
||||||
# ---------------------------------------------------------------------------
|
# ---------------------------------------------------------------------------
|
||||||
@@ -44,7 +44,7 @@ _PRIVACY_NOTICE = """\
|
|||||||
• Full agent.log and gateway.log (up to 512 KB each — likely contains
|
• Full agent.log and gateway.log (up to 512 KB each — likely contains
|
||||||
conversation content, tool outputs, and file paths)
|
conversation content, tool outputs, and file paths)
|
||||||
|
|
||||||
Pastes auto-delete after 1 hour.
|
Pastes auto-delete after 6 hours.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
_GATEWAY_PRIVACY_NOTICE = (
|
_GATEWAY_PRIVACY_NOTICE = (
|
||||||
@@ -52,7 +52,7 @@ _GATEWAY_PRIVACY_NOTICE = (
|
|||||||
"(may contain conversation fragments) to a public paste service. "
|
"(may contain conversation fragments) to a public paste service. "
|
||||||
"Full logs are NOT included from the gateway — use `hermes debug share` "
|
"Full logs are NOT included from the gateway — use `hermes debug share` "
|
||||||
"from the CLI for full log uploads.\n"
|
"from the CLI for full log uploads.\n"
|
||||||
"Pastes auto-delete after 1 hour."
|
"Pastes auto-delete after 6 hours."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@@ -422,9 +422,9 @@ def run_debug_share(args):
|
|||||||
if failures:
|
if failures:
|
||||||
print(f"\n (failed to upload: {', '.join(failures)})")
|
print(f"\n (failed to upload: {', '.join(failures)})")
|
||||||
|
|
||||||
# Schedule auto-deletion after 1 hour
|
# Schedule auto-deletion after 6 hours
|
||||||
_schedule_auto_delete(list(urls.values()))
|
_schedule_auto_delete(list(urls.values()))
|
||||||
print(f"\n⏱ Pastes will auto-delete in 1 hour.")
|
print(f"\n⏱ Pastes will auto-delete in 6 hours.")
|
||||||
|
|
||||||
# Manual delete fallback
|
# Manual delete fallback
|
||||||
print(f"To delete now: hermes debug delete <url>")
|
print(f"To delete now: hermes debug delete <url>")
|
||||||
|
|||||||
Reference in New Issue
Block a user