Skip to content

Tags

Tags

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was signed with the committer’s verified signature.
yagi2 Itsuki Aoyagi
fix: drain remaining rows once every unique item is fetched

User report: a retainer with 20 listings of the same item triggers 1
real fetch, then opens the sell dialog 19 more times only to skip
each as a duplicate. Slow + visually noisy.

StartFetchMarketPricesForRetainer now also computes the snapshot's
distinct (itemId, hq) count up front and stores it in
totalUniqueFetchTargets. Each TickFetchAwaitingSellListAfter checks
whether fetchedThisSession has reached that target; once it has,
every remaining action in the queue is dequeued in a single tick
(CompletedActions still incremented for accurate progress) instead
of being walked one-by-one.

So: 20 listings, all the same item, no second dialog open. The
behaviour for a multi-item retainer is unchanged — totalUniqueFetchTargets
matches the actual unique count and we keep walking until we hit it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>