# fix\(mobile\): folded Back clears the detail route before the next selection · PR \#22526 · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/pull/22526)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

State: merged

Source repository: pingdotgg/t3code

Source branch: duo/folded-navigation

Target branch: duo/navigation

Head commit: f9a3b5c2fbbf856382a26f81909690eb49c9e284

[Discussion and reviews](https://git.cafe/pingdotgg/t3code/pull/22526)

[Commits](https://git.cafe/pingdotgg/t3code/pull/22526/commits?format=markdown)

[Files changed](https://git.cafe/pingdotgg/t3code/pull/22526/diffs?format=markdown)

## Description

---

After Back from a detail screen on a folded iPhone Duo, UIKit shows the list but the JS router still holds the detail. Selecting another row then updates a hidden screen and leaves the list unchanged.

Follow the collapsed split's native appearance events to clear the detail history after Back. Track the visible column from those events instead of the last `show()` command. Cancelled swipes preserve the detail, and any sheet opened during the transition stays in the route history.

Verified on the iPhone Duo simulator: Back to the list, opening another thread or PR, cancelling an edge swipe, and folding/unfolding an open thread. Switching from a PR to Threads returns to the thread list. 32 focused navigation and toolbar tests pass; mobile typecheck passes. Compact iPad windows use the same path but have not had a separate device pass. This does not change retained-tab architecture.

Before: after Back, the second row tap leaves the list unchanged.

https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/970d5c4e60b4072a/folded-navigation-before.mp4

After: a cancelled swipe keeps the PR open; Back returns to the list and another PR opens.

https://gh-file-drop-api-prod-mi5fy3sowv63ufte.pinglabs.workers.dev/f/49161d7acf642153/folded-navigation-after.mp4

Implemented by Claude Opus 5.5 through the T3 Code Claude harness; reviewed and verified by GPT-6.1 through the Codex harness.

