Repository navigation
fix(ui): show starting branch for cloud sessions - #152010
Conversation
|
🦞👀 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: needs maintainer review before merge. Reviewed September 18, 2026, 2:08 PM ET / 18:08 UTC (Revision 2). ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +9, Tests +16, Docs 0. Total +25 across 7 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
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]>
c5a273c to
e9c4db1
Compare
|
Merged via squash.
|
* 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]>
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
After
Worked on by
Work sessions
View the OpenClaw team session