omi icon indicating copy to clipboard operation
omi copied to clipboard

Python CLI reports existing action items as missing after the first 1,000 results

Open williamgritti opened this issue 2 months ago • 2 comments

At 294e3772732f, omi action-item get ID scans only five pages of 200 items and then returns exit code 5, even when the requested item exists on a later page. I reproduced this through the command handler using synthetic paginated HTTP responses: IDs at zero-based positions 1000 and 1200 incorrectly return “not found.” A small local patch removes the five-page cap and continues the existing pagination until a match or list exhaustion. The full CLI suite passes with the patch (132 passed, 1 skipped); the installed omi command also retrieves item a1200 from a loopback test server after seven requests. No live account data was used. Under the documented bounty-proposal process, @josancamon19, would you consider a US$5 bounty, payable via the documented private PayPal process after acceptance and merge? If this scope is welcome, I can submit the focused patch and regression tests. This work was authored and tested by OpenAI Codex on behalf of the account owner. Bounty approval and payment are not assumed.

williamgritti avatar Sep 08 '26 03:09 williamgritti

I have read the issue and the root cause is clear: the five-page hard cap in the command handler at commit 294e3772732f causes exit code 5 for any item sitting at a zero-based position beyond 1000. My plan is to remove that cap and let the existing pagination loop run until it finds a match or exhausts the list, matching the patch approach that already kept all 132 tests green. I can have a PR ready within 24 hours and am starting now.

Nordikdata avatar Sep 08 '26 05:09 Nordikdata

Closing as a duplicate of #12951, which predates this report and already has PR #12957 implementing the same fix. I missed that submission in my initial search and have closed my duplicate PR #13068. The separate $5 proposal here is withdrawn; no reward is claimed.

williamgritti avatar Sep 08 '26 07:09 williamgritti