Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): review dictated drafts without opening the keyboard #12917

ClosedDwite(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/12917/headopened View on GitHub

What Changed

After dictation finishes, expand the mobile composer into its full-height reading area without focusing the editor or opening the keyboard. Tap the text to edit, or tap the conversation to collapse it. Successful sends clear the review state.

Why

A transcript completed from the collapsed composer stayed in one line. Review should make the text readable without immediately opening the keyboard. The review state is scoped to the thread, with matching feed spacing and safe-area padding.

Scope and approval

There is no prior issue or discussion. I am submitting this under the small, focused fix exception in CONTRIBUTING.md.

  • Defect: the voice input guide says dictated text is inserted "ready for you to review and edit before sending". When dictation starts from the collapsed composer, the transcript lands in a one-line field, so most of it cannot be read without opening the keyboard.
  • Why it fits the exception: it reuses the existing expanded composer layout in the existing-thread screen. It adds no setting, default, contract, or provider change. Focusing the editor, tapping the conversation, or sending returns the composer to its normal behavior.

If you read this as a product behavior change and not a bug fix, tell me and I will take it to an Ideas discussion first.

UI Changes

BeforeAfter
Transcript remains in one lineExpanded transcript with the keyboard hidden

Before/after video

Verified on an iOS 26.5 simulator with temporary simulated recorder and transcript responses. Real microphone capture and speech recognition were not tested. All fixtures were removed before committing.

Validation

  • 29 focused voice-input tests pass; mobile TypeScript and formatting checks pass.
  • Changed-file lint completes with warnings in existing code.
  • Device check: 160-point reading area with no keyboard, tap-to-edit with keyboard, and tap-outside collapse to 36 points.

The new-task composer already uses an expanded editor. This change is in the existing-thread mobile UI and applies independently of provider and connection mode.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Model: GPT-6. Harness: Codex.

Summary by CodeRabbit

  • New Features
    • Added a dictation review state to thread composition.
    • Voice-dictated drafts remain expanded for easier review, with increased editor space.
    • Review status clears when the composer is focused, collapsed, or the message is sent.
    • Improved handling of bottom spacing while composing on iOS.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Dwite(GitHub profile, opens in a new tab) changed the title

    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review Change StackReview Change Stack

      Understand this PR’s impact

      Explore downstream dependencies and potential security impact with Blast Radius.

      View blast radius →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: 77a03087-d443-49c2-a30b-d59482514f1b

      📥 Commits

      Reviewing files that changed from the base of the PR and between 1de563c1491c7d82563e4553bf5bf689ce6adbb9 and da0fd1555c7db572d074f922cce7019b53e0b6e7.

      📒 Files selected for processing (2)
      • apps/mobile/src/features/threads/ThreadComposer.tsx
      • apps/mobile/src/features/threads/ThreadDetailScreen.tsx

      Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


      📝 Walkthrough

      Walkthrough

      Changes

      Dictation review flow

      Layer / File(s)Summary
      Composer review contract and layout
      apps/mobile/src/features/threads/ThreadComposer.tsx
      ThreadComposer accepts dictation review state and a completion callback. Draft updates invoke the callback. The composer remains expanded during review, and the editor minimum height becomes 160.
      Screen review lifecycle and sizing
      apps/mobile/src/features/threads/ThreadDetailScreen.tsx
      ThreadDetailScreen tracks review state per thread, selects review chrome, clears state on focus, send, or collapse, and applies the iOS bottom inset only while the composer is focused.

      Priority: ⬇️ Low

      Estimated code review effort: 3 (Moderate) | ~20 minutes

      Change: Bug fix

      Sequence Diagram(s)

      sequenceDiagram
        participant VoiceInputController
        participant ThreadComposer
        participant ThreadDetailScreen
        VoiceInputController->>ThreadComposer: update draft message
        ThreadComposer->>ThreadDetailScreen: call onDictationComplete()
        ThreadDetailScreen->>ThreadComposer: set review state and select review chrome
        ThreadComposer->>ThreadComposer: remain expanded with minHeight 160

      Suggested reviewers: juliusmarminge

      🚥 Pre-merge checks | ✅ 5
      ✅ Passed checks (5 passed)
      Check nameStatusExplanation
      Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2…
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly and concisely describes the main change: reviewing dictated drafts without opening the keyboard.
      Description check✅ PassedThe description provides the problem, change, scope and approval rationale, UI evidence, verification results, limitations, and agent details. It uses alternate headings such as "What Changed," "Why,"…
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR

      Comment `@coderabbitai help` to get the list of available commands.
    4. Thanks for working on this. We merged the orchestrator V2 rewrite in #2829, and we are closing this PR as part of that transition.

      The patch conflicts with the rewrite in apps/mobile/src/features/threads/ThreadComposer.tsx, apps/mobile/src/features/threads/ThreadDetailScreen.tsx. Even where the conflict is small enough to rebase, we are asking for fresh PRs against the new base so we can review and verify the behavior in V2.

      Sorry for the extra work this creates. If the change is still needed on V2, please rebuild it on current main, verify it there, and open a new PR linking back here. We're closing the current implementation without assuming the underlying request is resolved.

    5. juliusmarminge closed this

Sign in to join this conversation.