Skip to content

improve: group New Session agent and workspace controls - #175255

Merged
roboclaw-bot merged 5 commits into
mainfrom
openclaw/mobile-ui-setup-2a
Oct 17, 2026
Merged

roboclaw-bot merged 5 commits into
mainfrom
openclaw/mobile-ui-setup-2a

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes: New Session repeats the agent identity among placement controls and can wrap the checkout away from its repository on a phone.

User Impact

Choose the agent from the welcome name and see repository and checkout together. The machine remains separate, and both workspace controls still open their existing independent pickers. Single-agent and specialized placement flows retain their behavior.

Why This Change Was Made

Implements approved preview 2A using the existing selection and state owners, not a combined menu. Current-checkout/new-worktree semantics, disabled and pending states, native-terminal, hosted, device-folder, non-Git and required-placement paths remain intact. Draft, incognito and composer behavior is unchanged.

Worked on by

Work sessions

Evidence

  • Merged as 93a965f87a9b82aaf6fb4bb2c1093ca5a856a0e7 from reviewed head 05456e54ec7dfe55e1951549af6a6a4835253a8f, verified through native recovery and main ancestry.
  • Exact-head CI 39017340596: success, all 57 jobs terminal, no failures; 586 seconds workflow elapsed. Ordinary completed-evidence admission was used, with no CI bypass.
  • Focused actual bundled UI/Gateway-fixture E2E: 16/16 pass, 33.08 seconds Vitest. Earlier focused placement siblings, UI typecheck, lint/stylelint, format, raw-copy/i18n and whitespace proof is retained for the unchanged product patch.
  • Fresh independent reviews covered the complete UI source and its pointer-dismissal test correction. Subsequent integrations preserved all seven UI product/test files byte-for-byte; the final PR contains no process-fixture delta.
  • The approved setup flows also passed in WebKit 27.2 at 320, 390 and 1280 pixels, using exact compiled app assets and the existing mock Gateway. This is not a live Gateway transport or native iOS Safari/device test.
  • Actual matching-draft before/after captures below were inspected, delivered in the originating chat, and verified rendered in this PR at their exact attachment IDs. Production components and synthetic fixtures are used, not the earlier concept HTML.

Current checkout — 390 × 844

Before After
Before: mobile current checkout After: mobile current checkout

New worktree — 320 × 900

Before After
Before: narrow mobile worktree After: narrow mobile worktree

Desktop — 1280 × 900

Before After
Before: desktop setup After: desktop setup
CI repair history and earlier non-passing checks
  • The first UI E2E failure clicked the now screen-reader-only heading. The test was retargeted to the visible, noninteractive avatar while retaining after-hide, retained-name and session-creation assertions; selected replay passed 7/7.
  • An unrelated stale link-reader test import on main was reproduced and repaired in #175297, merged as 6249e5b5051bc3a18f6d5d40d50769b478fb0503.
  • A later inherited mock-export ratchet failure was independently reproduced on its exact main baseline. An inherited-exception route was not used. Main independently landed its fixture qualification in 98375d4b624; the resulting overlap was resolved by adopting that main fixture verbatim and removing the redundant local fixture change. No baseline expansion, assertion weakening or production workaround remains in this PR.
  • An earlier broad local changed-check run reported whole-tree max-lines and unused-export diagnostics in untouched files. Those historical results were preserved, not hidden with skip flags or reported as passing; the final normal hosted gates passed. A missing already-declared dependency was restored through frozen installation only in the isolated task-owned checkout.

View the OpenClaw team session

Move the existing agent menu into the welcome identity and keep repository and checkout pickers together without changing their selection owners.

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 17, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review October 17, 2026 06:46
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR moves agent selection into the welcome identity and groups repository and checkout controls while preserving their independent pickers.

Example: Start a session at 390 × 844 with agent Roboclaw, repository openclaw, and checkout main.

  • Before: Roboclaw appears twice, and main wraps onto a separate placement row.
  • After: The welcome name selects the agent, while openclaw and main stay visually grouped.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Approved, focused presentation change with directly inspected visual proof and the previous actionable finding resolved; current-head CI remains pending.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after screenshots show actual production UI components with a synthetic Gateway at 390 × 844 and 320 × 900, covering current checkout and new worktree; the latest correction changes tests only.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: The placement strip repeats the agent identity and can separate a checkout from its repository on phones.
Reason: The collaborator-authored direction is approved, and the inspected comparisons show clearer grouping without adding a competing picker or selection owner.

Merge readiness

✅ Ready for maintainer review

Keep this PR open for the approved layout improvement; the earlier placement-test finding is resolved, and no actionable defects remain in the reviewed changes.

Priority: P3
Reviewed head: 75f8d8d6bc13933fb515744e9ca805c1080643fd

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI New Session page presents Gateway-backed agent and placement choices, then passes selections through the existing draft and submission owners.

flowchart TD
  A[Gateway facts] --> B[New Session owner]
  B --> C[Welcome agent picker]
  B --> D[Machine control]
  B --> E[Repository and checkout pickers]
  C --> F[Draft selection owners]
  D --> F
  E --> F
  F --> G[Session submission]
Loading

Technical review

Best possible solution:

Retain the approved grouping and corrected placement coverage while the existing current-head CI gates complete.

Do we have a high-confidence way to reproduce the issue?

The original rendering and matched mobile screenshots establish the repeated identity and separated checkout; no target code was executed during this review.

Is this the best way to solve the issue?

Reusing the existing agent, repository, and checkout owners is a focused implementation of the approved design, and the test correction preserves the behavior previously covered.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 85cd5b0105ca.

Provenance checked

  • Agent selection and shared welcome identity changes intended behavior with a stated reason (74c7b3d: The Solid migration preserved existing placement and selection behavior; refactor(ui): render chat welcome and context controls with Solid #173354 subsequently preserved shared welcome appearance and ownership.)
  • Compact mobile placement layout changes intended behavior with a stated reason (9942960: Keep setup compact above the writing surface with retained pickers and truncated long values; this PR explicitly adopts approved grouping while preserving selection semantics.)
  • Picker reference and focus ownership keeps the original intent (a5959e0: Mounted New Session views own picker references rather than searching their markup, as documented in refactor(ui): simplify plugin and new session ownership #174946.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source +117, Tests +46. Total +163 across 7 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 5 164 47 +117
Tests 2 63 17 +46
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 227 64 +163

Review metrics

Metric Value Why it matters
Production versus test changes Production +164/-47; tests +63/-17 The production growth supplies the identity slot and grouped layout while reusing existing picker and selection owners.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a bounded layout and discoverability improvement with no established urgent runtime failure.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-17T07:03:40.808Z sha b7db097 :: needs changes before merge. :: [P2] [P2] Retarget the placement test's outside click to visible content

Reviewed October 17, 2026, 3:15 AM ET / 07:15 UTC (Revision 2).

Use the visible avatar for outside-pointer dismissal instead of the screen-reader-only heading, retain sibling-menu and placement assertions, and settle responsive geometry before measuring containment.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 17, 2026
@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) October 17, 2026 07:17
@roboclaw-bot
roboclaw-bot disabled auto-merge October 17, 2026 07:19
roboclaw-bot and others added 3 commits October 17, 2026 07:44
Integrate the landed link-reader import repair for failed CI run 39012581590. The approved mobile product patch is unchanged.

Co-authored-by: vincentkoc <[email protected]>
Repair the inherited mock-export ratchet while leaving synthetic-process scheduling mocked. Assertions, baselines, and production files are unchanged.

Co-authored-by: vincentkoc <[email protected]>
Adopt the independently landed main fixture verbatim and remove the redundant local fixture delta. The seven approved UI product and test files remain unchanged; focused UI and mock-export checks pass.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 93a965f into main Oct 17, 2026
88 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/mobile-ui-setup-2a branch October 17, 2026 08:38
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
)

* improve: group New Session agent and workspace controls

Move the existing agent menu into the welcome identity and keep repository and checkout pickers together without changing their selection owners.

Co-authored-by: vincentkoc <[email protected]>

* test(ui): preserve placement proof with selectable welcome identity

Use the visible avatar for outside-pointer dismissal instead of the screen-reader-only heading, retain sibling-menu and placement assertions, and settle responsive geometry before measuring containment.

Co-authored-by: vincentkoc <[email protected]>

* test: preserve reaper exports in process scope fixture

Repair the inherited mock-export ratchet while leaving synthetic-process scheduling mocked. Assertions, baselines, and production files are unchanged.

Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: vincentkoc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: M 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