[GH-ISSUE #6387] [Issue]: Inventory Tracker Agent deletes the entire inventory on failed processing #3572

Closed
opened 2026-10-21 06:04:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Sep 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6387

Originally assigned to: @SpicyMarinara on GitHub.

Summary

If Inventory Tracker Agent processing does not complete properly, the entire inventory is deleted.

Expected behavior

An incomplete or improper update should not delete the existing inventory.

Actual behavior

The entire inventory is deleted when processing fails to complete properly.

Steps to reproduce

  1. Use the Inventory Tracker Agent with an existing inventory.
  2. Process an inventory update that does not complete properly.
  3. Observe that the entire inventory is deleted.

Environment

  • Marinara Engine version: 2.4.6 (build 2.4.6+d880db8b4eda)
  • Install type: termux
  • OS + version: Server: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64); Client: Android 16
  • Browser or app shell: MarinaraEngine/Android using WebView, Chrome 153.0.8010.36

Logs, screenshots, or video

OpenRouter logs show confused reasoning about locked fields: "However, we must output all three arrays as per legacy format. Locked rows: we have locked rows?" No screenshots or video provided.

Additional context

Connection provider: OpenRouter. Model: deepseek/deepseek-v4-flash. The reporter notes that Inventory Tracker fields cannot actually be locked. Agent version was not provided in the Discord context.

Discord thread: Inventory Tracker Agent keeps just deleting my wholeass inventory.
Discord thread link: https://discord.com/channels/1417099416812392641/1550980547621167234
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-09-19T21:22:58.378Z] Leytra: Says it all really.
If inventory tracker doesn't complete processing properly, the entire inventory is summarily deleted.

In looking through the actual output of my openrouter logs, the reasoning does a *lot* of confused yapping about locked fields, but you can't actually lock inventory tracker fields, so it's getting lost on something.

Verbatim quote from the reasoning lol:
` ` `However, we must output all three arrays as per legacy format. Locked rows: we have locked rows? ` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980547621167234]

[2026-09-19T21:22:59.019Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980550309838919]

[2026-09-19T21:23:11.536Z] Leytra: Marinara Engine diagnostics
Version: 2.4.6
Build: 2.4.6+d880db8b4eda
Commit: d880db8b4eda
Server OS: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64)
Server memory: heap 1231 / 3936 MiB; RSS 1329.8 MiB
Background wake lock: acquired
Last detected freeze: ~177s suspension, thawed at 2026-09-19T21:16:53.114Z
Previous session: ended without shutting down - last alive 2026-09-19T14:38:54.392Z (up 12h 37m, RSS 1436.3 MiB); device rebooted before next launch: no
Sessions ended without shutdown: 10 recorded
Client OS: Android 16
Browser / app shell: Mozilla/5.0 (Linux; Android 16; Pixel 9 Pro Fold Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Safari/537.36 MarinaraEngine/Android
Client runtime: {"build":"2.4.6+d880db8b4eda","page":"mu8t00j3-kcjgf4ft","persistence":"local","navigation":"navigate","standalone":false,"view":[803,0,0,0],"events":[{"at":1789847519151,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"page-start","view":[803,0,0,0]},{"at":1789847585553,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"message-edited","view":[803,0,0,0]},{"at":1789848452651,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"message-edited","view":[803,0,0,0]},{"at":1789852088001,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"message-edited","view":[803,0,0,0]}]}
GPU: Mali-G715
Active connection: Deepseek
Connection provider: openrouter
LLM model: deepseek/deepseek-v4-flash
Mari last acted on: none recorded this session
[Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980602809946113]

[2026-09-19T21:24:42.087Z] Marinara: >Deepseek
[Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980982608236697]

[2026-09-19T21:24:45.877Z] Marinara: :YeahDude:
[Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980998504906813]

[2026-09-19T21:25:34.147Z] Marinara: Still, improper update shouldn’t delete it.
[Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550981200963960884]

Template check

Please uncheck (untick) 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 @SpicyMarinara on GitHub (Sep 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6387 Originally assigned to: @SpicyMarinara on GitHub. ## Summary If Inventory Tracker Agent processing does not complete properly, the entire inventory is deleted. ## Expected behavior An incomplete or improper update should not delete the existing inventory. ## Actual behavior The entire inventory is deleted when processing fails to complete properly. ## Steps to reproduce 1. Use the Inventory Tracker Agent with an existing inventory. 2. Process an inventory update that does not complete properly. 3. Observe that the entire inventory is deleted. ## Environment - Marinara Engine version: 2.4.6 (build 2.4.6+d880db8b4eda) - Install type: termux - OS + version: Server: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64); Client: Android 16 - Browser or app shell: MarinaraEngine/Android using WebView, Chrome 153.0.8010.36 ## Logs, screenshots, or video OpenRouter logs show confused reasoning about locked fields: "However, we must output all three arrays as per legacy format. Locked rows: we have locked rows?" No screenshots or video provided. ## Additional context Connection provider: OpenRouter. Model: deepseek/deepseek-v4-flash. The reporter notes that Inventory Tracker fields cannot actually be locked. Agent version was not provided in the Discord context. Discord thread: Inventory Tracker Agent keeps just deleting my wholeass inventory. Discord thread link: https://discord.com/channels/1417099416812392641/1550980547621167234 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-09-19T21:22:58.378Z] Leytra: Says it all really. If inventory tracker doesn't complete processing properly, the entire inventory is summarily deleted. In looking through the actual output of my openrouter logs, the reasoning does a *lot* of confused yapping about locked fields, but you can't actually lock inventory tracker fields, so it's getting lost on something. Verbatim quote from the reasoning lol: ` ` `However, we must output all three arrays as per legacy format. Locked rows: we have locked rows? ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980547621167234] [2026-09-19T21:22:59.019Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980550309838919] [2026-09-19T21:23:11.536Z] Leytra: Marinara Engine diagnostics Version: 2.4.6 Build: 2.4.6+d880db8b4eda Commit: d880db8b4eda Server OS: Android / Termux 6.1.124-android14-11-g8d713f9e8e7b-ab13202960 (arm64) Server memory: heap 1231 / 3936 MiB; RSS 1329.8 MiB Background wake lock: acquired Last detected freeze: ~177s suspension, thawed at 2026-09-19T21:16:53.114Z Previous session: ended without shutting down - last alive 2026-09-19T14:38:54.392Z (up 12h 37m, RSS 1436.3 MiB); device rebooted before next launch: no Sessions ended without shutdown: 10 recorded Client OS: Android 16 Browser / app shell: Mozilla/5.0 (Linux; Android 16; Pixel 9 Pro Fold Build/BP2A.250605.031.A3; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/153.0.8010.36 Safari/537.36 MarinaraEngine/Android Client runtime: {"build":"2.4.6+d880db8b4eda","page":"mu8t00j3-kcjgf4ft","persistence":"local","navigation":"navigate","standalone":false,"view":[803,0,0,0],"events":[{"at":1789847519151,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"page-start","view":[803,0,0,0]},{"at":1789847585553,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"message-edited","view":[803,0,0,0]},{"at":1789848452651,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"message-edited","view":[803,0,0,0]},{"at":1789852088001,"page":"mu8t00j3-kcjgf4ft","build":"2.4.6+d880db8b4eda","kind":"message-edited","view":[803,0,0,0]}]} GPU: Mali-G715 Active connection: Deepseek Connection provider: openrouter LLM model: deepseek/deepseek-v4-flash Mari last acted on: none recorded this session [Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980602809946113] [2026-09-19T21:24:42.087Z] Marinara: >Deepseek [Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980982608236697] [2026-09-19T21:24:45.877Z] Marinara: :YeahDude: [Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550980998504906813] [2026-09-19T21:25:34.147Z] Marinara: Still, improper update shouldn’t delete it. [Discord message: https://discord.com/channels/1417099416812392641/1550980547621167234/1550981200963960884] ``` </details> ## Template check Please **uncheck (untick)** 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-21 06:04:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Sep 19, 2026):

Resolved in #6383, now merged into staging. The PR includes the implementation, validation evidence, and any remaining physical-device verification notes.

<!-- gh-comment-id:5745612394 --> @SpicyMarinara commented on GitHub (Sep 19, 2026): Resolved in #6383, now merged into staging. The PR includes the implementation, validation evidence, and any remaining physical-device verification notes.
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#3572
No description provided.