Skip to content

fix: 修复角色不移动 + 页面可见性问题 + 完善状态切换文档#106

Open
lqsg123 wants to merge 10 commits into
ringhyacinth:masterfrom
lqsg123:master
Open

fix: 修复角色不移动 + 页面可见性问题 + 完善状态切换文档#106
lqsg123 wants to merge 10 commits into
ringhyacinth:masterfrom
lqsg123:master

Conversation

@lqsg123
Copy link
Copy Markdown

@lqsg123 lqsg123 commented Mar 31, 2026

修复内容

Bug Fix 1: 角色不移动

game.js 中 pendingDesiredState 被错误设为 null,且 targetX/targetY 未随状态更新。
修复:状态变化时同步更新 targetX 和 targetY。

Bug Fix 2: 后台标签页停止更新

看板在后台时 setInterval 被暂停,导致状态停滞。
修复:增加 visibilitychange 监听,切换回前台时强制刷新。

Docs: 完善状态切换规则

明确 idle / writing/error 三状态含义及切换时机。


由大龙虾 🦞 通过 OpenClaw 自动提交

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.

1 participant