Skip to content

fix(ios): keep pinned chats from jumping in the sidebar at startup - #207479

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/ios-sidebar-startup-pins
Nov 28, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/ios-sidebar-startup-pins

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

When the iPhone sidebar opens during the first connection, applying pin order to the recent cache can make a conversation move from Sessions to Pinned, then move again when the full list arrives.

User Impact

While the first connection loads, Pinned and Sessions keep their real headings, and each list shows quiet placeholder rows in place of the chats: 3 under Pinned and 4 under Sessions. Each placeholder sits where a chat title will appear and is as tall as the title's capital letters. When both inputs are ready, the real chats fade in on the same lines, so neither the headings nor the page shortcuts move. The placeholders do not animate, and Reduce Motion skips the fade. Page shortcuts remain usable. Offline, or between reconnect attempts, saved conversations are shown instead of placeholders. VoiceOver announces loading once, rather than reading empty rows.

Why This Change Was Made

Recent chats and the current account's pin order arrive separately. The drawer waits for the first refresh of both, rather than presenting a partial list as complete. The placeholder is built from the list's own parts: the same section header view, the 44-point row, the 10-point text inset and the row spacing. Each bar sits on the baseline of a blank title line in the title font, so it scales with Dynamic Type. The bars use three lengths and the faintest ink that still reads on the sidebar surface in light and dark.

Before / After

These are matched simulator captures of the OpenClaw sidebar during the first connection, with controlled session data. Before is the previous revision of this PR (1d23b287fe76), which showed a spinner. After is 79a4c2af1f74. Light and dark captures use the same viewport and page shortcuts.

Light appearance: the spinner is replaced with the Pinned and Sessions headings over quiet rows.

Dark appearance: the same headings and rows.

Light appearance, annotated: the spinner, then the headings and title-height rows.

Dark appearance, annotated: the spinner, then the headings and title-height rows.

Loading next to loaded. These are the same session area while loading and after the list arrives. Each bar takes the place of a chat title.

Light appearance: placeholder rows next to the loaded list.

Dark appearance: placeholder rows next to the loaded list.

The handoff. These frames come from the rendered sidebar; timestamps are relative to the session refresh.

Light appearance: the chat titles fade in over the placeholders on the same lines.

Dark appearance: the same transition.

🦞 Made with OpenClaw

@clawsweeper

clawsweeper Bot commented Nov 28, 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.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR delays the iOS sidebar’s session sections until the first roster and personal-pin load attempts finish.

Example: Atlas and Almanac are pinned, but the offline cache contains only Atlas and Inbox.

  • Before: Atlas appears under Sessions, moves into Pinned, and shifts again when Almanac arrives.
  • After: Loading sessions remains visible until both pins and Inbox can appear together.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, apparently correct repair with inspected visual regression evidence; confidence is limited to a controlled simulator harness and source review because native CI is skipped.
Proof confidence 🦐 gold shrimp (3/6) The contributor proof gate is exempt; inspected screenshots exercise the real RootSidebar view in an iPhone simulator with controlled cached rows, personal pins, and roster completion, rather than a shipped app connected to a live Gateway.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Pinned conversations change section and position while the user opens the sidebar during startup.
Reason: This focused repair preserves the sidebar feature owner’s existing design and prevents unstable tap targets; the maintainer-authored direction needs no additional product decision.

Regression provenance

Regression provenance — verified: source commit 995d9bdc18f0 by Vyctor H. Brzezowski; canonical PR #206666 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: it addresses a current startup rendering defect, and source review found no actionable introduced bugs.

Reviewed head: 1d23b287fe76954cde02ba628398ff4870b3b99c

Before merge

None.

Findings

None.

Agent review details

How this fits together

RootTabs starts sidebar refreshes; RootSidebarModel combines the session roster with personal-pin readiness, and RootSidebar renders page shortcuts and session sections.

flowchart TD
  A[RootTabs lifecycle] --> B[RootSidebarModel refresh]
  C[Cached and live session roster] --> B
  D[Personal pin preferences] --> B
  B --> E[Initial load readiness]
  E --> F[RootSidebar session sections]
  G[Page shortcuts] --> F
Loading

Technical review

Best possible solution:

Keep initial roster and pin readiness in RootSidebarModel and reveal the existing session sections together while preserving offline access.

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

Current-main source exposes cached rows before personal pins and the full roster settle; the supplied simulator comparison reports base failures and shows the resulting movement, but no target code was executed during this review.

Is this the best way to solve the issue?

The change fixes the join at the existing refresh owner, removes the separate caller-side pin refresh, and preserves failure fallback and offline access without adding persistent state.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 995d9bd adds apps/ios/Sources/RootSidebar.swift:335 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 995d9bdc18f0; files: apps/ios/Sources/RootSidebar.swift)
  • Marvinthebored: Raw commit c0f1ba6 adds apps/ios/Sources/RootSidebarModel.swift:327 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c0f1ba6ba443; files: apps/ios/Sources/RootSidebarModel.swift)
  • Peter Steinberger: Raw commit 0fff74c adds apps/ios/Sources/RootSidebarModel.swift:100 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0fff74c800ed; files: apps/ios/Sources/RootSidebarModel.swift)

PR surface

Source +37, Tests +72. Total +109 across 4 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 3 70 33 +37
Tests 1 72 0 +72
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 142 33 +109

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production +70/−33 lines; tests +72/−0 lines Growth supports connection-scoped readiness, reuse of the existing loading row, and a rendered startup regression covering distinct intermediate states.

Labels

Label changes:

No label changes.

Label justifications:

  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • 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.

Reviewed November 28, 2026, 6:08 AM ET / 11:08 UTC.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 28, 2026 19:08
@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) November 28, 2026 21:21
@vyctorbrzezowski
vyctorbrzezowski merged commit 7a5083c into main Nov 28, 2026
65 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/ios-sidebar-startup-pins branch November 28, 2026 21:23
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 29, 2026
…penclaw#207479)

* fix(ios): keep pinned chats from jumping in the sidebar at startup

* improve(ios): show quiet session placeholders while the sidebar connects

* improve(ios): draw the sidebar loading state as the list without its text

* fix(ios): format the sidebar session skeleton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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