Skip to content

fix(webui): narrow uploaded document attachment type#318

Merged
stephamie7 merged 1 commit into
devfrom
fix/sessionchat-uploaded-document-guard
May 25, 2026
Merged

fix(webui): narrow uploaded document attachment type#318
stephamie7 merged 1 commit into
devfrom
fix/sessionchat-uploaded-document-guard

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

Summary

  • update the uploaded document attachment type guard in SessionChat to preserve the generic item shape
  • ensure listUploadedDocumentPaths narrows workspacePath to string after filtering so the WebUI TypeScript build no longer fails on this path

Test plan

  • npm --prefix "/Users/zgy/workspace/flocks-2/webui" run test:run -- SessionChat
  • verified the previous SessionChat.tsx:415 TS2322 error no longer appears in TypeScript output
  • npm --prefix "/Users/zgy/workspace/flocks-2/webui" run build (currently blocked by a separate existing qrcode.react type-resolution error in src/pages/Channel/index.tsx)

Made with Cursor

Ensure the uploaded document attachment type guard preserves the generic item shape so listUploadedDocumentPaths narrows workspacePath to string during filtering.

Co-authored-by: Cursor <cursoragent@cursor.com>
@stephamie7 stephamie7 merged commit 1d60c17 into dev May 25, 2026
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