Repository navigation
fix(close): close the session app when close omits the app - #4881
Conversation
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 3126efe. The verdict and the full list are in the summary comment.
Plain close ended the session but left the app it opened running, although help close says it closes the active session app. The daemon now closes the session's app the way close <app> does. A session that never opened an app still closes without a platform close, and web sessions are unchanged. The repair close receipt is keyed on the resolved target. Fixes #4684 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
3126efe to
888b4e2
Compare
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
This PR is ready at 888b4e2, and there are no conflicts. The change selects the session app when close omits the app, and each backend then runs its existing close route. Required evidence is satisfied. The only red run, Body rules 44889718627, was cancelled by the workflow's concurrency rule. The next Body rules run on the same head passed, and the other 21 checks pass. Not blocking, and you can take or leave these: Of the earlier threads, the one on session retention after a failed fence no longer applies as written (#4881 (comment)). Only claimed sessions are kept. Unclaimed sessions release the lease and retire first, and the fences match Not verified here: the live iOS simulator and Android AVD before/after was taken before the rebase, and the range-diff shows the same logical patch. Not verified here: macOS app devices, physical Apple devices, Limrun and Revyl runs, |
Summary
closewithout an app ended the session but left the app running, althoughhelp closesays it closes the active session app. The daemon now closes the session's app the wayclose <app>does, Android close fences included. A session that never opened an app still closes without a platform close. Web sessions are unchanged. The repair close receipt is keyed on the resolved target.10 files: 1 source file (+12/-4), the rest tests and integration fakes. Fixes #4684.
Impact: a plain
closenow also stops the app on macOS native app devices, physical Apple devices, cloud providers, at the end of.adscripts, and inreplay testteardown.close --shutdownalso closes the app before the device stops, which adds Android close-fence time. None of these were run live.Before / after
open <app>thenclose(app omitted), same script and daemon state, base991325f45cvs head (same code, rebased to888b4e20d6):UIKitApplicationentry stayspidof1153 stayspidofemptyValidation
At
888b4e20d6: the new unit test fails on base and passes on head. The daemon sessions, server and provider-scenario suites pass locally (252 files). CI owns full validation.🤖 Generated with Claude Code