Skip to content

feat: make generated file links actionable - #340

Open
venallope4 wants to merge 1 commit into
agegr:mainfrom
venallope4:feat/actionable-file-links
Open

feat: make generated file links actionable#340
venallope4 wants to merge 1 commit into
agegr:mainfrom
venallope4:feat/actionable-file-links

Conversation

@venallope4

Copy link
Copy Markdown

Summary

  • Make AI-generated local file links directly downloadable.
  • Render local file links with file icons and clickable filenames.
  • Support relative paths, Windows paths, file:/// URLs, Chinese filenames, and Windows backslash paths.
  • Support source links with line number suffixes such as ChatInput.tsx:550.
  • Keep external HTTP and HTTPS links opening in a new tab.
  • Add spreadsheet file icons for .xls, .xlsx, and .xlsm.

Validation

  • node_modules/.bin/tsc --noEmit
  • npm run lint
  • NODE_ENV=development node --test components/MarkdownBody.test.mjs lib/file-links.test.mjs

All 19 related tests pass.

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