Skip to content

feat(chat-sessions): show user upload attachments in session details - #75

Merged
squarezw merged 1 commit into
mainfrom
feat/chat-session-attachments
Sep 24, 2026
Merged

squarezw merged 1 commit into
mainfrom
feat/chat-session-attachments

Conversation

@squarezw

Copy link
Copy Markdown
Owner

Summary

  • Session details and chat history now show the files a user uploaded on that turn.
  • Depends on ragent-service#159, which persists attachment metadata on chat_session_detail.
  • Turns recorded before that backend change have no stored attachments, so this block stays empty for them.

Test plan

  • Merge / run ragent-service#159 first and apply chat_session_detail.attachments if the column is missing.
  • Start a chat, attach a file, send a message.
  • Open the session in 会话管理 → 详情 and confirm the file appears under the question; click to preview or download.
  • Reload the same session in chat and confirm the attachment chip is back on the user message.
  • Open an older session (no stored attachments) and confirm the details page still loads.

Made with Cursor

Session history only stored question and answer, so admins could not see the files a user attached. Read the persisted metadata and render it under the question, including when reopening a chat.

Co-authored-by: Cursor <cursoragent@cursor.com>
@squarezw
squarezw merged commit 3dbe910 into main Sep 24, 2026
1 check passed
@squarezw
squarezw deleted the feat/chat-session-attachments branch September 24, 2026 08:54
squarezw pushed a commit that referenced this pull request Sep 24, 2026
The attachment list already landed in #75. Keep the PDF preview fix on top of that.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

1 participant