[GH-ISSUE #4432] [Issue]: Switching from stable to staging can leave stale files and fail the build #2404

Closed
opened 2026-10-21 05:47:55 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

A fresh Marinara Engine 2.34 installation fails to build after switching from the stable channel to staging. Removing the stale file and rebuilding allows the process to progress, but subsequent builds still fail with additional errors.

Expected behavior

Switching from the stable channel to staging should update the working tree cleanly and allow Marinara Engine to install, build, and run successfully.

Actual behavior

The channel switch left a stale source file, causing the staging build to fail. After removing the file, clearing the related stash entry, and running the recommended install/build commands, the build progressed but failed again.

Steps to reproduce

  1. Perform a fresh installation of Marinara Engine 2.34 using the Windows zipfile install.
  2. Switch from the stable/main channel to the staging channel.
  3. Allow the update to run, then attempt to build or start Marinara Engine.
  4. Observe the build failure caused by the stale packages\shared\src\constants\chat-mode-capabilities.ts file.
  5. Remove the stale file and attempt pnpm install followed by pnpm build.
  6. Observe that the build progresses but fails again with additional errors.

Environment

  • Marinara Engine version: 2.34, then switched to staging
  • Install type: other
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

Attached screenshots: https://cdn.discordapp.com/attachments/1533165246577901658/1533165246896672818/Screenshot_2026-08-01_123017.png?ex=6a6f7ee7&is=6a6e2d67&hm=cfd5b9629ab36bc96fbfa9040354f7291288705b258a71adfddf89e650a814ce&; https://cdn.discordapp.com/attachments/1533165246577901658/1533189859185922058/image.png?ex=6a6f95d3&is=6a6e4453&hm=1c89ab20aeee3dcfd2882325f6104fb053868d3b4d26386ea2b9f23ed279b76e&; https://cdn.discordapp.com/attachments/1533165246577901658/1533190561043845130/image.png?ex=6a6f967b&is=6a6e44fb&hm=108a77f3fddbda734bfe8d32f91cc2abad6b82d531db23e672a7dc89f952a5e5&. Error text was not provided in the Discord context.

Additional context

Related issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4421. Related pull request: https://github.com/Pasta-Devs/Marinara-Engine/pull/4422. Support instructions included deleting packages\shared\src\constants\chat-mode-capabilities.ts, checking git stash list, dropping an auto-stash entry if present, then running pnpm run build. The user reported that the problem began during an attempted update, which had been failing randomly.

Discord thread: Current staging won't install
Discord thread link: https://discord.com/channels/1417099416812392641/1533165246577901658
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (13 messages)
[2026-08-01T17:31:19.617Z] kurgan1138: Fresh install of ME 2.34 then switched to staging and recieve attached error message and it fails to build Windows 11, ME staging, Windows zipfile install.

[attached image 1: https://cdn.discordapp.com/attachments/1533165246577901658/1533165246896672818/Screenshot_2026-08-01_123017.png?ex=6a6f7ee7&is=6a6e2d67&hm=cfd5b9629ab36bc96fbfa9040354f7291288705b258a71adfddf89e650a814ce&]
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533165246577901658]

[2026-08-01T17:33:25.788Z] kolache: investigating
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533165775777431652]

[2026-08-01T17:37:23.328Z] kurgan1138: Let me know if you need anything from me
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533166772092669993]

[2026-08-01T17:48:44.778Z] kolache: @kurgan1138 
1. cd to your filepath
2. delete the stale file by running this command:
` ` `
del packages\shared\src\constants\chat-mode-capabilities.ts
` ` `
3. check if start.bat stashed a copy that would bring it back on next launch by running this:
` ` `
git stash list
` ` `
3b. if you see an entry like auto-stash before update, drop it with:
` ` `
git stash drop 0
` ` `
(replace 0 with the correct stash index if it's not the first entry.)
4. lastly, rebuild:
` ` `
pnpm run build
` ` `
then try to run ME
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533169630300868630]

[2026-08-01T17:48:59.001Z] kolache: issue filed https://github.com/Pasta-Devs/Marinara-Engine/issues/4421
Channel switch (main → staging) can leave stale source files that...
When a user switches from the stable channel (main) to staging, files that exist on main but were deleted on staging can persist in the working tree as untracked files. The build then fails because...
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533169689956450376]

[2026-08-01T17:53:33.479Z] kurgan1138: Okay I will give it a shot
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533170841200627764]

[2026-08-01T18:57:12.523Z] kolache: PR <https://github.com/Pasta-Devs/Marinara-Engine/pull/4422> courtesy of gunterlie
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533186859432280084]

[2026-08-01T19:09:07.834Z] kurgan1138: it got a bit further but failed with this error

[attached image 1: https://cdn.discordapp.com/attachments/1533165246577901658/1533189859185922058/image.png?ex=6a6f95d3&is=6a6e4453&hm=1c89ab20aeee3dcfd2882325f6104fb053868d3b4d26386ea2b9f23ed279b76e&]
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533189859663937676]

[2026-08-01T19:09:47.016Z] kolache: cd to filepath, `pnpm install`, then `pnpm build`, then try to run
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190024005156984]

[2026-08-01T19:11:55.128Z] kurgan1138: failed again

[attached image 1: https://cdn.discordapp.com/attachments/1533165246577901658/1533190561043845130/image.png?ex=6a6f967b&is=6a6e44fb&hm=108a77f3fddbda734bfe8d32f91cc2abad6b82d531db23e672a7dc89f952a5e5&]
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190561345830972]

[2026-08-01T19:13:11.273Z] kolache: :cathuhh:
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190880721240245]

[2026-08-01T19:13:12.628Z] kolache: @gunterlie
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190886404521984]

[2026-08-01T19:14:15.056Z] kurgan1138: Yeah it's very strange as it worked fine and didn't break until I tried to update as the auto update was failing randomly
[Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533191148246532096]

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 (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4432 Originally assigned to: @SpicyMarinara on GitHub. ## Summary A fresh Marinara Engine 2.34 installation fails to build after switching from the stable channel to staging. Removing the stale file and rebuilding allows the process to progress, but subsequent builds still fail with additional errors. ## Expected behavior Switching from the stable channel to staging should update the working tree cleanly and allow Marinara Engine to install, build, and run successfully. ## Actual behavior The channel switch left a stale source file, causing the staging build to fail. After removing the file, clearing the related stash entry, and running the recommended install/build commands, the build progressed but failed again. ## Steps to reproduce 1. Perform a fresh installation of Marinara Engine 2.34 using the Windows zipfile install. 2. Switch from the stable/main channel to the staging channel. 3. Allow the update to run, then attempt to build or start Marinara Engine. 4. Observe the build failure caused by the stale packages\shared\src\constants\chat-mode-capabilities.ts file. 5. Remove the stale file and attempt pnpm install followed by pnpm build. 6. Observe that the build progresses but fails again with additional errors. ## Environment - Marinara Engine version: 2.34, then switched to staging - Install type: other - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video Attached screenshots: https://cdn.discordapp.com/attachments/1533165246577901658/1533165246896672818/Screenshot_2026-08-01_123017.png?ex=6a6f7ee7&is=6a6e2d67&hm=cfd5b9629ab36bc96fbfa9040354f7291288705b258a71adfddf89e650a814ce&; https://cdn.discordapp.com/attachments/1533165246577901658/1533189859185922058/image.png?ex=6a6f95d3&is=6a6e4453&hm=1c89ab20aeee3dcfd2882325f6104fb053868d3b4d26386ea2b9f23ed279b76e&; https://cdn.discordapp.com/attachments/1533165246577901658/1533190561043845130/image.png?ex=6a6f967b&is=6a6e44fb&hm=108a77f3fddbda734bfe8d32f91cc2abad6b82d531db23e672a7dc89f952a5e5&. Error text was not provided in the Discord context. ## Additional context Related issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4421. Related pull request: https://github.com/Pasta-Devs/Marinara-Engine/pull/4422. Support instructions included deleting packages\shared\src\constants\chat-mode-capabilities.ts, checking git stash list, dropping an auto-stash entry if present, then running pnpm run build. The user reported that the problem began during an attempted update, which had been failing randomly. Discord thread: Current staging won't install Discord thread link: https://discord.com/channels/1417099416812392641/1533165246577901658 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (13 messages)</summary> ```text [2026-08-01T17:31:19.617Z] kurgan1138: Fresh install of ME 2.34 then switched to staging and recieve attached error message and it fails to build Windows 11, ME staging, Windows zipfile install. [attached image 1: https://cdn.discordapp.com/attachments/1533165246577901658/1533165246896672818/Screenshot_2026-08-01_123017.png?ex=6a6f7ee7&is=6a6e2d67&hm=cfd5b9629ab36bc96fbfa9040354f7291288705b258a71adfddf89e650a814ce&] [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533165246577901658] [2026-08-01T17:33:25.788Z] kolache: investigating [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533165775777431652] [2026-08-01T17:37:23.328Z] kurgan1138: Let me know if you need anything from me [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533166772092669993] [2026-08-01T17:48:44.778Z] kolache: @kurgan1138 1. cd to your filepath 2. delete the stale file by running this command: ` ` ` del packages\shared\src\constants\chat-mode-capabilities.ts ` ` ` 3. check if start.bat stashed a copy that would bring it back on next launch by running this: ` ` ` git stash list ` ` ` 3b. if you see an entry like auto-stash before update, drop it with: ` ` ` git stash drop 0 ` ` ` (replace 0 with the correct stash index if it's not the first entry.) 4. lastly, rebuild: ` ` ` pnpm run build ` ` ` then try to run ME [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533169630300868630] [2026-08-01T17:48:59.001Z] kolache: issue filed https://github.com/Pasta-Devs/Marinara-Engine/issues/4421 Channel switch (main → staging) can leave stale source files that... When a user switches from the stable channel (main) to staging, files that exist on main but were deleted on staging can persist in the working tree as untracked files. The build then fails because... [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533169689956450376] [2026-08-01T17:53:33.479Z] kurgan1138: Okay I will give it a shot [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533170841200627764] [2026-08-01T18:57:12.523Z] kolache: PR <https://github.com/Pasta-Devs/Marinara-Engine/pull/4422> courtesy of gunterlie [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533186859432280084] [2026-08-01T19:09:07.834Z] kurgan1138: it got a bit further but failed with this error [attached image 1: https://cdn.discordapp.com/attachments/1533165246577901658/1533189859185922058/image.png?ex=6a6f95d3&is=6a6e4453&hm=1c89ab20aeee3dcfd2882325f6104fb053868d3b4d26386ea2b9f23ed279b76e&] [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533189859663937676] [2026-08-01T19:09:47.016Z] kolache: cd to filepath, `pnpm install`, then `pnpm build`, then try to run [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190024005156984] [2026-08-01T19:11:55.128Z] kurgan1138: failed again [attached image 1: https://cdn.discordapp.com/attachments/1533165246577901658/1533190561043845130/image.png?ex=6a6f967b&is=6a6e44fb&hm=108a77f3fddbda734bfe8d32f91cc2abad6b82d531db23e672a7dc89f952a5e5&] [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190561345830972] [2026-08-01T19:13:11.273Z] kolache: :cathuhh: [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190880721240245] [2026-08-01T19:13:12.628Z] kolache: @gunterlie [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533190886404521984] [2026-08-01T19:14:15.056Z] kurgan1138: Yeah it's very strange as it worked fine and didn't break until I tried to update as the auto update was failing randomly [Discord message: https://discord.com/channels/1417099416812392641/1533165246577901658/1533191148246532096] ``` </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 05:47:55 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 1, 2026):

Confirmed from the attached screenshots:

  • packages/shared/src/constants/chat-mode-capabilities.ts is tracked on main and absent from staging.
  • packages/server/src/services/noodle/noodle-private-generation.service.ts is likewise tracked on main and absent from staging.

The later Noodle/NoodleR TypeScript errors therefore have the same cause as #4421: additional stale main source survived the channel switch. PR #4422 already fixes the complete case by running a scoped git clean -fd -- packages/shared/src packages/server/src packages/client/src before the untracked-file stash and before build/install in the manual apply path. That removes both files shown here without touching .env, user data, configuration, or ignored build output.

The fix is present on staging and in the v2.4.0 release-candidate branch (#4410). Closing this as a duplicate of #4421 / fixed by #4422.

<!-- gh-comment-id:5153061827 --> @SpicyMarinara commented on GitHub (Aug 1, 2026): Confirmed from the attached screenshots: - `packages/shared/src/constants/chat-mode-capabilities.ts` is tracked on `main` and absent from `staging`. - `packages/server/src/services/noodle/noodle-private-generation.service.ts` is likewise tracked on `main` and absent from `staging`. The later Noodle/NoodleR TypeScript errors therefore have the same cause as #4421: additional stale `main` source survived the channel switch. PR #4422 already fixes the complete case by running a scoped `git clean -fd -- packages/shared/src packages/server/src packages/client/src` before the untracked-file stash and before build/install in the manual apply path. That removes both files shown here without touching `.env`, user data, configuration, or ignored build output. The fix is present on `staging` and in the v2.4.0 release-candidate branch (#4410). Closing this as a duplicate of #4421 / fixed by #4422.
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#2404
No description provided.