Skip to content

Manager 容器重启后未自动重新邀请回 Worker 私有房间和 Team 房间 || Manager does not automatically re-invite back to Worker private rooms and Team rooms after restarting the container #768

@lijinxiao1982

Description

@lijinxiao1982

Bug 描述

Manager Agent 容器重启后,Matrix 会话成功重建,但 hiclaw-controller 没有自动将 Manager 重新邀请回 Worker 的私有房间和 Team 房间,导致 Manager 无法直接 @mention 通知 Worker。

复现步骤

  1. 创建 Team(如 infra-team)和多个 Worker
  2. hiclaw-controller 自动创建 Worker 私有房间和 Team 房间
  3. Manager 被邀请到所有房间
  4. 重启 hiclaw-controller 或 Manager 容器
  5. Manager Matrix 会话重建(token 刷新或重新注册)
  6. Manager 成功加入部分房间(项目房间、Admin DM)
  7. 但 Manager 未被重新邀请回 Worker 私有房间和 Team 房间

预期行为

Manager 会话恢复后,hiclaw-controller 应该自动同步房间成员资格,确保 Manager 被重新邀请回所有必要的房间。

实际行为

Manager 只被邀请到部分房间(项目房间、Admin DM),缺失 5 个 Worker 私有房间和 Team 房间。

环境信息

  • HiClaw 版本: dev (embedded mode)
  • Matrix 服务器: Tuwunel 1.5.0-48
  • Manager: 虾仔 (qwen3.6-plus)
  • Workers: infra-team (6 个成员)

已尝试的恢复方法(均失败)

  1. Worker 容器重启
  2. Team 更新 API
  3. hiclaw-controller 重启
  4. Tuwunel Admin API
  5. hiclaw-controller API

建议修复方案

  1. 短期:在 hiclaw-controller 启动时增加房间成员资格同步逻辑
  2. 长期:提供 Room Re-invitation API 供 Manager 主动触发同步

Bug Description

After the Manager Agent container was restarted, the Matrix session was successfully reestablished, but hiclaw-controller did not automatically re-invite the Manager back to the Worker's private room and Team room, resulting in the Manager being unable to directly notify the Worker with @mention.

Reproduction steps

  1. Create a Team (such as infra-team) and multiple Workers
  2. hiclaw-controller automatically creates Worker private rooms and Team rooms
  3. Manager is invited to all rooms
  4. Restart hiclaw-controller or Manager container
  5. Manager Matrix session reconstruction (token refresh or re-register)
  6. Manager successfully joined some rooms (project rooms, Admin DM)
  7. But the Manager was not re-invited back to the Worker private room and Team room

expected behavior

After the Manager session is restored, the hiclaw-controller should automatically synchronize room memberships, ensuring that the Manager is re-invited back to all necessary rooms.

Actual behavior

Manager is only invited to some rooms (project room, Admin DM), and 5 Worker private rooms and Team rooms are missing.

Environment information

  • HiClaw version: dev (embedded mode)
  • Matrix Server: Tuwunel 1.5.0-48
  • Manager: Xiazai (qwen3.6-plus)
  • Workers: infra-team (6 members)

Recovery methods attempted (all failed)

  1. Worker container restart
  2. Team update API
  3. hiclaw-controller restart
  4. Tuwunel Admin API
  5. hiclaw-controller API

Suggested fixes

  1. Short term: Add room membership synchronization logic when hiclaw-controller starts
  2. Long-term: Provide Room Re-invitation API for Manager to actively trigger synchronization

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions