Skip to content

fix(android): session rows only open when tapping the leftmost status dot - #310

Closed
DatScreamer wants to merge 1 commit into
0xSero:mainfrom
DatScreamer:fix/android-session-row-click
Closed

fix(android): session rows only open when tapping the leftmost status dot#310
DatScreamer wants to merge 1 commit into
0xSero:mainfrom
DatScreamer:fix/android-session-row-click

Conversation

@DatScreamer

Copy link
Copy Markdown
Contributor

Closes #309

Problem

On Android, session rows on the Home dashboard only open a conversation when tapping the leftmost status-dot region. Tapping the title, meta line, or right half of a row does nothing.

Root cause

Session titles render through FormattedTextLinkifiedText, which uses Compose ClickableText to open web links. ClickableText consumes taps across the entire text span to detect link hits, so the parent row's combinedClickable never receives the tap on any part of the title. Only the leftmost status-dot column (outside the title) reached the row's click handler.

Change

apps/android/.../common/FormattedText.kt:

  • Only attach ClickableText link handling when the title actually contains a URL (WebLinkRegex.containsMatchIn(text)).
  • Titles without links render as a plain Text, so taps pass through to the row's combinedClickable.
  • Titles that do contain links keep the existing link-opening behavior unchanged.

Verification

  • Android emulator: tapping the right half (x=900) and middle (x=500) of a session row now opens the conversation; the leftmost dot still works.
  • Android-only change (FormattedText.kt); no iOS impact.

Tests

Manual emulator verification (the click behavior is Compose gesture/rendering, covered by the manual repro).

Session titles are rendered through LinkifiedText, which uses ClickableText
to open web links. ClickableText consumes taps across the whole span to
detect link hits, so a session row's combinedClickable only fired on the
leftmost status-dot region and the rest of the row did nothing. Fall back
to a plain Text when the title has no URLs so taps pass through to the
row's click handler.
@0xSero

0xSero commented Aug 18, 2026

Copy link
Copy Markdown
Owner

Landed in #319 (merged as 0824605d). Thanks @DatScreamer. Closing in favour of the convergence PR.

@0xSero 0xSero closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(android): session rows only open when tapping the leftmost status dot

2 participants