Repository navigation
fix(ios): keep pinned chats from jumping in the sidebar at startup - #207479
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: passed. What this changesThis 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.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source 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: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRootTabs 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
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +37, Tests +72. Total +109 across 4 files. Added test files: 1. View PR surface stats
Preflight sourceSource 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
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 28, 2026, 6:08 AM ET / 11:08 UTC. |
|
Merged via squash auto-merge.
|
…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
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 is79a4c2af1f74. Light and dark captures use the same viewport and page shortcuts.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.
The handoff. These frames come from the rendered sidebar; timestamps are relative to the session refresh.
🦞 Made with OpenClaw