Repository navigation
Conversation
Owner
|
感谢这个 PR!权限卡片和终端提醒重复的问题,已经由 #3027 在 master 落地(squash 提交 d805fe3):屏幕探测发出的权限框提醒带上了 本 PR 担心的「daemon 丢弃提醒后,hook 结束时同一静态屏幕再也不提醒」,在 master 上不会出现:#1656 起,PermissionRequest 只要没拿到人工裁决(超时、卡片失效、送达失败),都会按拒绝回给 Claude,终端确认框随之关闭,不会留下一个没人提醒的框。 #3027 是按会话判断有没有待决卡片,没有引入按命令摘要逐条匹配。所以本 PR 先关闭了;如果你遇到按会话判断不够、需要按命令区分的实际场景,欢迎随时 reopen 或另开 PR。 |
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.
#1656 与 #1679 已分别合入 master,但两条路径仍相互独立:PermissionRequest 卡片等待期间,屏幕探测仍会发送“请在原终端确认”;如果直接在 daemon 丢弃这条通知,worker 提前消费的去重状态又可能让同一静态屏幕在 hook 结束后永远不再提醒。
本 PR 在当前 master
4f1e70b08ebf3d6978872977711b33be541ffe5a上补齐共存逻辑,作为 协调建议 的后续草稿。影响面:新增 Claude 专用 worker IPC 观察,daemon 复用现有 scopedReply 与辅助通知抑制规则;ask 公共层增加向后兼容的可选字段和运行态 hookWaiting 投影。已有 canTalk/canOperate、卡片作答、超时裁决、其它 CLI user_notify 行为保持原语义。PTY 与持久后端复用既有屏幕缓存路径;没有平台专用系统调用。macOS 验证,Linux 以 CI 为准。
实际验证:
草稿保留给维护者确认匹配范围及交互取舍;不修改已经合入的原 PR 分支,不合并或发布版本。
最终提交:
fdb407db0c7bc772431e303b6e358013d40c2ae7(已核对 fork 远端及 PR head)。CI #37136508031 的 build、三组 Node unit tests 及汇总、Bun tests、Linux/macOS/musl binary 检查全部通过;网络边界检查 也通过。对应依据是命令内容与会话/话题,不是 Claude 的原生 tool-call ID;同时存在相同命令的多个原生调用时不能区分调用身份。更广工具覆盖或原生调用级关联留待维护者判断,未扩大权限策略。