Skip to content

fix(ui): show starting branch for cloud sessions - #152010

Merged
roboclaw-bot merged 3 commits into
mainfrom
openclaw/new-worktree-for-cloud-sessions
Sep 18, 2026
Merged

roboclaw-bot merged 3 commits into
mainfrom
openclaw/new-worktree-for-cloud-sessions

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Cloud session setup labels its starting-branch picker “New worktree from main,” exposing a local Git detail instead of the branch choice.

User Impact

Cloud sessions now show From main (or the selected ref), with Starting branch when no ref is selected. Local and paired-device labels, checkout choices, and session creation behavior are unchanged.

Why This Change Was Made

The selected cloud destination already implies an isolated workspace. Apply the shorter label to both Gateway-backed repositories and remote repository sources, without changing worktree or dispatch behavior.

Evidence

Live Crabbox proof used Blacksmith Testbox (tbx_01m2tqtswgda73k2zqdenaazpb), a real isolated Gateway, built Control UI, and registered Git repository. Run.

  • Confirmed cloud main/ref-edit labels, cloud repository-source label, and unchanged local choices before and after. No page errors.

  • New unit cases fail on the original picker (6 expected failures); patched picker: 21/21 passed.

  • Existing cloud-dispatch E2E: 2/2 passed (supplementary mocked-Gateway coverage, separate from the live test).

  • Builds, targeted formatting, i18n baseline/verify, and diff checks passed. Independent P2 autoreview: no actionable findings.

  • Testbox stopped and verified completed. This copy-only proof did not dispatch a cloud session or initiate a model turn.

  • Landing CI exposed a pre-existing main integration mismatch: the quota fixture refreshes for two days, but its later status assertion expected a one-hour expiry warning. This PR restores the correct healthy-status assertion and comment; authentication behavior and all recovery/identity/expiry checks are unchanged. The test-only correction passed independent P2 review.

Before

Cloud session branch picker before: New worktree from main

After

Cloud session branch picker after: From main

Worked on by

Work sessions


View the OpenClaw team session

@clawsweeper

clawsweeper Bot commented Sep 18, 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 September 18, 2026 17:40
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Sep 18, 2026
@clawsweeper clawsweeper Bot added 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: 🐚 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 18, 2026
@clawsweeper

clawsweeper Bot commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 18, 2026, 2:08 PM ET / 18:08 UTC (Revision 2).

ClawSweeper review

What this changes

The PR simplifies cloud-session branch labels, updates documentation and coverage, and corrects a quota-test expectation for refreshed credentials.

Merge readiness

✅ Ready for maintainer review

Keep open: this remains useful UI polish absent from current main, with convincing visual proof and no actionable correctness findings. The quota-test correction matches the existing fixture.

Priority: P3
Reviewed head: e9c4db1e4006ec92879b2fb86255e380822d0a55

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with direct visual proof, relevant regression coverage, and a source-supported test correction.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected before-and-after screenshots from the reported real-Gateway Testbox setup directly show the checkout label changing to “From main.” This covers the production presentation change; the quota addition only corrects an existing test expectation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected before-and-after screenshots from the reported real-Gateway Testbox setup directly show the checkout label changing to “From main.” This covers the production presentation change; the quota addition only corrects an existing test expectation.
Evidence reviewed 9 items Introduced production behavior: The pinned introduced diff changes destination classification and label resolution only. The existing checkout rendering, worktree controls, fresh-workspace visibility guard, and dispatch behavior remain intact.
Current main still uses the previous labels: Fetched main accepts local and remote destinations and chooses the existing worktree or remote-checkout label; it has no cloud-specific label branch.
Latest supplied release also retains previous wording: The v2026.9.4 source has the same local/remote label selection and no cloud-specific starting-branch presentation.
Findings None None.
Security None None.

How this fits together

The Control UI’s New Session page combines the selected destination, repository, and starting ref into checkout controls. These controls display the session’s workspace choices before creation and cloud dispatch.

flowchart LR
  A[Selected destination] --> C[New Session controls]
  B[Repository and starting ref] --> C
  C --> D{Cloud destination?}
  D -->|Yes| E[From branch or Starting branch]
  D -->|No| F[Existing checkout labels]
  E --> G[Existing session creation flow]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +9, Tests +16, Docs 0. Total +25 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 3 11 2 +9
Tests 3 19 3 +16
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 31 6 +25

Review metrics

None.

Technical review

Best possible solution:

Keep branch presentation in the existing checkout component while preserving destination selection, worktree semantics, and session creation.

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

Not applicable as a functional bug: this is label polish, and current-main source plus the inspected before screenshot establish the previous wording.

Is this the best way to solve the issue?

Yes. The existing label resolver is the narrow owner for this change, and the quota assertion matches the fixture without weakening recovery checks.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is bounded wording polish with a test-expectation correction and no changed session execution behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected before-and-after screenshots from the reported real-Gateway Testbox setup directly show the checkout label changing to “From main.” This covers the production presentation change; the quota addition only corrects an existing test expectation.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected before-and-after screenshots from the reported real-Gateway Testbox setup directly show the checkout label changing to “From main.” This covers the production presentation change; the quota addition only corrects an existing test expectation.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected before-and-after screenshots from the reported real-Gateway Testbox setup directly show the checkout label changing to “From main.” This covers the production presentation change; the quota addition only corrects an existing test expectation.

Evidence

What I checked:

  • Introduced production behavior: The pinned introduced diff changes destination classification and label resolution only. The existing checkout rendering, worktree controls, fresh-workspace visibility guard, and dispatch behavior remain intact. (ui/src/pages/new-session/target-controls.ts:110, e9c4db1e4006)
  • Current main still uses the previous labels: Fetched main accepts local and remote destinations and chooses the existing worktree or remote-checkout label; it has no cloud-specific label branch. (ui/src/pages/new-session/checkout-chip.ts:14, cfc9723a15fc)
  • Latest supplied release also retains previous wording: The v2026.9.4 source has the same local/remote label selection and no cloud-specific starting-branch presentation. (ui/src/pages/new-session/checkout-chip.ts:11, 3a9d69db306c)
  • Inspected before-and-after visual proof: Both downloaded PR-body screenshots were inspected. With the same cloud destination and repository selected, the before image displays “New worktree from main” and the after image displays “From main.” The captured body identifies a built Control UI served by an isolated real Gateway on Blacksmith Testbox and links https://github.com/openclaw/openclaw/actions/runs/35372542254. This directly demonstrates the changed presentation; no cloud dispatch claim is needed.
  • Quota expectation follows the existing lifetime: The fixture returns expires_in = 2 * 86_400, while the CLI uses the one-day DEFAULT_OAUTH_WARN_MS threshold. The changed assertion correctly expects “ok” and preserves positive remaining lifetime, recovery, identity, and Ready-state checks. GitHub commit inspection verifies that the two-day fixture change predates this PR. (ui/src/e2e/quota-reset-status.real-gateway.e2e.test.ts:103, ddd5d7c5f636)
  • Dependency inspection signal: The changed quota test calls createQuotaResetFixture, whose default runtime is codex and whose configuration launches @openai/codex app-server. This establishes the dependency signal for inspecting the sibling Codex authentication contract. (test/e2e/qa-lab/runtime/quota-reset.test-support.ts:512, e9c4db1e4006)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Patrick-Erichsen: 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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-18T17:47:13.661Z sha c5a273cb6403769ecd2adb891a8e2d069e2e5c9a :: needs maintainer review before merge. :: none

roboclaw-bot and others added 3 commits September 18, 2026 18:00
Show From <branch> for cloud sessions while preserving local and paired-device checkout controls. Cover both Gateway and repository sources.

Co-authored-by: steipete <[email protected]>
Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 59998094-647c-465f-828e-991bd75aafdd
Reconcile main's two-day refresh fixture with the later stale one-hour expectation. Preserve all recovery, identity, expiry and Ready UI assertions.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot
roboclaw-bot force-pushed the openclaw/new-worktree-for-cloud-sessions branch from c5a273c to e9c4db1 Compare September 18, 2026 18:02
@roboclaw-bot
roboclaw-bot merged commit 3c02c5f into main Sep 18, 2026
164 checks passed
@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 Sep 19, 2026
* fix(ui): show starting branch for cloud sessions

Show From <branch> for cloud sessions while preserving local and paired-device checkout controls. Cover both Gateway and repository sources.

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

* fix(ui): show starting branch for cloud sessions

Worked on by:
- @steipete

Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 59998094-647c-465f-828e-991bd75aafdd

* test(ui): align quota status with refreshed fixture lifetime

Reconcile main's two-day refresh fixture with the later stale one-hour expectation. Preserve all recovery, identity, expiry and Ready UI assertions.

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

---------

Co-authored-by: steipete <[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 docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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