Clarify chat file path handling

This commit is contained in:
bearsyankees 2026-08-28 09:51:21 -04:00
parent 916af24a19
commit 3ca4f4ce72
2 changed files with 13 additions and 1 deletions

View file

@ -710,7 +710,13 @@ SPEC: dict[str, dict[str, Cmd]] = {
"GET",
"/chat/{chatId}/files/download",
"Download one file of a chat session.",
query=(P("path", required=True, help="File path inside the session."),),
query=(
P(
"path",
required=True,
help="Relative path in the session, or an absolute path under /workspace.",
),
),
binary=True,
),
"files archive": Cmd(

View file

@ -1272,6 +1272,12 @@ def test_corrected_help_distinguishes_inboxes_reports_and_self_hosted_commands()
assert "triaged" not in vulnerability_update["status"]
assert "false_positive" not in vulnerability_update["status"]
chat_download = {
param.name: param.help for param in SPEC["chat"]["files download"].query
}
assert "Relative path" in chat_download["path"]
assert "/workspace" in chat_download["path"]
report = {param.name: param.help for param in SPEC["scans"]["report"].query}
assert "Report content" in report["format"]
assert "file type" in report["type"]