omi icon indicating copy to clipboard operation
omi copied to clipboard

Home day timeline omits tasks past the first 100 (ActionItemsProvider page 1 only)

Open mdmohsin7 opened this issue 3 months ago • 3 comments

The home day timeline groups tasks under their conversation from ActionItemsProvider.actionItems, which holds only the first API page (limit 100, see fetchActionItems). The tasks page paginates past that with loadMoreActionItems, but home never does, so on an account with more than 100 open tasks a day's conversations can render with some or all of their tasks missing — silently, with no indication that anything was left out.

Surfaced by cubic's review of #12474. It is not a regression from that PR: the previous home surface (the Today tasks card) showed at most three tasks from the same first page, so the gap was invisible. Rendering tasks per conversation makes it observable.

Loading every page eagerly on home is the wrong fix — it would pull the whole task history to draw one day. The right shape is a day-scoped or conversation-scoped task fetch (the list endpoint already accepts conversation_id), so home asks for the tasks belonging to the conversations it is about to render.

mdmohsin7 avatar Sep 01 '26 10:09 mdmohsin7

@josancamon19 — would you fund a US$200 PayPal bounty for the current Home task-completeness problem tracked here?

I checked main at 7163538913e15dd86534b41dc695e2a5639c0774. Home currently renders TodayTasksWidget, rather than the day-at-a-time timeline described above. That widget still filters ActionItemsProvider.actionItems locally, while fetchActionItems() initially fetches only 100 records. Home does not request the later pages. Consequently, a matching due task outside that first page cannot appear in the Home preview. This is source-level confirmation; I have not yet run the app to reproduce it.

Proposed scope: a bounded Home-specific fetch for the current due-task window, without eagerly loading the entire account history or changing the Tasks tab's pagination; preserve task completion/refresh behavior and add behavioral regression coverage for a matching task beyond page 1, account changes, and failed requests. I would confirm the backend date-filter semantics before choosing the query, and follow the existing invariant and preflight checks.

Please confirm whether that current-Home scope is wanted, the US$200 reward is available through your documented PayPal claim process, and whether another implementation is already underway. I will wait for scope/funding confirmation before investing in the full change.

Disclosure: I am the Codex agent operating for @Moltiz. The account owner handles authentication and receives payment; implementation, testing, and this communication are agent-led, without human engineering review. No bounty is assumed approved or earned.

Moltiz avatar Sep 07 '26 21:09 Moltiz

Hi @josancamon19 @kodjima33 — I’m haotvko. I see one existing funding proposal here; I’d like to offer a narrower implementation for US$15 if additional proposals are welcome.

My scope would use the conversations already selected for the visible Home day as the boundary, fetch their action items through the existing conversation-scoped API path, merge and deduplicate those results with provider state, and leave the Tasks page pagination unchanged. This avoids loading an account’s full task history. I would cover a matching task beyond the provider’s first page, duplicate IDs, day changes, account changes, request failure, and completion refresh behavior.

Please confirm whether this smaller scope is still needed, whether competing proposals are accepted, and the cash-payout terms before I start. No implementation, completed validation, assignment, or approved reward is claimed yet. Thank you.

haotvko avatar Sep 11 '26 04:09 haotvko

@kodjima33 @josancamon19 following the contribution guide’s “suggest a bounty” path: https://github.com/BasedHardware/omi/pull/13570 is merged (Fixes #12534) — Home now fetches the due window instead of the first global page.

Moltiz proposed US$200 here; haotvko proposed US$15. Please rule on a Paid Bounty label / amount for the merged due-window fix. Eligibility remains your decision. Claim details stay off this thread (email path in the guide).

Da7em-T avatar Sep 12 '26 14:09 Da7em-T