fix(macOS): release closed-window models despite retained SwiftUI hosts - #124
Merged
Merged
Conversation
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.
问题与修复
Refs #93。macOS 关闭原生窗口后,观察/录屏条件下 SwiftUI 宿主仍可能存活,连带保留窗口业务模型。另有可复现的应用引用链:原生
MainWindowReader→onAttach回调 → SwiftUI 视图/StateObject → 模型。同机真实运行对照
macOS 27.0 (26A428) / Xcode 27.0 (27A266a),Release,English / Light / 默认字号。单窗内容区 1024×768pt,录制画布 1280×720px;原生级联位置略有差异。只录目标应用,无音频。产品源码:基线
f4b71e5,最终修复8228f4e;证据提交f53a0e7。媒体通过
gh api上传并验证 Git blob SHA。界面没有视觉改版,截图不替代对象释放日志。验证日志与边界
GitHub 检查针对最终提交重新运行,另执行 macOS 15 原生文稿协议。最低系统、签名 Cloud 包及 #19 系统入口验收仍保留;本轮不发布。系统宿主本身仍可能存活,不宣称已确定其外部完整强持有链,也不据诊断轮的 RSS 或耗时宣称速度/内存降幅。用户主工作区修改保留,VoiceOver 未更改,隔离偏好已核对恢复。