#18529 · @Geequlim · opened Mar 21, 2026 at 2:43 PM UTC · last updated Mar 21, 2026 at 2:44 PM UTC
fix(app): open inline comments directly on touch devices
Score breakdown
Impact
Clarity
Urgency
Ease Of Review
Guidelines
Readiness
Size
Trust
Traction
Summary
This PR fixes a bug where inline comments were inaccessible on touch devices due to reliance on hover interactions. It modifies the app to allow direct opening of comment drafts upon line selection on touch devices. Desktop behavior remains unchanged.
Description
Issue for this PR
Closes #17598
Type of change
- [x] Bug fix
What does this PR do?
Inline comments were only discoverable through the hover affordance in the file view, which does not work well on touch devices like iPad.
This change keeps the desktop hover flow unchanged and makes touch devices open the inline comment draft directly after a line selection.
How did you verify your code works?
- Ran bun typecheck in app
- Verified desktop behavior is unchanged: inline comment entry still appears on hover
- Verified on touch devices that selecting a line opens the inline comment draft directly
- Confirmed existing inline comment interactions still work after opening the draft
Screenshots / recordings
Before
https://github.com/user-attachments/assets/6b6171ca-b34f-446f-9dd6-de440e738b25
After
https://github.com/user-attachments/assets/9cfc7e18-908f-4683-b819-b0eabcb2d212
Checklist
- [x] I have tested my changes locally
- [x] I have not included unrelated changes in this PR
Linked Issues
#17598 Review Comment and File Explorer does not work on mobile for OpenCode Web UI
View issueComments
No comments.
Changed Files
packages/app/src/pages/session/file-tabs.tsx
+8−2