Skip to content

fix(#1046): open note links from AI replies inside NoteGen - #1309

Open
jinchuntan wants to merge 1 commit into
codexu:devfrom
jinchuntan:fix/chat-local-note-links-1046
Open

jinchuntan wants to merge 1 commit into
codexu:devfrom
jinchuntan:fix/chat-local-note-links-1046

Conversation

@jinchuntan

Copy link
Copy Markdown
Contributor

Closes #1046.

Tell the agent to link local notes with workspace-relative Markdown paths rather than invented web URLs. Clicking those links in chat now opens an editor preview. Web links keep their usual behavior, and paths outside the workspace are not treated as note links.

Added tests for encoded filenames, Markdown extensions, web links, malformed URLs and parent-directory traversal. An interaction check also covers opening a preview and reporting failed opens. It fails on the original chat component. All 8 Node tests and lint pass. The production build passes with #1303 applied temporarily.

Assisted by Codex.

This branch has not been deployed

No deployments
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.

[feat] AI panel中给出的笔记文件链接,默认是http开头

1 participant