If anyone else got tired of the gathering loop after a while, if you enable the console using the normal mechanism for RenPy games, the following will set all items you own to their maximum available amount:
Code:
for item in inventory.owned_items_sorted():
inventory.add_dict({item[0]: inventory.get_max(item[0]) - inventory.get_count(item[0]))
Just hit the Up Arrow + Enter to re-run it in the console any time you get a new item or get low on an existing item. You could also try replacing
owned_items_sorted() with
get_items() and it'll count for items you don't own, though not sure if having items you shouldn't yet could cause issues with the game.