← Back to Pull requests

fix(web): keep empty mobile chat composer at bottom #477

Closed
unknown closed this pull request without merging on Nov 10, 2026 11:50 UTC
View on GitHub
unknown unknown commented on Nov 09, 2026 19:00 UTC
Author

Summary


  • make document-scroll panes vertical flex containers so an empty chat fills the viewport and keeps its composer at the bottom

  • add an empty-chat geometry assertion before the existing long-conversation mobile regression coverage

  • update US-Q05 with the empty-chat docking behavior
  • Screenshots


    Isolated empty hybrid session using the fake Claude Code agent; no messages. Static layout change, so no interaction GIF is needed.

    | Viewport / theme | Before | After |
    | --- | --- | --- |
    | Desktop 1280×900, light | !Before: desktop light | !After: desktop light |
    | Tablet 768×800, light | !Before: tablet light | !After: tablet light |
    | Phone 390×844, light | !Before: phone light | !After: phone light |
    | Phone 390×844, dark | !Before: phone dark | !After: phone dark |

    The measured dock bottoms changed from 278 / 304 / 168 to 900 / 800 / 844 at desktop / tablet / phone sizes respectively, matching the viewport bottoms. Additional phone checks at 375×667 and 320×568 also matched the viewport bottom with no horizontal overflow.

    Verification


  • mise exec go@1.26 -- pnpm --dir web exec playwright test test/e2e/hybrid.spec.ts --project=chromium-mobile --grep "mobile chat scrolls the document" — failed before the CSS fix with the dock 676px above the phone viewport bottom; passed after, including populated chat, focus transitions and desktop-width checks

  • pnpm --dir web check

  • pnpm --dir web check:test

  • pnpm --dir web lint

  • pnpm --dir web check:arch

  • pnpm --dir web exec oxfmt --check src test/e2e/hybrid.spec.ts

  • mise exec go@1.26 -- make docs-check

  • Real isolated app screenshots inspected in light/dark themes; no horizontal overflow at 390×844, 375×667 or 320×568
  • User stories


  • US-Q05
  • Visual verification limitations


  • Headless Chromium only; no physical phone validation

  • Headless hover and any-pointer: coarse behavior not verified
  • Diff: 382 lines (+286 / -96) across 4 files Reviewer: mzdluo123 Review duration: 1010m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.48 · 382 lines diff across 4 files
    0.48
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.356
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #477"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 48.0% (MEDIUM) · Higher = larger blast radius
    48.0%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.9% · Safe to merge
    18.9%