Skip to content

#1271 §2:room 拒绝串措辞(好友 Bot 不再被指向自己的聊天) #1279

Closed

Description

@Birfy

Written-by: Dev3
Owner: Dev3

#1271 的 第 2 节单独拆出来的一张子单。父单 #1271 的关单句留给第 1 节(doc 措辞,最后合);本节由 PR #1275 用 Fixes 关。

要做的

core/src/host/connector-access.js:102-106:守卫里房间分支排在 remote 分支(:111)之前,所以一个持有房间 Session 的好友 Bot 先命中房间分支,被告知

The composio connector is available in your own chat, not in a group room (#1237).

而 allowed()(:45)对 bot.remote !== undefined 恒假——它自己的聊天里也没有,这句话把它指向一个不存在的去处。

改成两种情况都成立的说法(已落地的写法):The composio connector is not available in a group room (#1237). schedule 那句不动(schedule 属于 Session,好友 Bot 在自己聊天里确实保留那四个 schedule_*,进房间才被 roomHidden 摘掉)。

边界

  • 不加测试:core/src/host/room-participant.js:20-22 只为本地成员 createSession 并写 rt.groupOwners,remote Bot 拿不到本地房间 Session,当下不可达;为不可达路径造夹具只会固化成假前提。正文口径是「不可达」,不许写成「已修未验证」。
  • 不动 inRoom / roomHidden / denied(),判据零变化。
  • docs/subsystems/core-host.md 的 Group rooms: stop carrying the composio and schedule tools (8 tools, ≈5.2 k tokens per call) #1237 bullet 引文跟着改(core/src/host/connector-access.js 是 core-host 的 owned file,arch-docs 门要求同 PR 带页面)。

落地

PR #1275(分支 dev3/1271-room-refusal-wording,tip 5cd087cfb1d6abd05fb051d24adb09cbb20b5032,6 文件 +18/−11)。

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:automationScheduled tasks and automationbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions