feat(ui-mac): REQ-038b 会话页 slash 弹框与首页统一(alpha 菜单组件级接管) - #99
Merged
Conversation
- composer-slash-inject.tsx:首页同一套 createComposerAutocomplete Portal 进会话 composer(body 锚定防 overflow 裁切);上游弹层整体隐藏;菜单键 capture 拦截防隐藏弹层双选,Esc 放行同步关闭;编辑器仍上游 contenteditable(execCommand 写回,draft 同步)——零改上游 - composer-autocomplete 增 modes 选项(会话面仅 slash;@ 与上游 parts 状态强耦合不接管) - CDP 实测:菜单同款(mcp/skill 徽标/active/宽度贴合)、过滤/键盘选中/回填全通;截图入册 - 长描述单行截断(两面同款) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
内容(用户拍板:「在新对话输入 / 和在已有对话输入 / 弹框不是一个弹框。我需要使用新对话的那个弹框」)
会话页 slash 弹层从「上游自带弹层 + CSS 换皮」升级为组件级接管:两处现在渲染同一个 alpha 菜单组件(
createComposerAutocomplete)——同数据源(command.list + command.options)、同样式(.a-pop 家族)、同键盘交互、同选中语义。:has(> [data-slash-id])display:none);菜单键(↑↓/Enter/Tab)window capture 拦截,防上游隐藏弹层双选;Esc 刻意放行使上游内部弹层状态同步关闭(否则后续 Enter 会静默选中隐藏项)验证
/→ alpha 菜单(12 条,mcp/skill 徽标),上游弹层不可见;rev过滤+Enter 回填/review;ArrowDown+Enter 选中第二项正确;宽度=composer、上方 8px,与首页一致 —— 截图 docs/audits/2026-07-05-s18-t1-req038/09-session-alpha-slash.png🤖 Generated with Claude Code