Skip to content

feat: matrix support (part 1)#242

Merged
chen-ran merged 34 commits into
memohai:mainfrom
alexma233:feat/matrix-support
Mar 22, 2026
Merged

feat: matrix support (part 1)#242
chen-ran merged 34 commits into
memohai:mainfrom
alexma233:feat/matrix-support

Conversation

@alexma233

@alexma233 alexma233 commented Mar 14, 2026

Copy link
Copy Markdown
Member

添加了 Matrix 协议的平台支持, Matrix 是一个完全开源、可联邦的 IM 协议。

Todo

Part 1

  • 适配和检查新 ACL,移除provider内置ACL
  • 更多测试
  • 变更扫描和屎山清理
  • 再详细的健康检查,比如校验 token / homeserver / sync 权限
  • 图片的alt支持
  • md格式支持
  • since token 持久化
  • 图片支持
  • 文件支持
  • room里回复 bot 完整识别
  • 图标换 Matrix 的品牌资源
  • @user 出站 DM 复用
  • #room-alias 出站
  • invite / auto-join

更多信息

可以在 #memoh_matrix_test:matrix.org上进行测试

此 PR 修改了 read_media 工具所读取后端的权限要求,详见 1d77a83

Replace the generic Matrix hashtag badge with the official brand asset so channel badges feel recognizable and fit the circular mask cleanly.
Let Matrix bots decide whether to auto-join invites and restrict inbound activity to allowed rooms or aliases. Expose the new controls in the web settings UI with line-based whitelist input so access rules stay explicit.
Fail Matrix connections early when the homeserver, access token, or /sync capability is misconfigured so bot health checks surface actionable errors.
@alexma233 alexma233 changed the title feat: matrix support feat: matrix support (part 1) Mar 14, 2026
@alexma233 alexma233 marked this pull request as ready for review March 14, 2026 18:27
@alexma233 alexma233 requested a review from sheepbox8646 March 14, 2026 18:46
@alexma233

Copy link
Copy Markdown
Member Author
测试截图
  • 图片 alt/附加文本 支持
Screenshot_20260315_020032 Screenshot_20260315_020007
  • md 转 html
image
  • 文件/图片收发
image Screenshot_20260315_103108 image
  • Auto Join/接受邀请
image

@alexma233 alexma233 requested a review from Fodesu March 15, 2026 04:49
@alexma233 alexma233 requested a review from chen-ran March 17, 2026 04:03
@alexma233 alexma233 removed the request for review from Fodesu March 17, 2026 05:56
@alexma233

Copy link
Copy Markdown
Member Author

@sheepbox8646 能否查看一下这个 PR ?十分感谢

@sheepbox8646

Copy link
Copy Markdown
Member

请解决一下冲突

…ilter

fix(flow): skip structured assistant tool-call outputs
Keep the internal agent resolver implementation after merging main so split helper files do not redeclare flow symbols. Restore user message normalization in sanitize and persistence paths to keep flow tests and command packages building.
Drop the leftover truncate helper and import from the resolver merge fix so golangci-lint passes again without affecting flow behavior.
@alexma233

Copy link
Copy Markdown
Member Author

请解决一下冲突

已解决冲突,但仍需在 Matrix 服务器上进行实际测试

@alexma233

Copy link
Copy Markdown
Member Author

请解决一下冲突

已解决冲突,但仍需在 Matrix 服务器上进行实际测试

功能测试完毕,除了图片功能因为sdk迁移失效,其他功能都正常

@alexma233

Copy link
Copy Markdown
Member Author

功能测试完毕,除了图片功能因为sdk迁移失效,其他功能都正常

#257 合并后,所有功能正常

@chen-ran chen-ran merged commit 609ca49 into memohai:main Mar 22, 2026
12 checks passed
@alexma233 alexma233 deleted the feat/matrix-support branch March 23, 2026 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants