[codex] 修复 Akasha 项目记忆设置的线程调用错误 - #777
Merged
Merged
Conversation
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.
改动
修复创建项目时 Akasha scope.policy.set 报错。去掉同步 UI query 上的 ctx.entrypoint 包装,保留原 UI 和记忆模式。
根因与归属
PluginMobileUiProvider 在事件循环获取并持有注册 child Context 的 captured RuntimeScope,直到线程查询实际结束。额外的 ctx.entrypoint 在工作线程里调用 asyncio.current_task,触发 no running event loop。Core 许可和排空实现保持原样。
验证
部署
用户明确授权合并部署,不做全量备份、不运行迁移。显式计划仅更新 akasha@release。部署后核对 exact main SHA、Root 和真实 UI query。
恢复
源码修改前备份 /tmp/akasha-plugin-before-query-fix-20260926.py;前一线上 release 为 0b1ffab。
已完成部署(2026-09-26)