Skip to content

修复 daemon 秒退并写入 ApeMind 用户身份 - #8

Merged
earayu merged 2 commits into
mainfrom
feat/daemon-identity-and-stop-fix
Aug 25, 2026
Merged

修复 daemon 秒退并写入 ApeMind 用户身份#8
earayu merged 2 commits into
mainfrom
feat/daemon-identity-and-stop-fix

Conversation

@earayu

@earayu earayu commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

停机标志不再和停进程函数同名,避免 main 立刻退出。启动 dsh 时写入 APEMIND_USER_ID 和 $HOME/.apemind/identity。

Refs apecloud/aperag-enterprise#4829

冯诺伊曼 and others added 2 commits August 25, 2026 22:30
全局停机标志被同名函数盖掉,main 立刻 return 0,Supervisor 循环拉起。
* 启动 dsh 时写入 ApeMind 用户身份。

从 desired 的 owner_user_id 写入 APEMIND_USER_ID 和 $HOME/.apemind/identity。
Refs apecloud/aperag-enterprise#4829

* 修复 daemon 因 _stop 命名冲突秒退。

全局停机标志被同名函数盖掉,main 立刻 return 0,Supervisor 循环拉起。

---------

Co-authored-by: 冯诺伊曼 <neumann@apemind.local>

@khalildai khalildai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASS

与已过的 computer#7 同补丁:_shutdown / _stop_agent,启动写 APEMIND_USER_ID$HOME/.apemind/identity。CI 绿。可合 main。

@earayu
earayu merged commit 18293b6 into main Aug 25, 2026
1 check passed
@earayu

earayu commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

技术复核 PASS(账号为 PR 作者,无法提交 formal approval):确认修复了 _stop 命名冲突(_shutdown + _stop_agent),daemon 主循环不再立即 return 0;身份环境变量/0600 identity 文件逻辑与 #7 一致,回归测试覆盖命名冲突和身份写入,CI check 绿。可按当前授权合并并重建镜像;部署后需验证容器日志出现 joined <computer_id> 且进程稳定。

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.

2 participants