feat(mobile): paginate agent session history#4562
Conversation
…n-message-pagination
…n-message-pagination
…n-message-pagination
…n-message-pagination
…n-message-pagination
Code Review SummaryStatus: 3 Issues Found | Recommendation: Address before merge Executive SummaryThe generation-based staleness guard in Overview
Issue Details (click to expand)CRITICAL
WARNING
Files Reviewed (37 files)
Fix these issues in Kilo Cloud Reviewed by claude-sonnet-5 · Input: 54 · Output: 20.2K · Cached: 3M Review guidance: REVIEW.md from base branch |
|
@kilocode-bot please re-review the latest head |
|
To use Kilo from GitHub you first need to link your GitHub account to Kilo. Link your Kilo account to continue. After linking, mention me again in this issue or pull request. |
…n-message-pagination
|
@kilocode-bot New link please. |
|
To use Kilo from GitHub you first need to link your GitHub account to Kilo. Link your Kilo account to continue. After linking, mention me again in this issue or pull request. |
…n-message-pagination
…n-message-pagination
…n-message-pagination
…n-message-pagination # Conflicts: # apps/mobile/src/components/agents/session-detail-content.tsx # apps/web/src/lib/cloud-agent-sdk/session-manager.ts
…n-message-pagination
|
(bot) @kilocode-bot please review the latest head |
…n-message-pagination
Re-review @
|
|
The re-review has already been posted to the PR — approved, all three prior findings (critical generation-guard no-op, and two auto-scroll warnings) confirmed fixed at head |
…n-message-pagination
…n-message-pagination # Conflicts: # apps/mobile/src/components/agents/session-detail-content.tsx
Summary
Verification
apps/mobile: 816 tests, typecheck, lint, format check, and unused-code check passapps/web: 334 focused session manager, transport, client, and router tests plus typecheck, lint, and format check passservices/session-ingest: 123 focused tests plus typecheck, lint, format, and diff checks passBackend-integrated mobile E2E
A temporary, uncommitted local-only harness seeded normal PostgreSQL session metadata plus the matching real
SessionIngestDOSQLite/R2 state. Mobile continued to use the production path: mobile -> tRPC -> authenticated session-ingest/messages-> Durable Object. The harness and all fixture data were removed after verification;git diff --exit-codeis clean.Passed on iOS with a validated cached development build and exact worktree Metro provenance:
Couldn't load earlier messages.plus Retry; restoring that exact body and tapping Retry reused the cursor, removed the banner/CTA, and prepended the resolved pageEarlier messages aren't available.rendered with no Retry CTAEarlier messages are too large to load.rendered with no Retry CTA2 earlier items from this session could not be displayed.rendered with no Retry CTANo messages yetandSend a message below to get started.rendered with no Retry CTACleanup verified: all six sessions were deleted through the normal authenticated DELETE route, referenced R2 bodies were cleared by the DO, the worktree stack was stopped, the simulator was released, and no generated fixture remains.