Skip to content

fix: 修复 PI_CLIENT_MAAFW_VERSION 未注入#146

Merged
MistEO merged 1 commit intoMistEO:mainfrom
Windsland52:fix/pienv
Apr 4, 2026
Merged

fix: 修复 PI_CLIENT_MAAFW_VERSION 未注入#146
MistEO merged 1 commit intoMistEO:mainfrom
Windsland52:fix/pienv

Conversation

@Windsland52
Copy link
Copy Markdown
Contributor

@Windsland52 Windsland52 commented Apr 4, 2026

Summary by Sourcery

错误修复:

  • 在初始化和获取版本时,将 MaaFramework 版本注入到应用程序存储中,以便 PI_CLIENT_MAAFW_VERSION 能被正确传递。
Original summary in English

Summary by Sourcery

Bug Fixes:

  • Inject the MaaFramework version into the application store during initialization and version retrieval so PI_CLIENT_MAAFW_VERSION is correctly propagated.

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey - 我给出了一些整体层面的反馈:

  • syncMaaVersionToStore 中,目前错误只会以 debug 日志的形式记录并被吞掉;建议在非预期失败场景下提升日志级别或重新抛出错误,这样可以更容易在生产环境中发现存储同步中的静默失败。
给 AI Agent 的提示
Please address the comments from this code review:

## Overall Comments
- In `syncMaaVersionToStore`, errors are swallowed with only a debug log; consider logging at a higher level or rethrowing in non-expected failure cases so that silent failures in store synchronization are easier to detect in production.

Sourcery 对开源项目免费——如果你觉得我们的评审有帮助,欢迎分享 ✨
帮我变得更有用!请在每条评论上点 👍 或 👎,我会根据你的反馈改进后续的评审质量。
Original comment in English

Hey - I've left some high level feedback:

  • In syncMaaVersionToStore, errors are swallowed with only a debug log; consider logging at a higher level or rethrowing in non-expected failure cases so that silent failures in store synchronization are easier to detect in production.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- In `syncMaaVersionToStore`, errors are swallowed with only a debug log; consider logging at a higher level or rethrowing in non-expected failure cases so that silent failures in store synchronization are easier to detect in production.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@MistEO MistEO merged commit 034f20a into MistEO:main Apr 4, 2026
9 checks passed
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