scotttong and Scott Tong
c655f38b72
Fix mobile scrolling inside chat and task cards ( #23538 )
...
## Thinking Path
> - Paperclip is the open source app people use to manage AI agents for
work.
> - People review pending requests in agent chats and tasks.
> - The request card sits above the composer in both views.
> - On mobile, a long card can extend beyond the visible screen and
cannot scroll.
> - This pull request limits the card height to part of the visible
viewport.
> - People can scroll the card to read the details and reach its
buttons.
## Linked Issues or Issue Description
Fixes : #21626
## What Changed
- Give mobile composer takeover cards their own vertical scrolling and
contain their scroll at the edges.
- Size the mobile card against the visible chat viewport, including when
the keyboard shrinks it. Keep the desktop limit and Inbox behavior
unchanged.
- Add browser regression tests for touch scrolling through a long
confirmation card in Chat and Tasks.
## Verification
- On master at `4db307d53c`, both regressions reproduced at 390 × 664
with emulated touch. The card extended past the viewport and a swipe did
not move its scroll position.
- Both patched Chromium regressions passed. A touch swipe scrolled the
card, and subsequent swipes brought the approval button into view.
- `pnpm --filter @paperclipai/ui typecheck` passed.
- The isolated mobile preview also loaded the Inbox without changing it.
Physical iPhone and keyboard testing were not performed.
## Risks
- Low risk. The change is limited to the shared composer card layout and
does not change how requests are accepted or stored. The composer is
already above the 1,000-line threshold; changing its existing card
classes keeps the fix local.
- A long card uses part of the available height, so its contents scroll
instead of pushing the controls offscreen.
## Model Used
- OpenAI GPT, in Codex with repository and Chromium tools.
## Checklist
- [x] I have included a thinking path that traces from project context
to this change
- [x] I have specified the model used (with version and capability
details)
- [x] I have checked ROADMAP.md and confirmed this PR does not duplicate
planned core work
- [x] I have searched GitHub for duplicate or related PRs and linked
them above
- [x] I have either (a) linked existing issues with `Fixes: #123` /
`Closes #123` / `Refs #123` OR (b) described the issue in-PR following
the relevant issue template
- [x] I have not referenced internal/instance-local Paperclip issues or
links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip`
URLs)
- [x] My branch name describes the change (e.g. `docs/...`, `fix/...`)
and contains no internal Paperclip ticket id or instance-derived details
- [x] I have run tests locally and they pass
- [x] I have added or updated tests where applicable
- [ ] I have updated relevant documentation to reflect my changes
- [x] I have considered and documented any risks above
- [ ] All Paperclip CI gates are green
- [ ] Greptile is 5/5 with no open P2s, recommendations, or follow-ups
- [x] I will address all Greptile and reviewer comments before
requesting merge
---------
Co-authored-by: Scott Tong <1504818+scotttong@users.noreply.github.com >
2026-12-02 11:25:44 -08:00
..
2026-11-27 14:00:55 +00:00
2026-11-23 21:11:57 -06:00
2026-11-12 01:23:59 +00:00
2026-11-23 21:11:57 -06:00
2026-12-01 23:57:07 -08:00
2026-12-01 18:53:11 +00:00
2026-11-05 14:42:11 -06:00
2026-11-27 14:00:55 +00:00
2026-11-30 14:12:46 -08:00
2026-11-23 21:11:57 -06:00
2026-11-23 21:11:57 -06:00
2026-11-25 22:08:28 +00:00
2026-11-23 21:11:57 -06:00
2026-11-24 10:53:19 -06:00
2026-08-25 10:54:14 -07:00
2026-11-23 21:11:57 -06:00
2026-11-27 13:41:43 +00:00
2026-12-01 18:53:11 +00:00
2026-11-24 10:53:19 -06:00
2026-12-01 23:57:07 -08:00
2026-11-23 21:11:57 -06:00
2026-12-01 21:17:54 +00:00
2026-11-23 21:11:57 -06:00
2026-10-20 11:32:25 -05:00
2026-12-01 20:54:03 +00:00
2026-11-30 14:35:46 -08:00
2026-11-24 16:49:28 -06:00
2026-11-18 14:19:17 -08:00
2026-11-17 15:18:50 -06:00
2026-11-23 21:11:57 -06:00
2026-11-23 21:11:57 -06:00
2026-11-23 21:11:57 -06:00
2026-12-02 11:25:44 -08:00
2026-11-23 21:11:57 -06:00
2026-12-01 18:53:11 +00:00
2026-11-24 16:49:28 -06:00
2026-11-25 01:45:06 -06:00
2026-11-23 21:11:57 -06:00
2026-11-27 13:41:39 +00:00
2026-10-07 07:27:52 -05:00
2026-11-17 15:18:50 -06:00
2026-11-04 14:07:18 -08:00
2026-09-11 17:02:40 -07:00
2026-11-17 14:00:14 -08:00
2026-10-19 17:45:26 -07:00
2026-10-19 17:45:26 -07:00
2026-12-02 09:00:36 +00:00
2026-12-02 09:00:36 +00:00
2026-11-26 13:12:44 +00:00
2026-10-14 11:33:02 -05:00
2026-10-07 15:53:13 -05:00
2026-11-12 01:23:59 +00:00
2026-11-12 01:23:59 +00:00
2026-10-09 17:01:20 -05:00
2026-09-18 14:32:19 -07:00
2026-08-21 16:41:53 -07:00
2026-11-12 01:23:59 +00:00
2026-09-19 07:57:53 -05:00
2026-11-06 17:10:56 -06:00
2026-11-24 11:31:38 -08:00
2026-11-17 14:00:14 -08:00
2026-12-01 23:33:24 -08:00
2026-11-25 22:08:28 +00:00
2026-12-01 23:33:24 -08:00
2026-11-27 14:00:55 +00:00
2026-11-27 14:00:55 +00:00
2026-11-27 14:00:55 +00:00
2026-09-19 07:57:53 -05:00
2026-12-01 23:33:24 -08:00
2026-10-02 10:01:15 -05:00
2026-11-09 17:42:47 -06:00
2026-10-14 11:33:02 -05:00
2026-11-13 10:24:20 -06:00
2026-11-18 14:19:17 -08:00
2026-11-25 22:08:28 +00:00
2026-11-25 22:08:28 +00:00
2026-11-24 11:17:27 -06:00
2026-11-24 11:17:27 -06:00
2026-11-17 15:18:50 -06:00
2026-11-12 01:23:59 +00:00
2026-10-24 16:16:29 -07:00
2026-10-08 16:26:41 -05:00
2026-11-12 13:48:35 -06:00
2026-09-14 10:19:54 -05:00
2026-11-24 09:57:37 -08:00
2026-11-02 17:12:22 -06:00
2026-11-27 14:00:55 +00:00
2026-11-05 17:21:08 -08:00
2026-11-04 14:07:18 -08:00
2026-09-19 07:57:53 -05:00
2026-11-11 21:05:00 -08:00
2026-11-17 15:18:50 -06:00
2026-11-25 19:16:24 +00:00
2026-11-27 14:00:55 +00:00
2026-11-23 09:37:06 -06:00
2026-11-06 11:14:56 -08:00
2026-11-11 21:05:00 -08:00
2026-11-11 21:05:00 -08:00
2026-11-06 07:33:59 -08:00
2026-11-17 16:52:35 -08:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-11-11 21:05:00 -08:00
2026-10-11 22:48:29 -07:00
2026-11-25 15:33:20 -06:00
2026-11-09 21:11:29 -08:00
2026-08-27 01:04:55 -07:00
2026-11-27 13:41:43 +00:00
2026-09-19 10:49:05 -05:00
2026-11-27 13:41:43 +00:00
2026-10-13 10:12:49 -07:00
2026-10-06 22:26:48 -07:00
2026-11-05 14:42:11 -06:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-11-17 20:45:44 -08:00
2026-10-19 17:45:26 -07:00
2026-11-25 16:01:38 -06:00
2026-11-05 16:28:25 -08:00
2026-10-06 18:20:37 -07:00
2026-11-03 09:28:57 -06:00
2026-11-03 09:28:57 -06:00
2026-08-25 16:06:35 -07:00
2026-08-25 16:06:35 -07:00
2026-09-28 13:45:27 -05:00
2026-12-01 20:54:03 +00:00
2026-12-01 20:54:03 +00:00
2026-12-01 20:54:03 +00:00
2026-12-01 20:54:03 +00:00
2026-10-06 18:20:37 -07:00
2026-11-28 12:53:18 +00:00
2026-11-05 01:23:53 -08:00
2026-11-17 20:45:44 -08:00
2026-12-01 17:57:33 +00:00
2026-12-01 17:57:33 +00:00
2026-11-17 20:45:44 -08:00
2026-08-27 12:11:05 -07:00
2026-11-25 19:16:24 +00:00
2026-11-25 19:16:24 +00:00
2026-08-27 01:04:55 -07:00
2026-11-17 20:45:44 -08:00
2026-11-06 10:58:42 -08:00
2026-10-27 21:22:07 -07:00
2026-10-27 20:42:28 -07:00
2026-10-27 20:42:28 -07:00
2026-11-17 14:00:14 -08:00
2026-11-05 16:54:27 -06:00
2026-11-05 22:07:12 -06:00
2026-11-06 17:10:56 -06:00
2026-11-25 19:16:24 +00:00
2026-10-11 22:48:29 -07:00
2026-11-27 13:41:45 +00:00
2026-10-11 22:48:29 -07:00
2026-10-06 22:26:48 -07:00
2026-10-07 09:17:18 -05:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-11-11 21:05:00 -08:00
2026-11-24 18:33:27 -08:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-11-11 21:05:00 -08:00
2026-10-19 17:45:26 -07:00
2026-10-19 10:16:23 -05:00
2026-10-19 17:45:26 -07:00
2026-10-19 17:45:26 -07:00
2026-11-10 08:00:13 -06:00
2026-11-25 19:16:24 +00:00
2026-09-29 16:34:26 -07:00
2026-09-25 15:28:11 -07:00
2026-09-01 02:44:19 -05:00
2026-11-25 15:33:38 -06:00
2026-11-25 15:33:38 -06:00
2026-11-17 15:18:50 -06:00
2026-09-19 07:57:53 -05:00
2026-12-01 18:53:11 +00:00
2026-11-25 15:32:27 -06:00
2026-11-25 15:32:27 -06:00
2026-11-04 14:07:18 -08:00
2026-11-17 15:18:50 -06:00
2026-09-11 16:56:38 -05:00
2026-11-17 15:18:50 -06:00
2026-11-24 18:33:27 -08:00
2026-09-01 14:55:35 -05:00
2026-11-24 11:31:38 -08:00
2026-11-30 23:01:24 +00:00
2026-10-08 10:20:32 -07:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-10-26 16:13:04 -07:00
2026-11-17 14:00:14 -08:00
2026-10-07 09:01:05 -05:00
2026-11-04 14:07:18 -08:00
2026-12-01 18:53:11 +00:00
2026-10-06 22:26:48 -07:00
2026-10-06 22:26:48 -07:00
2026-10-06 22:26:48 -07:00
2026-10-09 17:01:20 -05:00
2026-11-17 11:38:25 -08:00
2026-11-17 11:42:36 -06:00
2026-11-04 14:07:18 -08:00
2026-08-20 17:54:44 -07:00
2026-08-20 17:54:44 -07:00
2026-09-01 03:41:23 -05:00
2026-10-19 17:45:26 -07:00
2026-10-07 09:01:05 -05:00
2026-10-07 07:27:52 -05:00
2026-11-06 18:42:22 -06:00
2026-11-04 14:07:18 -08:00
2026-11-25 15:31:54 -06:00
2026-12-01 18:53:11 +00:00
2026-11-18 13:13:15 -06:00
2026-11-17 15:18:50 -06:00
2026-11-17 20:45:44 -08:00
2026-10-02 13:08:25 -07:00
2026-11-17 20:45:44 -08:00
2026-12-01 18:53:11 +00:00
2026-10-07 11:15:49 -07:00
2026-10-20 12:46:14 -05:00
2026-12-01 17:57:33 +00:00
2026-11-25 15:33:20 -06:00
2026-10-01 11:46:14 -05:00
2026-11-03 16:06:53 -08:00
2026-11-25 15:33:20 -06:00
2026-11-25 15:33:20 -06:00
2026-11-25 15:33:20 -06:00
2026-12-01 18:53:11 +00:00
2026-11-24 15:01:19 -06:00
2026-11-24 15:01:19 -06:00
2026-11-04 14:07:18 -08:00
2026-10-06 16:03:13 -07:00
2026-11-13 05:59:52 -06:00
2026-11-18 14:19:17 -08:00
2026-11-05 14:42:11 -06:00
2026-11-17 15:18:50 -06:00
2026-11-19 16:22:07 -08:00
2026-11-27 13:41:39 +00:00
2026-11-27 13:41:39 +00:00
2026-11-18 14:19:17 -08:00
2026-11-18 01:24:13 -06:00
2026-10-27 21:22:07 -07:00
2026-11-05 14:42:11 -06:00
2026-11-25 15:33:20 -06:00
2026-11-25 15:33:31 -06:00
2026-11-25 15:33:31 -06:00
2026-11-25 15:33:20 -06:00
2026-11-11 08:00:21 -08:00
2026-11-10 09:58:54 -06:00
2026-10-09 08:10:46 -05:00
2026-10-09 08:10:46 -05:00
2026-11-02 11:35:30 -06:00
2026-09-02 23:55:55 -07:00
2026-11-27 14:00:55 +00:00
2026-11-26 18:25:15 +00:00
2026-11-27 14:00:55 +00:00
2026-11-25 15:33:20 -06:00
2026-11-04 14:07:18 -08:00
2026-11-17 15:18:50 -06:00
2026-11-14 17:38:28 -06:00
2026-10-07 07:27:52 -05:00
2026-09-19 07:57:53 -05:00
2026-11-27 13:41:43 +00:00
2026-12-01 18:53:11 +00:00
2026-11-15 22:15:00 -06:00
2026-11-17 11:23:03 -06:00
2026-11-16 14:33:39 -06:00
2026-10-19 17:45:26 -07:00
2026-08-29 12:08:33 -05:00
2026-10-19 17:45:26 -07:00
2026-11-27 14:00:55 +00:00
2026-11-27 14:00:55 +00:00
2026-11-27 14:00:55 +00:00
2026-11-27 14:00:55 +00:00
2026-11-04 14:07:18 -08:00
2026-11-24 11:31:38 -08:00
2026-09-08 14:22:32 -05:00
2026-08-27 01:04:55 -07:00
2026-12-01 20:54:03 +00:00
2026-11-17 20:45:44 -08:00
2026-12-02 07:32:27 -08:00
2026-10-19 10:16:23 -05:00
2026-11-12 01:23:59 +00:00
2026-08-20 12:15:16 -05:00
2026-11-12 13:48:35 -06:00
2026-10-26 14:29:20 -05:00
2026-11-27 14:00:55 +00:00
2026-11-27 14:00:55 +00:00
2026-11-09 21:11:29 -08:00
2026-11-07 00:06:50 +00:00
2026-10-28 10:52:06 -07:00
2026-11-24 11:31:38 -08:00
2026-09-19 09:18:10 -07:00
2026-11-17 14:00:14 -08:00
2026-09-11 17:02:40 -07:00
2026-10-07 07:27:52 -05:00
2026-11-30 22:49:39 +00:00
2026-11-30 22:49:39 +00:00
2026-11-04 14:07:18 -08:00
2026-11-04 14:07:18 -08:00
2026-12-01 22:24:35 +00:00
2026-12-01 22:24:35 +00:00
2026-11-25 22:08:28 +00:00
2026-11-04 14:07:18 -08:00
2026-12-01 22:24:35 +00:00
2026-11-05 01:23:53 -08:00
2026-10-12 20:45:18 -05:00
2026-10-12 20:45:18 -05:00
2026-11-11 21:05:00 -08:00
2026-11-25 15:31:15 -06:00
2026-11-25 15:31:15 -06:00
2026-11-24 19:54:23 -06:00
2026-11-24 19:54:23 -06:00
2026-11-18 14:19:17 -08:00
2026-10-11 22:48:29 -07:00
2026-11-13 07:32:48 -06:00
2026-09-01 03:41:23 -05:00
2026-10-27 21:22:07 -07:00
2026-11-15 08:51:04 -06:00
2026-11-06 11:14:56 -08:00
2026-10-14 09:55:43 -05:00
2026-09-08 08:21:28 -05:00
2026-11-17 20:45:44 -08:00
2026-11-05 17:21:08 -08:00
2026-11-05 17:21:08 -08:00
2026-11-18 13:13:15 -06:00
2026-11-27 13:41:45 +00:00
2026-11-18 17:43:29 -06:00
2026-11-04 14:07:18 -08:00
2026-11-18 17:43:29 -06:00
2026-11-17 20:45:44 -08:00
2026-11-27 13:41:45 +00:00
2026-11-27 13:41:45 +00:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-10-05 20:44:37 -05:00
2026-11-01 22:27:09 -08:00
2026-11-04 14:07:18 -08:00
2026-11-07 10:24:03 -06:00
2026-11-18 13:13:15 -06:00
2026-12-01 17:57:33 +00:00
2026-12-01 17:57:33 +00:00
2026-09-09 16:35:38 -07:00
2026-10-05 18:06:40 -05:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-08-27 01:04:55 -07:00
2026-08-27 01:04:55 -07:00
2026-09-21 23:40:46 +00:00
2026-11-04 14:07:18 -08:00
2026-09-21 12:53:11 -05:00
2026-11-02 08:13:34 -06:00
2026-11-25 19:16:24 +00:00
2026-11-25 19:16:24 +00:00
2026-11-23 14:38:55 -08:00
2026-11-23 14:38:55 -08:00
2026-10-27 21:22:07 -07:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-11-17 20:45:44 -08:00
2026-11-06 17:41:07 -06:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-11-24 11:31:38 -08:00
2026-11-18 16:04:42 -08:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-11-23 14:38:55 -08:00
2026-11-17 14:00:14 -08:00
2026-11-17 14:00:14 -08:00
2026-09-30 13:32:58 -05:00
2026-11-17 15:18:50 -06:00
2026-09-30 13:32:58 -05:00
2026-09-19 07:57:53 -05:00
2026-11-18 14:19:17 -08:00
2026-11-11 21:05:00 -08:00
2026-11-05 14:42:11 -06:00
2026-11-17 20:45:44 -08:00
2026-11-02 11:35:30 -06:00
2026-11-26 00:41:10 +00:00
2026-11-26 00:41:10 +00:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-11-04 14:07:18 -08:00
2026-10-19 17:45:26 -07:00
2026-11-17 15:18:50 -06:00
2026-11-30 10:03:46 -08:00
2026-12-01 18:53:11 +00:00
2026-11-17 15:18:50 -06:00
2026-11-17 15:18:50 -06:00
2026-11-25 15:33:20 -06:00
2026-11-06 11:01:02 -06:00
2026-11-23 13:32:14 -08:00
2026-10-24 16:16:29 -07:00
2026-10-19 17:45:26 -07:00
2026-10-19 17:45:26 -07:00
2026-10-25 21:49:52 -05:00
2026-11-23 13:32:14 -08:00
2026-09-04 16:15:21 -07:00
2026-11-27 13:41:39 +00:00
2026-11-27 13:41:39 +00:00
2026-11-06 11:39:44 -06:00
2026-10-19 17:45:26 -07:00
2026-10-19 17:45:26 -07:00
2026-11-12 01:23:59 +00:00
2026-10-27 21:22:07 -07:00
2026-11-06 14:31:11 -08:00
2026-11-04 14:07:18 -08:00
2026-09-01 14:23:05 -05:00
2026-11-04 14:07:18 -08:00
2026-10-09 15:56:14 -05:00
2026-11-25 04:34:03 -06:00
2026-11-25 04:34:03 -06:00
2026-11-09 17:42:47 -06:00
2026-11-04 14:07:18 -08:00
2026-10-19 21:49:44 -05:00
2026-11-23 09:37:06 -06:00
2026-11-27 13:41:45 +00:00
2026-09-18 14:32:19 -07:00