Skip to content

fix(ios): keep Work chat on-screen when the keyboard opens - #1198

Merged
arul28 merged 1 commit into
mainfrom
ade/github-pingdotgg-t3code-pull-9013
Sep 1, 2026
Merged

fix(ios): keep Work chat on-screen when the keyboard opens#1198
arul28 merged 1 commit into
mainfrom
ade/github-pingdotgg-t3code-pull-9013

Conversation

@arul28

@arul28 arul28 commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Problem

Opening the composer or the system keyboard on ADE Mobile shrinks the Work-chat window. A following transcript could leave the newest lines cropped below that shorter window, and a finishing turn that collapsed cards could overscroll into blank space. A reader who had scrolled up could also lose their place.

Cause

Keyboard avoidance reports as SwiftUI .interacting, which dropped live-follow and blocked the pin write. After the opening bottom pin disarmed (~600ms), the content-size observer did not re-glue the way CLI terminals already re-assert the live tail on layout.

Change and boundary

Work chat (including personal chats on the same SwiftUI view) now re-pins a following viewport across keyboard/composer shrink, keyboard hide, and card collapse, and restores a scrolled-up offset clamped to the new range. Keyboard .interacting is not treated as the reader taking over.

Deliberately unchanged: weak-connection subscribe/hydration freeze, desktop/CLI/web chat, and any port of pingdotgg/t3code#9013 (that list is React Native; ADE iOS is native SwiftUI).

Verification

  • 11 focused ADETests layout-pin cases on iPhone 17 Pro simulator, all passed (testFollowingViewportShrinkPinsToLatest, testFollowingViewportGrowPinsToLatest, inset-only window change, history restore/clamp, content shrink/growth, fling deferral, keyboard phase vs real scroll, reclaim-at-tail).
  • /quality dual-track review: gate empty after two fix/re-review passes.
  • /test: logging not applicable (high-frequency scroll layout); docs already current in ios-companion.md; CLI/TUI/SDK not applicable.

Authored with Cursor Grok 4.6 via ADE.

ADE   Open in ADE  ·  ade/github-pingdotgg-t3code-pull-9013 branch  ·  PR #1198

Opening the composer or system keyboard shrank the transcript window
without re-gluing a following viewport, and could overscroll a reading
position into blank space. Re-pin the live tail across window and card
collapse the same way terminals already do; restore a scrolled-up offset
instead of yanking to latest.

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Sep 1, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
ade Ignored Ignored Sep 1, 2026 7:33pm UTC

@coderabbitai

coderabbitai Bot commented Sep 1, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: e03a67ef-5b51-4cbe-8a7b-5666d6e7400e

📥 Commits

Reviewing files that changed from the base of the PR and between 6016e37 and 8bcb31e.

⛔ Files ignored due to path filters (1)
  • docs/features/sync-and-multi-device/ios-companion.md is excluded by !docs/**
📒 Files selected for processing (3)
  • apps/ios/ADE/Views/Work/WorkChatSessionView+Actions.swift
  • apps/ios/ADE/Views/Work/WorkChatSessionView.swift
  • apps/ios/ADETests/ADETests.swift

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@arul28
arul28 merged commit 83b2d47 into main Sep 1, 2026
39 checks passed
@arul28
arul28 deleted the ade/github-pingdotgg-t3code-pull-9013 branch September 1, 2026 19:58
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.

1 participant