[GH-ISSUE #1297] [Issue]: Inventory has no "remove item" button — clearing an AI-added stack requires pressing "-" once per unit (regression) #639

Closed
opened 2026-10-20 17:31:08 +07:00 by bsakaguchi · 1 comment
Owner

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

  1. In a GM game, have the AI add a large quantity of an item (e.g. x500).
  2. Open the inventory and try to remove that item.
  3. Observe the only option is the "-" button, which decrements by one; there is no
    remove/delete-stack action.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: not provided
  • Run mode: not specified
  • OS + version: not specified
  • Node + pnpm versions: not provided
  • Rust version, if relevant: not provided
  • Remote Runtime URL configured? not specified
  • Provider, model, or integration, if relevant: not relevant

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.tsx exposes onIncrementItem
and onRemoveItem, but onRemoveItem is wired to the "-" (Minus) control as a
decrement-by-one (handleDecrement, ~L166-177, used at ~L329-332). There is no
action 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:

  • I DID NOT read this template and provide the requested details.
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 1. In a GM game, have the AI add a large quantity of an item (e.g. x500). 2. Open the inventory and try to remove that item. 3. Observe the only option is the "-" button, which decrements by one; there is no remove/delete-stack action. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [x] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: not provided - Run mode: not specified - OS + version: not specified - Node + pnpm versions: not provided - Rust version, if relevant: not provided - Remote Runtime URL configured? not specified - Provider, model, or integration, if relevant: not relevant ## 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.tsx` exposes `onIncrementItem` and `onRemoveItem`, but `onRemoveItem` is wired to the "-" (Minus) control as a decrement-by-one (`handleDecrement`, ~L166-177, used at ~L329-332). There is no action 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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:31:08 +07:00
  • closed this issue
  • added the
    client
    bug
    labels
Author
Owner

@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.

<!-- gh-comment-id:4555717531 --> @SpicyMarinara commented on GitHub (May 27, 2026): Fixed on refactor in 8058f66dd4affb1e74e4bdbce3b7d4580554fb9b: 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#639
No description provided.