Repository navigation
Dismiss mobile terminal keyboard before tab actions - #6671
Conversation
📝 WalkthroughWalkthroughThe change adds a keyboard-dismiss gate for session tab long-press action sheets. A new constant defines the fallback delay. Two refs track a 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
mobile/app/h/[hostId]/session/[worktreeId].tsx (1)
232-232: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winAdd a short reason for the fallback duration.
450is a non-obvious timing guard; document why this value exists so future tuning does not regress keyboard/action-sheet ordering.Suggested change
+// Why: bounds the wait if keyboardDidHide is missed, while allowing the native +// hide animation to finish before the action sheet opens. const TERMINAL_KEYBOARD_DISMISS_ACTION_SHEET_FALLBACK_MS = 450As per coding guidelines, “When writing or modifying code driven by a design doc or non-obvious constraint, add a comment explaining why the code behaves the way it does.”
Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: 3ed5299a-700a-49eb-bfe5-d52896421f07
📒 Files selected for processing (1)
mobile/app/h/[hostId]/session/[worktreeId].tsx
Summary
Validation
Note: pnpm --dir mobile lint still cannot run because mobile/node_modules is missing and the local oxlint binary is unavailable.