GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(mobile): tapping "Scroll to end" no longer loses the next tap by viktorce · Pull Request #44939 · pingdotgg/t3code

Conversation

@viktorce

@viktorce viktorce commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Problem

In the mobile thread view, tapping the round "Scroll to end" button above the composer scrolls to the latest message and hides the button, and then the next touch reaches no button. When you scroll up in a long thread, tap it, and tap Send once, nothing happens and the draft stays in the composer until a second tap sends it. On iOS this happened every time, keyboard open or closed, and on an Android emulator it happened in 1 of 3 runs.

Fixes #44938

Change

"Scroll to end" acted on press-in. Starting the scroll hides the button within about 10 ms while the finger is still down, and FloatingWorkingControl returns null. React Native drops touch events whose view is gone, so its touch responder never sees that touch end and stays on the removed button. React Native never offers the next touch to Send. When that touch ends, the responder resets, which is why the second tap works.

All three "Scroll to end" buttons now act on release, so the button disappears only after the touch ends. ControlPill drops activateOnPressIn, which nothing else used, and a two-line comment at return null explains why. The trade-off is that scrolling starts when the finger lifts, one tap's length later. Taps during fling momentum still work on both platforms. The PR has two commits, the fix and a mobile:behavior test case.

Open PR #42639 rewrites floating-working-control.tsx and its new ScrollToEndPill still passes activateOnPressIn and returns null when hidden, so the bug remains there and both PRs touch the same lines. If #42639 lands first, this PR can be rebased onto it by dropping activateOnPressIn from ScrollToEndPill and ControlPill.

Scope

Bug fix for one problem, linked to #44938. The fix changes apps/mobile/src/components/ui/ControlPill.tsx and apps/mobile/src/features/threads/floating-working-control.tsx, adding 5 lines and removing 29. The device test adds 31 lines across scripts/mobile-behavior/scenarios.ts and scripts/mobile-behavior/cases.ts.

Verification

  • iPhone 17 simulator on iOS 27.2 across three runs, two with the keyboard open and one closed, with a temporary log removed before commit. Before the fix, press-in fired, the control unmounted 6 to 10 ms later, the first Send tap registered a touch with no press, and the second sent. After the fix, the press fired on lift, the button went away about 10 ms later, and Send sent on the first tap every time.
  • Android 16 emulator with the same steps and the keyboard open. Before the fix, 1 of 3 runs lost the first Send tap and the second sent. After the fix, 3 of 3 runs sent on the first tap.
  • Three taps during fling momentum on each platform, the case press-in was chosen for, each scrolled to the end and hid the button.
  • New mobile:behavior guard case send-after-scroll-to-end types a message, scrolls up, taps "Scroll to end", checks the feed reached the end, taps Send once with no touch in between, and requires one message on the server. On an iPhone 17 simulator via scripts/mobile-behavior/run.ts --device <udid>, unfixed code sent 0 of 6 graded samples while all six reached the end, and fixed code sent 5 of 5. One sample in twelve was ungraded because agent-device failed to type into the composer before Send, and the control case lost samples the same way on both builds. Not run on the default iPhone 18 Pro and iPad Pro 13 pair, which requires a Simlock lease.
  • vp run check:changed passed on the branch based on current main.

iOS

Before the fix, with the keyboard open, the first Send tap does nothing and the second sends.

scroll-to-end-before.mp4

After the fix, with the keyboard open, the first Send tap sends.

scroll-to-end-after.mp4
Before After
Before, the draft 'Does this send?' stays in the composer after the first Send tap After, the message appears in the thread after the first Send tap

Android

Before the fix, in the 1 of 3 runs that lost the tap, the first Send tap leaves the draft and the second sends.

scroll-to-end-android-before.mp4

After the fix, the first Send tap sends.

scroll-to-end-android-after.mp4

Written with T3 Code. Claude Opus 5.5 found the cause and wrote the code using the Claude Code harness inside T3 Code. GPT-6.2 Sol drove the simulator and the emulator and ran the device test. Claude Opus 5.5, Gemini 4 Neon, and GPT-6.1 Sol reviewed the change. Gemini 4 Neon wrote this description.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
viktorce added 2 commits November 28, 2026 11:17
@viktorce
fix(mobile): the tap after "Scroll to end" no longer gets lost
fbf44a7
"Scroll to end" ran its scroll on touch-down. The scroll turns end
following on at once, so the feed hid the button about 10 ms later,
while the finger was still on it. React Native skips touch events whose
view is gone, so its responder never saw that touch end and stayed on
the removed button. The next touch was given to no one: with the
keyboard up that was the Send tap, and nothing was sent.

The button now acts when the finger lifts, like every other control,
so it disappears only after the touch has ended. ControlPill's
activateOnPressIn option had no other users and is removed.
@viktorce
test(mobile): cover the first Send tap after "Scroll to end"
4114e27
A mobile:behavior case types a message in the long thread, scrolls up,
taps "Scroll to end", checks that the feed reached the end, then taps
Send once and counts the copies that reach the server. On the unfixed
app every graded sample reached the end and sent nothing (6 of 6); with
the fix every graded sample sent exactly one (5 of 5).
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The scroll-to-end control now activates on release. A mobile behavior scenario scrolls a long thread to the end, sends a follow-up, and checks that exactly one matching server message appears.

Changes: Scroll-to-end send behavior

Layer / File(s) Summary
Activate scroll-to-end on release
apps/mobile/src/components/ui/ControlPill.tsx, apps/mobile/src/features/threads/floating-working-control.tsx
ControlPill removes activateOnPressIn and its press handlers. The scroll-to-end control no longer passes the prop in its three render paths. A comment describes release activation when the control hides during a touch.
Check sending after scroll-to-end
scripts/mobile-behavior/environment.ts, scripts/mobile-behavior/scenarios.ts, scripts/mobile-behavior/cases.ts
The environment adds a delivery check that matches thread messages by text. The scenario scrolls to the end and sends a follow-up. The guard checks that the feed reached the end and exactly one matching server message appears.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to 48bc3

This change makes the "Scroll to end" button act when the finger lifts, so the next Send tap should work on the first try. It also adds a mobile behavior check for sending after scrolling to the end. No remaining merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: tapping "Scroll to end" no longer causes the next tap to be lost. The changeset moves the Scroll to end control from press-in to release activation, removes activateOn…
Description check Passed The description follows the template sections: Problem, Change, Scope, and Verification. It explains the root cause (press-in hides the button before touch ends, so React Native's responder stays on a…
Linked Issues check Passed [#44938] The issue requires that Send sends on the first tap after "Scroll to end" in a long mobile thread, with or without the keyboard. The issue names the cause as press-in activation, which hides …
Out of Scope Changes check Passed The source changes are limited to apps/mobile/src/components/ui/ControlPill.tsx and apps/mobile/src/features/threads/floating-working-control.tsx. Both connect directly to the #44938 fix. Removing act…
Full details: Title check

Explanation

The title names the main change: tapping "Scroll to end" no longer causes the next tap to be lost. The changeset moves the Scroll to end control from press-in to release activation, removes activateOnPressIn from ControlPill, and adds a guard test. The title is specific and uses the conventional commit format. It is a fix, which matches the linked bug issue.

Full details: Description check

Explanation

The description follows the template sections: Problem, Change, Scope, and Verification. It explains the root cause (press-in hides the button before touch ends, so React Native's responder stays on a removed view) and the fix (act on release, drop activateOnPressIn, add a comment). It links issue #44938, explains the scope, and gives detailed verification on iOS and Android, including before/after evidence and a device test. It also notes the overlap with open PR #42639 and the trade-off of acting on release. Minor gaps: the Scope section does not explicitly say why the change is a bug fix for an obvious bug beyond the linked issue, and the verification relies on video links that cannot be checked here. The model/harness attribution is present as the template asks. Overall the description is mostly complete.

Full details: Linked Issues check

Explanation

[#44938] The issue requires that Send sends on the first tap after "Scroll to end" in a long mobile thread, with or without the keyboard. The issue names the cause as press-in activation, which hides and removes the button during the touch. The whole-PR diff at the reviewed head confirms the fix. In apps/mobile/src/features/threads/floating-working-control.tsx, all three "Scroll to end" ControlPill uses (around lines 359, 378, and 556) no longer pass activateOnPressIn. In apps/mobile/src/components/ui/ControlPill.tsx, the press-in and press-out handlers are removed, and Pressable now receives onPress={props.onPress}, so activation occurs on release. A comment at the return null path records the constraint. The change addresses the cause named in the issue. The mobile:behavior guard case scrollToEndThenSend with send-after-scroll-to-end checks for one server message after a single Send tap. Device results (iOS 0/6 unfixed vs 5/5 fixed; Android 3/3 after fix) are author-reported and were not re-run here. The device test was not run on the default iPhone 18 Pro and iPad Pro 13 pair. The coding requirement is met by the code change.

Full details: Out of Scope Changes check

Explanation

The source changes are limited to apps/mobile/src/components/ui/ControlPill.tsx and apps/mobile/src/features/threads/floating-working-control.tsx. Both connect directly to the #44938 fix. Removing activateOnPressIn follows from removing its three callers in floating-working-control.tsx. The Button and IconButton delegation conditions change only to drop the activateOnPressIn check. The test changes in scripts/mobile-behavior (scenarios.ts, cases.ts, and the environment.ts delivered helper) support the send-after-scroll-to-end guard case that verifies the fixed path. The reference to open PR #42639 is context only and adds no code here. Limits: the repository search for other activateOnPressIn callers was not run, and the environment.ts and test file contents were assessed from the summary rather than a full diff read. Neither limit suggests unrelated changes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: d0717f7
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a19b9d1-105c-4488-9ed9-5fbef53e6e04
Commits

Reviewing files that changed from the base of the PR and between bc29140 and 48bc32c.

Files selected for processing: 2

  • scripts/mobile-behavior/environment.ts
  • scripts/mobile-behavior/scenarios.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 28, 2026
juliusmarminge and others added 2 commits November 28, 2026 12:37
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/mobile-scroll-to-…
bc29140
…end-upstream
@juliusmarminge @claude
test(mobile): wait for the sent message, not a fixed delay
48bc32c
The send-after-scroll-to-end case slept four seconds after tapping Send
and then read the settled projection, which can still be the long
thread's earlier completed runs if the dispatch lands late. It now
subscribes to the thread and waits for the message with its unique text
to be persisted before counting copies. A lost tap emits no event, so
the wait is bounded and an empty result counts as zero sent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Type a draft in a long thread, scroll away from the end, tap Scroll to end, then tap Send exactly once with no intervening screen touch. Repeat with keyboard open and closed. Environment: real iOS app on iPhone 17 Pro simulator, iOS 27.2, light theme, 402×874 points; isolated backends and synthetic Replay conversations.

Before After
d0717f7e20 48bc32c8fd
Keyboard open recording: first Send tap leaves draft unsent; second sends. Keyboard open recording: first Send tap sends.
Keyboard closed recording: first Send tap leaves draft unsent. Keyboard closed recording: first Send tap sends.

Seed script · Interaction script · Attempted scenario. The scenario runner was blocked before app startup; the verdict comes from the manual recordings.

Not shown:

  • Android was not exercised; evidence covers iOS only.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 7df7798 into pingdotgg:main Nov 28, 2026
55 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
@jbearak jbearak mentioned this pull request Nov 28, 2026
fix(web): PR Code tab no longer folds every opened file when the diff refreshes #45023
Merged
imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
@imetn
chore(upstream): port 42 high-value post-v0.1.13 PRs (mobile, web, se…
6008d4d
…rver)

Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix ([email protected] patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)

Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes

Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes

Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: mobile Send does nothing after tapping "Scroll to end"

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@viktorce @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.