Skip to content

refactor(ios): stop loading retired Overview data - #208795

Merged
vincentkoc merged 3 commits into
mainfrom
refactor/ios-retired-sidebar-dashboard-20261130
Nov 30, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
refactor/ios-retired-sidebar-dashboard-20261130

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Closes #208786
Related: #206666

What Problem This Solves

The iOS sidebar still loads monthly cost data for the removed Overview screen. No current UI reads that response, but its request, stored state, decoding types and tests remain. The removed screen also left a token-summary helper with no production caller.

User Impact

The sidebar stops requesting unused cost data. Sessions, personal pins, cron attention and the Usage destination keep their existing behavior. No migration or user action is required.

Why This Change Was Made

The existing cron loader now owns the sidebar's remaining attention read directly. This removes the retired cost models and state, token summary, combined dashboard snapshot and generic request wrapper. Cron pagination, request parameters, timeout, connection checks and retained results after a failed read are preserved.

The five-file change removes 93 production lines net; tests grow by one line net. No shared/public API, permissions, credentials, dependencies or persistence behavior changes.

Evidence

  • Candidate 37618950d1ddc3ced66bdec9991fd064e2024027, based on 0ab74d7d5a2c1f5e818f32a2cf233a121f6d2d31: iOS app build and 82 tests across RootSidebarRosterLoadingTests, RootSidebarModelSessionEventsTests, RootTabsPresentationTests and CronJobsListLiteTests, plus the two affected SidebarStartupPinsTests, passed, zero failed/skipped. The 80 Swift Testing cases took 0.677 seconds; the two upstream reconnect tests took 0.095 seconds on Xcode 27.2 / iOS 26.5.
  • The added test calls the real sidebar refresh with the existing WebSocket fixture. It verifies sessions and cron attention, retained cron results after a malformed response, no cron request while offline, and no usage.cost request. With the two production files restored from the baseline, the same suite failed only at the unwanted cost-request assertion; restoring the candidate passed.
  • Exact-head CI 46353427232 and Periphery 46353427026 passed, including the iOS scan and shared-code intersection.
  • Independent source review and complete local ClawSweeper review passed. Touched SwiftFormat, production SwiftLint and git diff --check passed.
  • Earlier fixture failures are retained in local evidence: the request fixture incorrectly required the archived field, which active-roster requests omit. The fixture now accepts the optional field and retains the existing positive archived-request assertion.

The boundary proof uses a mocked WebSocket. No authenticated live Gateway or latency benchmark was run, and no visual change is claimed. The merged reconnect changes from #208682 are incorporated unchanged; their two affected tests pass. #207462 owns the separate native Usage report.

@vincentkoc vincentkoc self-assigned this Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Pull request received.

ClawSweeper review complete

ClawSweeper finished reviewing this revision.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 30, 2026 04:27
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Nov 30, 2026
@clawsweeper

clawsweeper Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This PR removes retired Overview cost loading and unused token summaries while preserving sidebar cron attention.

Example: A connected iPhone refreshes its sidebar with the Briefing automation in an error state.

  • Before: The refresh requests monthly usage.cost data despite having no display consumer, alongside sessions and cron jobs.
  • After: The refresh loads sessions and cron jobs without requesting usage.cost, and Briefing still contributes to automation attention.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, worthwhile deletion with appropriate regression coverage and no identified defect; runtime evidence is limited to the mocked transport fixture.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is exempt from the contributor proof gate: its reported build and baseline/candidate tests exercise RootSidebarModel.refresh with a mocked WebSocket, without an authenticated Gateway or latency measurement; the inspected screenshots show the earlier redesign rather than this request removal.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: The iPhone performs a recurring Gateway cost read for a screen that no longer exists.
Reason: This maintainer-directed cleanup removes verified unused work and its maintenance surface without changing supported navigation or stored preferences.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR removes a verified unused request still present on main, with no actionable regression found in the introduced diff.

Reviewed head: 37618950d1ddc3ced66bdec9991fd064e2024027

Before merge

None.

Findings

None.

Agent review details

How this fits together

RootTabs periodically refreshes RootSidebarModel, which reads Gateway sessions, personal pins and cron jobs and publishes sidebar rows, search entries and attention indicators; Usage opens its own dashboard route.

flowchart TD
  A[RootTabs refresh] --> B[RootSidebarModel]
  B --> C[Gateway sessions and pins]
  B --> D[Gateway cron list]
  C --> E[Sidebar and Sessions]
  D --> F[Automation attention and search]
  G[Usage destination] --> H[Usage dashboard]
Loading

Technical review

Best possible solution:

Keep cron attention in the existing sidebar loader and remove the retired Overview request, models, state and exclusive tests.

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

Current-main source directly establishes an unused monthly cost request on connected full refreshes; this review ran no target code.

Is this the best way to solve the issue?

The deletion addresses the obsolete producer directly, reuses the existing cron owner and preserves the separate Usage route without new machinery.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Sidebar cost loading and token summary keeps the original intent (0fff74c: The sidebar redesign added Overview data and summary presentation; feat(ios): a sidebar with pins, and Sessions grouped by what needs you #206666 subsequently removed the Overview destination.)
  • Monthly usage calendar and all-agent scope keeps the original intent (fix(apps): scope global usage across configured agents #192646: The native cost request needed all-agent scope, while fix(ios): show recent usage days first #117222 established device-calendar day boundaries; this PR deletes their unused sidebar consumer without replacing the supported Usage destination.)
  • Cron snapshot pagination keeps the original intent (967bd8a: The shared collector consolidated pagination while callers retained their request, timeout and publication responsibilities; those responsibilities remain with the existing sidebar loader.)
  • Off-main payload decoding keeps the original intent (310f410: The decoder moved necessary payload decoding off MainActor; inlining the remaining request retains GatewayPayloadDecoding.decode.)
  • Reconnect roster and pin retention keeps the original intent (0ab74d7: The reconnect repair preserves confirmed rows and pins for the same viewer while loading; this PR retains its refresh and publication logic.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 0ab74d7 adds apps/ios/Sources/RootSidebarModel.swift:413 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0ab74d7d5a2c; files: apps/ios/Sources/RootSidebarModel.swift)
  • Peter Steinberger: Raw commit 967bd8a adds apps/ios/Sources/RootSidebarModel.swift:549 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 967bd8a7261f; files: apps/ios/Sources/RootSidebarModel.swift)
  • Vincent Koc: Raw commit 3c883b1 adds apps/ios/Tests/RootTabsPresentationTests.swift:45 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 3c883b1654bb; files: apps/ios/Tests/RootTabsPresentationTests.swift)

PR surface

Source -93, Tests +1. Total -92 across 5 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 14 107 -93
Tests 3 74 73 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 88 180 -92

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 LOC Production +14/−107 (net −93); tests +74/−73 (net +1) The cleanup removes the unused production path and replaces retired-only tests with coverage through the existing refresh fixture.

Root-cause cluster

Relationship: same_root_cause
Canonical: #208786
Summary: This PR implements the retired Overview data-path cleanup tracked by the linked issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

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

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.

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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ 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 29, 2026, 11:43 PM ET / November 30, 2026, 04:43 UTC.

@vincentkoc
vincentkoc merged commit cf28af7 into main Nov 30, 2026
140 checks passed
@vincentkoc
vincentkoc deleted the refactor/ios-retired-sidebar-dashboard-20261130 branch November 30, 2026 05:02
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Nov 30, 2026
* commit 'b21f557c8fa038ebc1842e204e356eb063aea4c6': (46 commits)
  test(ui): keep real exports in the channel settings distribution mock (#208855)
  test(normalization): preserve inline code in quoted previews (#208857)
  fix(ci): restore adaptive priors across large repository trees (#208838)
  test(agents): cover typography preservation in patch updates (#208851)
  fix(ci): wait for selected agent during model setup proof (#208847)
  fix: keep Telegram topic messages out of Home’s chat history (#208778)
  fix(worktrees): name the session to restore and say agents can't (#208828)
  fix: tell an idle parent when a child result couldn't reach its chat (#208772)
  fix: keep the provider search focused when accounts load (#208780)
  fix(clawrouter): respect permitted speeds on model fallback (#208830)
  fix(ui): show provider rejection details without Markdown escapes (#208829)
  fix: make the cloud worker deletion test reliable across reconnects (#208812)
  fix(update): preserve preparation lock ownership (#207139)
  chore(release): update appcast for 2026.11.12 (#208820)
  fix(android): Talk does nothing when mic access is permanently denied (#206609)
  test(config): preserve media model primaries across repeated edits (#208837)
  fix(browser): use the mock keychain for new headed macOS profiles (#208814)
  fix: start source workers without synchronous filesystem reads in the caller (#208789)
  refactor(ios): stop loading retired Overview data (#208795)
  perf(knowledge): stop repeating write-input schemas in batch and correct tools (#208617)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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.

iOS sidebar still fetches data for the removed Overview screen

1 participant