mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1297] [Issue]: Inventory has no "remove item" button — clearing an AI-added stack requires pressing "-" once per unit (regression) #639
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#639
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GetBeholder on GitHub (May 26, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1297
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The game inventory only supports decrementing an item by one at a time. If the AI
adds a large stack (e.g. x500 of an item), removing it requires pressing the "-"
button 500 times. A "remove item" button (clear the whole stack) would solve this.
This is a regression: a remove button previously existed but was dropped when the
inventory was reworked to let the AI use built-in item counts.
Expected behavior
The inventory should provide a way to remove an item entirely (delete the stack /
set quantity to zero) in one action, in addition to the increment/decrement-by-one
controls.
Actual behavior
Only increment (+) and decrement-by-one (-) controls exist. Removing a large
AI-added stack requires pressing "-" once per unit (e.g. 500 presses for x500).
Steps to reproduce
remove/delete-stack action.
Impact area
Environment
Logs, screenshots, or video
None provided.
Regression notes
Confirmed regression. A remove button previously existed; per the reporter it was
removed when the inventory was reworked to let the AI better use built-in item
counts. Maintainer Marinara [MARI] confirmed in-thread ("We had a remove button,
what. Was it removed?" → "Oh, oof, I must have missed that. I will add.").
Additional context
Source: forum thread by drakonbane (3-Star), 5/24/26 3:28 AM, with maintainer
Marinara [MARI] confirming the regression and committing to restore the button.
Triage pointer (from a scan, not from the reporter):
src/features/modes/game/components/GameInventory.tsxexposesonIncrementItemand
onRemoveItem, butonRemoveItemis wired to the "-" (Minus) control as adecrement-by-one (
handleDecrement, ~L166-177, used at ~L329-332). There is noaction to remove the entire item/stack in one step. Restoring a "remove item"
control would add a delete-stack action (e.g. set quantity to 0) alongside the
existing decrement, wired through the game inventory API
(
src/features/modes/game/api/game-api.ts).Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (May 27, 2026):
Fixed on refactor in
8058f66dd4: Game inventory now has a remove-stack action with a trash control, updating visible inventory, detailed player stats, journal entries, and notifications. Validated with pnpm check.