Skip to content

Chat file links mis-scroll in the iOS Files viewer when word wrap is on #40275

Closed

Description

@bdamokos

What happened

Tapping a chat link to a line in a long Markdown file opens the correct file. With word wrap on, the viewer can stop hundreds of lines before the target. The correct line is highlighted when reached by scrolling manually. With word wrap off, the link brings the target into view, but there is no visible row highlight.

The linked line should be visible and clearly marked in both wrap modes.

Diagnosis

The mobile viewer receives the target line from the file route. In source from around the 2.3.0 release, the wrapped viewer used React Native FlatList with estimated offsets and bounded retries for unmeasured lines. That could explain a jump stopping short after many wrapped rows. Upstream later switched to LegendList and removed the retry helper. This case has yet to be tested on that implementation. Release-era source · LegendList migration

Turning wrap off switches to the native source renderer, which draws a thin left-edge marker for the target row. The wrapped viewer uses a row background. That difference may explain why the highlight appears to disappear. Marker visibility on the affected device is unverified. Renderer switch · Native marker drawing

Steps to reproduce

  1. In the iOS app, enable word wrap and open a chat with file:// links into a Markdown file of about 1,150 lines. Use a file with many long paragraphs that each occupy a single source line.
  2. Tap links to #L645-L647 and #L1135, then note the visible line numbers in the Files viewer.
  3. Disable word wrap and tap the same links again. Check where the viewer lands and whether the target is visibly marked.

Version and environment

T3 Code for iOS 2.3.0. The exact iOS build, device model, and OS version are unknown. The Mac backend reported 0.1.12-nightly.20261120.4994 during triage. App Store version history

Evidence

Chat link Visible lines with word wrap on
#L645-L647 395–403
#L1135 377–385
#L386-L394 From about 377, with line 386 at the bottom
#L73-L81 in a shorter Markdown file Target in view

These are observations from the affected iOS device. Triage traced the source independently. There was no separate device reproduction.

Related issues

#25156 addressed a crash on wrapped source links. #39608 addressed Find in the web Files panel. Neither report covers this iOS combination of a missed jump with wrap on and a missing visible highlight with wrap off.

Workaround

Turning word wrap off brings the linked line into view. The reporter still sees no row highlight in that mode.

Filed by

Prepared by gpt-6.2-sol via Codex in T3 Code.

Activity

  1. added
    via-triage
    on Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    via-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions