Skip to content

Fix/overlay portal semantics crash - #563

Merged
whes1015 merged 2 commits into
mainfrom
fix/overlay-portal-semantics-crash
Sep 1, 2026
Merged

Fix/overlay portal semantics crash#563
whes1015 merged 2 commits into
mainfrom
fix/overlay-portal-semantics-crash

Conversation

@whes1015

@whes1015 whes1015 commented Sep 1, 2026

Copy link
Copy Markdown
Member

這個 PR 做了什麼

相關 issue

  • closes #

怎麼驗

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyzemise exec -- flutter test 通過
  • 新的使用者可見字串都走 AppLocalizations,沒有寫死
  • 有 UI 變更的話:用的是 AppSpacing / AppRadius / AppMotion
    深色模式看過,文字對比度可接受

Fix(zh-Hant): 修正天氣背景會在雲層著色器載入完的第一幀整片不見
Fix(en-US): fix the weather backdrop going blank for one frame after its cloud shader loads
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

🔍 OpenCodeReview found 2 issue(s) in this PR.

  • ✅ Successfully posted inline: 2 comment(s)

Comment on lines +43 to +49
for p in "${patches[@]}"; do
name="$(basename "$p")"

# --forward alone is not enough to tell "applies" from "already applied":
# both refuse, with different messages. A reverse dry-run answers it
# directly — a patch that can be undone is a patch that is already in.
if patch -p1 -d "$sdk" --forward --dry-run --silent <"$p" >/dev/null 2>&1; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

performance · medium
由於 apply_sdk_patches.sh 會在每次透過 require_mise 初始化工具鏈時執行,且針對每個補丁都會進行兩次 patch --dry-run 檢查,隨著補丁數量增加,可能會導致開發者指令的啟動延遲。建議可以透過檢查 tool/patches/ 目錄的內容雜湊(hash)來實作快取機制,若雜湊未變動則跳過檢查。

Comment on lines +49 to +52
if patch -p1 -d "$sdk" --forward --dry-run --silent <"$p" >/dev/null 2>&1; then
patch -p1 -d "$sdk" --forward --silent <"$p"
printf ' \033[33m●\033[0m patched SDK: %s\n' "$name" >&2
elif patch -p1 -d "$sdk" --reverse --dry-run --silent <"$p" >/dev/null 2>&1; then

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

maintainability · medium
腳本使用了 GNU patch 特有的 --reverse 參數。在 macOS 等預設使用 BSD patch 的環境下,該參數可能不存在,導致工具鏈失效。建議在執行前檢查 patch 版本,或在文件說明中明確要求使用 GNU patch

@whes1015
whes1015 merged commit 7a94edf into main Sep 1, 2026
6 checks passed
@whes1015
whes1015 deleted the fix/overlay-portal-semantics-crash branch September 1, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants