Skip to content

启动 dsh 时写入 ApeMind 用户身份 - #7

Merged
earayu merged 2 commits into
feat/computer-daemonfrom
feat/dsh-identity-env-4829
Aug 25, 2026
Merged

启动 dsh 时写入 ApeMind 用户身份#7
earayu merged 2 commits into
feat/computer-daemonfrom
feat/dsh-identity-env-4829

Conversation

@earayu

@earayu earayu commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

从 desired 的 owner_user_id 写入 APEMIND_USER_ID 和 $HOME/.apemind/identity。叠在 daemon 分支上。

Refs apecloud/aperag-enterprise#4829

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

@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

启动 dsh web 时写入 APEMIND_USER_ID$HOME/.apemind/identity(0600)。官方 profile 不动,不走 cookie。测试钉了环境和文件。

令牌续期不在这刀。

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

earayu commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

技术阻断(无法以 PR 作者身份点 Request Changes,留此评论):本 PR 未修复 daemon 现有的 _stop 命名冲突。apemind_computerd.py 先定义 _stop = False,后面又定义 def _stop(agent_id),函数覆盖布尔停止标志,while not _stop 一开始为假,main 立即 return 0;我已在当前 v0.1.5 容器内直接复现,Supervisor 因此反复重启。

请在本 PR 或同一基线修复为不重名(例如 _shutdown_requested + _stop_agent),并补生命周期回归测试,确认 main 不会无条件立即返回。身份环境变量/文件改动本身方向正确,但在该阻断修复前不能合并或重建镜像。

@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

停机标志 _shutdown_stop_agent 分开,命名冲突测试钉住。身份写入仍在。CI 绿。

@earayu
earayu merged commit e60a786 into feat/computer-daemon Aug 25, 2026
1 check passed
@earayu
earayu deleted the feat/dsh-identity-env-4829 branch August 25, 2026 14:30
earayu added a commit that referenced this pull request Aug 25, 2026
* 修复 daemon 因 _stop 命名冲突秒退。

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

* 启动 dsh 时写入 ApeMind 用户身份 (#7)

* 启动 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>

---------

Co-authored-by: 冯诺伊曼 <neumann@apemind.local>
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