Repository navigation
feat(android): use both fold planes for tabletop chat - #140802
Conversation
Keep the reader and conversation status above the hinge and the existing composer below it, with measured fit and state-preserving fallback. Fence drawer row gestures across viewport relocation. Related: #140708
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 7, 2026, 12:50 AM ET / 04:50 UTC. ClawSweeper reviewWhat this changesAndroid Chat places the conversation above a horizontal hinge and the composer below it when space permits, preserves interaction state during fallback, and cancels stale sidebar row gestures after relocation. Merge readiness⛔ Blocked before merge - 2 items remain This remains a useful, distinct implementation of the Android tabletop slice. Current main still uses one safe region for horizontal folds; no concrete introduced correctness or security defect was found. Priority: P2 Review scores
Verification
How this fits togetherAndroid’s layout host receives window geometry, fold features, and keyboard insets. It allocates safe space to navigation, the chat transcript, and the composer while their existing state owners remain alive. flowchart TD
A[Window and fold features] --> B[Safe pane selection]
B --> C[Chat space after keyboard insets]
C --> D{Both panes fit?}
D -->|Yes| E[Conversation above and composer below]
D -->|No| F[Single safe region]
B --> G[Sidebar placement and gesture cancellation]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +662, Docs +12, Other +328. Total +1002 across 13 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one retained reader/composer flow with geometry-based pane allocation and automatic safe fallback, while leaving separate-window adaptation in the existing tracker. Do we have a high-confidence way to reproduce the issue? Not applicable as a new layout capability; current-main source confirms that horizontal folds still allocate one safe region. Is this the best way to solve the issue? Yes. Reusing the existing state owners and safe-region selector avoids a competing chat implementation, and the added tests target the relevant layout transitions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b0b2e60482d8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Addressed the capture-inspection request for All three linked originals have now received a second visual and sanitization inspection. The before image shows the previous upper-only layout; the after image shows the reader/status above and composer below; the Gboard image shows the intended upper safe-region fallback without keyboard overlap. The partially clipped earlier history row is inside the scrolled transcript viewport. The images do not independently establish transition continuity or physical-device behavior. Anonymous IPv4 downloads on September 7, 2026, at 04:43:14-17 UTC returned HTTP 200 and matched the inspected originals:
The captures contain synthetic app content, no visible private identifiers or credentials, and no PNG text/EXIF metadata. No source change or replacement upload was needed. The PR's existing native-proof limits remain unchanged. |
|
Merged via squash.
|
* feat(android): split tabletop chat across fold panes Keep the reader and conversation status above the hinge and the existing composer below it, with measured fit and state-preserving fallback. Fence drawer row gestures across viewport relocation. Related: openclaw#140708 * docs(android): describe tabletop fit and state continuity
Related: #140708
What Problem This Solves
Chat currently puts both the conversation and composer on one side of a horizontal fold, leaving the other plane unused. Opening the keyboard further constrains that shared space.
Why This Change Was Made
Use a certified pair of horizontal fold panes: conversation header, transcript, and status above; the existing composer below. The same reader, editor, disclosure, and capture-state owners survive layout changes. Both panes must fit their actual text and controls; insufficient space uses the existing safe-region fallback.
The containing drawer remains in a safe region. Row gestures that started before its viewport moved cannot reorder or pin an item after relocation. Remaining separate-window menus and sheets are tracked separately.
User Impact
Evidence
git diff --checkpassed; the repository formatter excludesapps/.82bea9481e839e50a84a4e0cd2326291558d2265, with signature and installed hash verified. The final follow-up commit changes only README text.Before: conversation and composer share the upper plane.
After: conversation above, retained draft and composer below.
Real Gboard: the lower plane is too short, so Chat uses the safe upper fallback.