Repository navigation
[Feature] 支持插件从对话选区右键菜单打开面板 - #2446
Merged
vastsa merged 5 commits intoNov 20, 2026
Merged
Conversation
Let views opt into the transcript context menu using their localized title and icon. Deliver the excerpt only to the chosen view after the user clicks, scoped to the active session and project.
Apply rustfmt to the manifest validation condition so both Rust CI lanes can run.
Keep the pointer-menu contract checks aligned with optional selection items and register the work-panel view decision in the ADR catalog.
Rustfmt expanded the selection option check above the architecture limit. Name the optional value before validation so both gates pass with the same accepted inputs.
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.
关联 #2395。按讨论开放一个通用入口,让插件在对话选区的右键菜单中打开自己的工作面板。
contributes.views里声明acceptsTranscriptSelection: true。菜单沿用该面板的标题和图标。Side Questions 使用分支图标。view:selection把当前会话 ID 和选中的纯文本交给对应面板。选区不会写入 URL。打开草稿不建会话,发送由用户确认。在 macOS 的隔离 Electron 环境中,用合成对话验证了无选区时隐藏入口、图标、首次打开、已打开面板接收新选区、整块移除引用,以及手动发送只带引用和新问题。验证后主对话内容一致。在
7caaeee40562(基于f589deec80b4)通过 8 项交互检查,之后只补了文档和测试断言。桌面构建、类型检查、格式、文档、SDK 测试和 36 项相关桌面测试通过。全量桌面测试剩下 3 个失败,同环境下在基线也能复现。