Repository navigation
fix: 避免通知中转任务移除误退役网页 - #291
Open
lzh2034855417-beep wants to merge 1 commit into
Open
lzh2034855417-beep wants to merge 1 commit into
lzh2034855417-beep wants to merge 1 commit into
Conversation
lzh2034855417-beep
marked this pull request as ready for review
December 1, 2026 23:20
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.
问题与行为
通知经 AppEntryRouterActivity 的独立任务返回网页后,中转页会 finishAndRemoveTask。旧 HarnessService.onTaskRemoved 不区分任务来源,无条件退役 BrowserPageKeeper,可能将本应继续使用的网页销毁。
仅当 rootIntent 的完整 ComponentName 等于本安装包的 AppEntryRouterActivity 时跳过页面退役,并记录固定诊断 APP_ENTRY_TASK_REMOVED KEEP_PAGE。Main 任务、空 root、无 component 和同类名的其他包均继续退役;仍调用 super。
不改变通知路由、不刷新或重建活网页、不重放聊天/工具操作,停止、备份、代次及 renderer 退役规则不变。Related to #288 / #283;不据此关闭所有白屏问题或宣称 ROM renderer 根因已解决。
验证
候选 2309a63,基于当前官方 main cf2a6a9。完整5文件差异已由独立AI逐行审阅,APPROVE,无P0/P1/P2;不是维护者批准或设备验收。
边界
已提交正式待审,尚未合并、未生成或安装本候选APK。Android框架实际任务移除回调、通知反复返回、真实划卡片、未保存输入、ROM与WebView版本仍需绑定APK/证书做真机验收。未修改版本或签名策略。
说明:docs/notification-task-retirement.md。