Skip to content

[BUG] mention 中插入prompt 时,自动插入关联文件有错误 #693

@hllshiro

Description

@hllshiro

问题描述

通过@prompt插入提示词时,如果有关联的文件,会自动插入,但插入后的文件不正确,检查发现插入文件时路径错误。

重现步骤

重现此行为的步骤:

  1. 前往设置-Prompt管理,新增一个包含文件的prompt
  2. 前往Chat会话页面
  3. 输入@,选择刚才新增的prompt
  4. 自动插入关联的文件,显示文件图标错误
  5. 点击文件,无法打开文件

预期行为

正确插入文件信息,点击后可打开文件。

截图

@prompt.mp4

桌面环境(请填写以下信息):

  • 设备: PC
  • 操作系统: windows 11
  • 版本: v0.2.8

补充说明

debug信息中看到文件路径错误。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions