fix: 工程审计修复 + 桌宠引擎(pet)集成 - #198
Open
guyu233 wants to merge 1 commit into
Open
Conversation
工程审计修复 8 项问题: - bridge/pet.go: 修复 RWMutex 双重释放导致运行时 panic - app/runner.go: 注册缺失的 pet:state-changed 事件类型 - pet/manifest.go: 修复 os.Open 后无 defer Close 导致文件句柄泄漏 - runtime/local_runtime.go: 修复 context.Background() 丢弃调用方 ctx - client/observer.go: 修复 context.Background() 丢弃调用方 ctx - app/runner.go: refreshAdAsync goroutine 添加 10s 超时保护 - pet/engine.go: Stop() 中 goroutine 超时后仍阻塞,改用 context.WithTimeout - backend/forwarder/actor.go: scheduleStreamTimer goroutine 发送消息无超时保护 新增 internal/pet/ 桌宠引擎(动画调度、行为系统、状态机、Manifest、窗口管理) 编译验证: go build ./... 通过
guyu233
force-pushed
the
fix/eng-audit-and-pet-engine
branch
from
July 12, 2026 15:52
36c261d to
6b1bca7
Compare
Owner
|
非常感谢您的贡献,但此变更较大(154 file),并包含多个功能 |
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.
变更说明
本次提交包含以下修复和改进:
严重 Bug 修复
中等风险修复
轻微修复
新增
编译验证
go build ./...通过,0 错误