Skip to content

fix: report stored upload filenames#3070

Merged
1 commit merged into
nesquena:masterfrom
AJV20:fix/upload-actual-filename
May 28, 2026
Merged

fix: report stored upload filenames#3070
1 commit merged into
nesquena:masterfrom
AJV20:fix/upload-actual-filename

Conversation

@AJV20

@AJV20 AJV20 commented May 28, 2026

Copy link
Copy Markdown
Contributor

Thinking Path

The attachment upload path already sends real server paths to the agent, but duplicate filenames still returned the original sanitized basename in /api/upload even when the file was stored with a collision-avoidance suffix.

What Changed

  • Reports the actual stored basename (dest.name) in the upload response.
  • Keeps the existing absolute path response unchanged.
  • Adds regression coverage for duplicate upload names so a second photo.png reports photo-1.png metadata.
  • Adds a changelog entry.

Verification

  • python3.11 -m py_compile api/upload.py
  • python3.11 -m pytest tests/test_chat_upload_attachment_paths.py tests/test_native_image_attachments.py -q -o addopts= (41 passed)
  • git diff --check origin/master...HEAD

@nesquena-hermes nesquena-hermes closed this pull request by merging all changes into nesquena:master in b103f4a May 28, 2026
@nesquena-hermes

Copy link
Copy Markdown
Collaborator

Shipped in v0.51.153 / Release DY (stage-batch35, commit b103f4a). Thanks for the contribution!

AJV20 pushed a commit to AJV20/hermes-webui that referenced this pull request May 28, 2026
# Conflicts:
#	CHANGELOG.md
AJV20 pushed a commit to AJV20/hermes-webui that referenced this pull request May 28, 2026
11-PR low-risk cleanup:
- nesquena#3043 openai-codex models.dev reasoning passes xhigh
- nesquena#3044 reset _messagesTruncated on new session
- nesquena#3047 discoverability: api lineage representative for stale CLI flag
- nesquena#3049 title-language detection threshold + English false-positive fix
- nesquena#3051 docker docs: sudo compose + Linux host-gateway
- nesquena#3054 SSE reconnect: visible-but-unfocused current pane
- nesquena#3055 fallback title: drop German-only Session Bilder case
- nesquena#3056 title prompt: language-neutral instruction
- nesquena#3070 /api/upload reports actual stored filename
- nesquena#3071 clarify SSE fallback preserves owner session id
- nesquena#3072 gateway-chat forwards image attachments as image_url parts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants