Skip to content

feat(android): use both fold planes for tabletop chat - #140802

Merged
vincentkoc merged 2 commits into
mainfrom
feat/android-fold-tabletop-20260907
Sep 7, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
feat/android-fold-tabletop-20260907

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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

  • Read on the upper plane and compose on the lower plane in tabletop posture.
  • Keep the draft, cursor, and reading state when folding, rotating, or opening the keyboard.
  • Use larger text without clipping the complete input line or losing the action row.
  • Return to the split when both planes have enough usable space again.

Evidence

  • 132 focused and sibling tests passed, including real RootScreen placement, pixel-boundary fit, larger text, native inset delivery, composing range, Details/Jump behavior, and stale drawer gestures. Original lower-plane and stale-action failures were reproduced before repair.
  • Ordinary Android lint, actual changed-file checks, and independent P2 review passed. README sanity and git diff --check passed; the repository formatter excludes apps/.
  • Genuine debug APK built from 82bea9481e839e50a84a4e0cd2326291558d2265, with signature and installed hash verified. The final follow-up commit changes only README text.
  • API 36 fold emulator: tabletop, flat, book, and cover-screen transitions retained the draft. Real Gboard triggered the safe fallback; dismissing it restored the split. Input continued without retapping the editor. Manual reading remained off-tail across rotation, and the modal drawer stayed in the upper safe plane.
  • Synthetic Chat fixture only. No live Gateway, send/abort, camera, active recording, or physical-device certification. JVM gesture and owner checks are not presented as native active-capture proof.

Before: conversation and composer share the upper plane.

Before: Chat and its composer share the upper plane

After: conversation above, retained draft and composer below.

After: tabletop conversation and composer use separate planes

Real Gboard: the lower plane is too short, so Chat uses the safe upper fallback.

Keyboard-open fallback keeps the complete composer reachable

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
@vincentkoc vincentkoc self-assigned this Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android size: XL maintainer Maintainer-authored PR labels Sep 7, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 7, 2026 04:42
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 12:50 AM ET / 04:50 UTC.

ClawSweeper review

What this changes

Android 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
Reviewed head: ffd247ebc0dec9b9ef9c2f36caa68609a10bf4d2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent implementation with meaningful transition coverage and reported native emulator evidence; no actionable patch defect was found.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its captured body reports the changed chat layout running in an API 36 emulator with real Gboard fallback and restored split; linked captures were unreachable here, and active capture or live Gateway behavior is expressly outside the proof claim.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its captured body reports the changed chat layout running in an API 36 emulator with real Gboard fallback and restored split; linked captures were unreachable here, and active capture or live Gateway behavior is expressly outside the proof claim.
Evidence reviewed 9 items Pinned change ownership: The inspected merge-base-to-head delta contains the Android changes identified by the host. The supplied verified test merge preserves the separate base-branch changes; those changes were not attributed to this PR.
Current main still lacks tabletop allocation: The current-main host supports book panes but otherwise selects one fold-safe region. Its README explicitly describes the tabletop transcript/composer split as not adapted.
Measured fallback and stable content slots: The layout intersects physical pane bounds with the post-inset host, checks width and text/control height floors, and retains one subcomposition for header, transcript, status, and composer. Existing send and capture callbacks are unchanged apart from relocation.
Findings None None.
Security None None.

How this fits together

Android’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]
Loading

Before merge

  • Resolve merge risk (P1) - The supplied before/after and Gboard captures could not be retrieved in this environment, leaving visual and sanitization inspection incomplete.
  • Complete next step (P2) - Inspect the already-linked before/after and Gboard captures for layout correctness and sanitization before landing; this reviewer could not retrieve them.
Agent review details

Security

None.

PR surface

Tests +662, Docs +12, Other +328. Total +1002 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 691 29 +662
Docs 1 19 7 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 9 775 447 +328
Total 13 1485 483 +1002

Review metrics

Metric Value Why it matters
Production versus test growth Net production +328 lines; tests +662 lines Production growth implements pane allocation and gesture fencing; regression coverage exercises geometry and interaction continuity.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one retained reader/composer flow with geometry-based pane allocation and automatic safe fallback, while leaving separate-window adaptation in the existing tracker.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This is a bounded Android foldable usability improvement with an existing single-region fallback.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its captured body reports the changed chat layout running in an API 36 emulator with real Gboard fallback and restored split; linked captures were unreachable here, and active capture or live Gateway behavior is expressly outside the proof claim.

Label justifications:

  • P2: This is a bounded Android foldable usability improvement with an existing single-region fallback.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor gate does not apply to this MEMBER-authored PR. Its captured body reports the changed chat layout running in an API 36 emulator with real Gboard fallback and restored split; linked captures were unreachable here, and active capture or live Gateway behavior is expressly outside the proof claim.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc

Copy link
Copy Markdown
Member Author

Addressed the capture-inspection request for ffd247ebc0dec9b9ef9c2f36caa68609a10bf4d2.

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:

Capture SHA-256
Before 183843d27ff9582175085d6b3129126b98655ad926166a2a20617097319371bd
After 6b72c4db7e7a4314e90e22c5963a7162e3efdb4eb515da622da8b71300bdd876
Gboard fallback f3d0c455149228bf7957cd1c3362f1307d794e66790fe860608eca92e6a1346d

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.

@vincentkoc
vincentkoc merged commit fd5c985 into main Sep 7, 2026
116 checks passed
@vincentkoc
vincentkoc deleted the feat/android-fold-tabletop-20260907 branch September 7, 2026 05:04
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant