Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
- On an iPhone, open a thread whose assistant message links a local video file, for example
Watch it: [clip.mp4](/path/to/clip.mp4). - Tap the link. The video opens in the native full-screen player and plays.
- Close the player by swiping it down. It shrinks back into the thread.
- Go back to the thread list (swipe from the left edge or tap Back), then open any thread.
Expected behavior
Closing the video returns to the thread as it was. Back and opening other threads then work normally.
Actual behavior
From a screen recording of the steps above, about 18 s long:
- Right after the player closes, the thread is scrolled to a different position, and within a second the app is back on the thread list.
- The navigation stack no longer matches what is on screen. The list shows a Back button in its header. Tapping a thread row changes the header title to that thread, but the content stays the thread list, and rows can still be tapped through it.
- Tapping Back then shows the original thread's content.
- Going back once more turns the whole screen black, apart from the status bar. The app has to be force-quit.
It looks like navigation breaks as soon as the video closes: the native header and the visible screen stay out of sync from then on.
Impact
Major degradation or frequent failure
Version or commit
Current App Store iOS build on 2026-11-10 (exact build number not captured). The code below is from main at 047d492.
Environment
iPhone (physical device), current iOS release. The video was an MP4 file on the host, linked from an assistant message.
Logs or stack traces
No crash log. The app doesn't terminate: it stays running with a broken screen until force-quit.
Screenshots, recordings, or supporting files
I have a screen recording. It isn't attached because it shows private thread content.
Workaround
Force-quit and reopen the app.
Additional context
Possible cause, from reading the code. I haven't verified this on a device.
When the tapped link's source view is on screen, T3NativeVideoPresentation.present takes the embedded path in T3NativeVideoPresentation.swift#L80-L95. It walks the source view's responder chain to the nearest UIViewController, which is the thread's react-native-screens RNSScreen. It then adds the AVPlayerViewController as a child of that screen controller, puts the player's view inside the link chip, and calls AVKit's private enterFullScreenAnimated:completionHandler:. On exit, finish() removes the child (L149-L156).
expo-video uses the same AVKit entry point, but it doesn't add the player controller as a child of the react-native-screens controller. Adding a child to an RNSScreen inside the native stack, and having AVKit present and dismiss full screen from it, may leave the stack's transition or view state inconsistent. That would fit the header and content disagreeing afterwards. The other path (presenter.present(controller, animated: true), used when there is no on-screen source) doesn't change the screen's child controllers.
Related, but not the same bug: #26662 and #32795 (Quick Look image previews failing to open), #26831 (inline videos no longer opening full screen).
Activity
Schreezer commentedon Nov 11, 2026
Closing: I can no longer reproduce this. It doesn't happen on the iOS 27 simulator or on the reporter's iPhone anymore, so it was likely a transient state.
Schreezer commentedon Nov 11, 2026
Reopening: the reporter just reproduced this again on their iPhone, so my earlier "can't reproduce" was wrong.
Schreezer commentedon Nov 12, 2026
More findings from an iOS 27 simulator on a debug dev client of
main(047d492), with logging added around the V5 card stack, link handling andSELECT_WORKSPACE_DETAIL. The exact symptom (list pushed on top of the thread) is still not reproduced, but two related problems are.1. A thread link while that thread's video plays rebuilds the thread (reproducible)
Steps: open a thread, open a video from a file link in it (modal
presentpath), then while it plays opent3code-dev://threads/<environmentId>/<threadId>for the same thread, which is what a notification tap does.Result: the video closes and the thread screen is replaced by a new one with a new key, losing the scroll position. Log excerpt:
Cause, as far as I can tell:
V5CardStackView.onWillDisappear(apps/mobile/src/native/createV5StackNavigator.ios.tsx) setsnativePopSourcewhenever the top card disappears. It can't tell "covered by a full-screen modal" from "native Back", becauseonWillDisappearcarries no payload.onNativePopChangemirrors that key intonativelyPoppingRoute(workspace-detail-selection.ts). AnySELECT_WORKSPACE_DETAILduring playback then treats the visible thread as leaving and builds a fresh route instead of reusing it.nativePopSourcestill names the deleted key. ThedidAppearof the new card doesn't clear it, becausenativeStackPopActionreturns null for a key that is no longer in state.2. One crash:
Attempt to pop last screen from the stackIt happened once in about 18 runs. The sequence was: cold start, open thread, tap a link to a missing file (fails in JS with "Could not open video"), open a real clip, close it, press the header Back.
It didn't repeat, and the event log from that run wasn't captured. Line 322 is the branch with pops and pushes together, so it needs a single transaction that pops more than the native stack holds. A reset that re-keys
Homewould do that, and so would a router that disagrees with UIKit about which card is leaving, like the stale source above. In a release buildRCTAssertis compiled out, so I'd expect this to become a silent JS/UIKit desync rather than a crash. That would fit the broken stack and black screen in the original report, but it isn't verified.Ruled out on the simulator
addChildpath mentioned in the original report: file links used the modal path (embedded=0) on the simulator.Other link results during playback: a bare
t3code-dev://link is ignored, and a thread link for an unknown environment opens Choose project over the thread.A possible direction: only record
nativePopSourcefor an actual pop, for example by having the native side say whether the controllerisMovingFromParentViewController, or clear it when the same card reappears. I haven't tested a fix.EtanHey commentedon Nov 12, 2026
Two more triggers for this on a real iPhone (T3 Code iOS 2.3), both reproduced twice in screen recordings:
After the close, the sequence matches this issue step for step:
In case 1, one of three closes returned to the thread normally.
Both are full-screen modals over the workspace card stack, like the video player here.
createV5StackNavigator.ios.tsxmarks the top card as natively popping on anyonWillDisappear(L215–221 on main; identical at the 2.3.0 bumpd1909d68f8). That fits all three triggers. I haven't confirmed which event sets the stale marker on close. #34990 changes that marker for the video case, so these two flows may be worth checking against it.Version: iOS app 2.3 (exact build unknown). Device: iPhone. The browser tab ran on a Mac server, 0.1.10-nightly.20261111.4544.
Recordings (names blurred):
Filed by Claude Opus 5.5 via T3 Code triage (playbook + /qa-video frame review).
Spitfire101 commentedon Nov 22, 2026
Same thing happens to me on 2.3.0 on an iPhone 15 Pro Max when I close the device emulator preview.
I open a thread, tap the device button to open the emulator full screen, then tap the X. The thread shows for a second, goes black with just the back arrow, and then the thread list slides in from the right on its own. From there it's exactly what's described above. The header still shows the thread, tapping a thread only changes the title, back shows the thread again, and back once more gives a black screen.