Files
benilla-octo/crates/benilla-app
gromandClaude Opus 5 fff48cd75c The sell-junk diagnostic sat behind the gate that fails
He hit sell junk again and the log said nothing — not because the sweep had
nothing to report, but because the sweep never ran.

pfUI's Sell Grey Items button is `if GetNumJunkItems() <= 0 then return end`
and only then SellAllJunkItems (modules/autovendor.lua). That is the one path
he clicks, so a zero count ends the click there. Last session's instrument
lived inside SellAllJunkItems, downstream of the thing that was answering
zero, and it could not be reached.

Both now share one junk_survey of the carried bags, so the count and the
sweep can never disagree about what they are looking at, and each says its
half:

  GetNumJunkItems, when it answers zero while occupied slots have no resolved
  quality, says so and names them — a truthful zero stays silent;
  SellAllJunkItems says what it queued as well as what it could not judge;
  and ui_merchant's drain now warns, rather than debugs, when a queued slot
  resolves to no item guid. That was the last silent place the click could
  die, and debug does not reach his log.

So whichever of the three branches is at fault, his next click answers it.

Also checked and cleared on the way: the drain's slot.saturating_sub(1) is
right — the feed keys container slots 1-based.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SgstFWtn1RxEJ5kVrpgYwn
2026-10-29 09:36:04 -06:00
..