Repository navigation
[6225] 附件按钮弹出最近菜单式悬浮窗 - #4751
Merged
Merged
Conversation
PinkMagicFly
force-pushed
the
da/200_27/6225
branch
from
October 20, 2026 07:45
4a8f6f5 to
2cfddca
Compare
PinkMagicFly
force-pushed
the
da/200_27/6225
branch
from
October 20, 2026 08:23
2cfddca to
1b46cd8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联任务 [6225]:附件按钮点击后弹出与最近使用菜单同款样式的悬浮窗(最近文档列表 + 底部选择文件入口)。
src/Plugins/Qt/qml/GoMenu.qml:删除原计划新建的AttachMenu.qml,通过AttachMenuBridge与GoMenuBridge同形(loadBuffer/openFile/closeMenu+QVariantMap meta)让 QML 端零差异;context property 名仍为goBridge,meta.label_open注入「Choose file」覆盖默认「Open file」ChatConversationPanel::attachRequested携带全局坐标,ChatController在附件按钮上方弹出并做屏幕边界钳制,支持重复点击 togglesession.title为空)的 chat 标签页,强制改在按钮下方弹出,避免覆盖草稿输入区;其它会话保持默认「按钮上方」ChatController::attachFiles统一多选对话框与单文件最近项的 ingest 管线attach_menu_bridge_test单元测试与qml_load_testAttachMenu 加载断言临时补丁:GoMenu.qml labelOpen 剥离 cork 实体
qt_translate漏cork_to_utf8解码,QML 实际收到的是 cork 编码字符串:CJK 字符以<#XXXX>形式、U+2026 以<ldots>形式进 QML。本 PR 复用 GoMenu.qml 后该问题同时影响 Go 菜单的本地化字符串,因此在共享labelOpen计算属性里用.replace(/<[^>]*>/g, "")一次性剥掉所有<…>形式实体,避免显示「选择文件...」之类已破坏字符。根因修复(
qt_translate加cork_to_utf8)未在本 PR 范围,留待后续;当前为临时 QML 层兜底,1 行净 +5 行(注释)。任务文档同步:参见 dev-agent PR #201 第 7 节 How 的新增条目。