Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 异步消息的原子性及有序性 #1402

Open
SuibianP opened this issue May 22, 2024 · 3 comments
Open

Bug: 异步消息的原子性及有序性 #1402

SuibianP opened this issue May 22, 2024 · 3 comments
Labels
bug BUG

Comments

@SuibianP
Copy link

Describe the bug

事件触发bot.sendMessage异步并发发送多条消息时,出现交叉及乱序的情况。

Steps to reproduce

例如在两个事件中向不支持图文混排的bot实现(如plugin-adapter-telegram)发送测试<img src="https://koishi.chat/logo.png"/>消息可能出现:

测试
测试
消息
*图片*
消息
*图片*

Expected behavior

同bot内异步消息应同样保持调用顺序且不应交叉。

Screenshots

No response

Versions

  • OS: macOS 14.5
  • Platform: Telegram
  • Node version: 18.19.1
  • Koishi version: 4.17.5
System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M2

Binaries:
    Node: 18.19.1
    Yarn: 4.1.1

Koishi:
    Core: 4.17.5
    Console: 5.28.4

Additional context

No response

@SuibianP SuibianP added the bug BUG label May 22, 2024
@ilharp
Copy link
Member

ilharp commented May 22, 2024

在其他平台测试了一下,这个是 adapter-telegram 的一个 bug。具体原因可以等待该适配器的负责人调查。

@SuibianP
Copy link
Author

@ilharp 感谢,koishi只是一个封装的话,是否将issue转到satorijs/satori更好?

@ilharp
Copy link
Member

ilharp commented May 23, 2024

待此问题被确认后,会有专人移动此 issue 至对应仓库。目前等待即可。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG
Projects
None yet
Development

No branches or pull requests

2 participants