[GH-ISSUE #3456] [Feature]: Clean up user-visible Visual Novel leftovers on staging (sidebar coming-soon tab, Game Dialogue Display labels) — port of #1253's decision #1867

Closed
opened 2026-10-21 05:43:22 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kolacheee on GitHub (Jul 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3456

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

Visual Novel mode is obsolete — Game Mode replaced it, and the decision is already on record in #1253 ("visual novel is some leftover old code from what the game mode was supposed to be initially"). The refactor codebase removed visual_novel wholesale in commit 981971c1, but that commit lives on the refactor branch only — it was never ported to staging. So current staging users still see the dead mode in several places:

  1. Chat sidebar mode tab — packages/client/src/components/layout/ChatSidebar.tsx (MODE_CONFIG, lines 186–193): a "Visual Novel" tab marked comingSoon: true, promising a mode that will never ship. Its description ("A full game experience with backgrounds, sprites, text boxes, and choices") and its logoModeClass (mari-chat-logo-mode--game) already describe Game mode.
  2. Settings → Appearance → Game Dialogue Display — packages/client/src/components/panels/SettingsPanel.tsx: option labels "Classic VN" and "History Above VN" (lines 1240–1251), plus "VN box" wording in the option descriptions, the help tooltip (line 4219), and the settings-search entry (line 948). A Game-mode layout setting is named after the obsolete mode.
  3. Achievements — packages/server/src/services/achievements/achievements.service.ts (lines 31–33): isRoleplayMode counts mode === "visual_novel" chats toward the "They Feel Real To Me" (Roleplay chats) achievement.

Note the visual_novel enum itself has to stay for now: it is a valid chat mode in chat.schema.ts and the DB schema, and the SillyTavern chat importer accepts it (st-chat.importer.ts line 153), so legacy rows can exist. Full contract/schema removal (option 1 in #1253) needs a migration plan and is explicitly out of scope here — this issue only covers what users can see.

Proposed solution

Scoped label cleanup on staging. The replacement wording is a product call, so confirming direction before any code:

  1. Sidebar tab: remove the "Visual Novel (coming soon)" tab outright, matching the refactor. One decision needed: which tab legacy visual_novel chats should list under — Roleplay (they render through the roleplay surface today, and the achievement counts them as roleplay) or Game (RecentChats.tsx lines 26–30 already labels visual_novel chats "Game"). Those two surfaces currently disagree.
  2. Game Dialogue Display labels: rename "Classic VN" → ? and "History Above VN" → ?. Suggestion: "Classic Dialogue Box" / "History Above Box", with descriptions reworded from "VN box" to "dialogue box" — but whatever naming you prefer wins. The settings-search alias "vn" (line 949) would stay so existing muscle-memory searches keep working.
  3. Achievement counting: proposal is to leave isRoleplayMode as-is — legacy/imported visual_novel chats keep counting toward the Roleplay achievement, nothing user-visible says "VN" there, and changing it would silently alter users' achievement progress. Flagging it only because it is the last place the obsolete mode has behavioral meaning; say the word if you'd rather it change.
  4. Secondary user-visible strings (small, would rename/remove in the same PR): lorebook mode filter chip "VN" (LorebookEntryRow.tsx line 175) and "Visual Novel" assignment label (LorebookAssignmentSection.tsx line 45); PWA manifest description "Conversation, Roleplay, Visual Novel" (packages/client/public/manifest.json); CYOA agent description "Available in Roleplay and Visual Novel modes" (packages/shared/src/features/agents/cyoa/manifest.ts); ConnectionEditor prompt-override help text (line 2087); ConvoProfileFields tooltip "Never sent in Roleplay, Visual Novel, or Game mode" (line 294); the visual_novel mode intro in ChatSettingsDrawer.tsx (line 651, shown when opening a legacy VN chat's settings); and the CHAT_MODES visual_novel name/description in packages/shared/src/constants/chat-modes.ts where it feeds visible surfaces.

Out of scope, flagged as potential follow-ups: the docs still describe Visual Novel as a first-class mode (FRONTEND.md has two "Visual Novel Mode" sections; CONVERSATION.md, CONVERSATION_CALLS.md, GENERATION_PARAMETERS.md, ROLEPLAY.md, MACROS.md, and ARCHITECTURE_MAP.md list it alongside the real modes), and the full enum/contract removal from #1253.

Ownership: I (@kolacheee) will take the implementation once the tab/label direction is confirmed, and will open a draft PR against staging at that point.

Alternatives considered

  • Port the refactor's wholesale removal (contracts, schemas, routing, presets): the "right" end state per #1253, but it needs a legacy-row migration/fallback plan and touches far more surface area. Better tracked as its own effort.
  • Do nothing: users keep seeing a "coming soon" tab for a cancelled mode, and settings labels keep referencing a mode the docs no longer explain.

Additional context

  • #1253 is the decision record; the removal there was implemented in refactor commit 981971c1, which is not an ancestor of staging.
  • The "Classic VN" / "History Above VN" labels are not documented in any docs/*.md file (only in historical CHANGELOG.md entries, which should not be rewritten), so the rename needs no doc changes — unless you'd like the Game Dialogue Display setting documented in GAME_MODE.md in the same PR.
  • Searched open issues, PRs, and remote branches for prior/parallel VN-cleanup work before filing: none found; the staging-port issues (#2575–#2582) do not cover this.

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 @kolacheee on GitHub (Jul 10, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3456 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? Visual Novel mode is obsolete — Game Mode replaced it, and the decision is already on record in #1253 ("visual novel is some leftover old code from what the game mode was supposed to be initially"). The refactor codebase removed `visual_novel` wholesale in commit 981971c1, but that commit lives on the `refactor` branch only — it was never ported to `staging`. So current staging users still see the dead mode in several places: 1. **Chat sidebar mode tab** — `packages/client/src/components/layout/ChatSidebar.tsx` (`MODE_CONFIG`, lines 186–193): a "Visual Novel" tab marked `comingSoon: true`, promising a mode that will never ship. Its description ("A full game experience with backgrounds, sprites, text boxes, and choices") and its `logoModeClass` (`mari-chat-logo-mode--game`) already describe Game mode. 2. **Settings → Appearance → Game Dialogue Display** — `packages/client/src/components/panels/SettingsPanel.tsx`: option labels "Classic VN" and "History Above VN" (lines 1240–1251), plus "VN box" wording in the option descriptions, the help tooltip (line 4219), and the settings-search entry (line 948). A Game-mode layout setting is named after the obsolete mode. 3. **Achievements** — `packages/server/src/services/achievements/achievements.service.ts` (lines 31–33): `isRoleplayMode` counts `mode === "visual_novel"` chats toward the "They Feel Real To Me" (Roleplay chats) achievement. Note the `visual_novel` enum itself has to stay for now: it is a valid chat mode in `chat.schema.ts` and the DB schema, and the SillyTavern chat importer accepts it (`st-chat.importer.ts` line 153), so legacy rows can exist. Full contract/schema removal (option 1 in #1253) needs a migration plan and is explicitly out of scope here — this issue only covers what users can see. ## Proposed solution Scoped label cleanup on `staging`. The replacement wording is a product call, so confirming direction before any code: 1. **Sidebar tab**: remove the "Visual Novel (coming soon)" tab outright, matching the refactor. One decision needed: which tab legacy `visual_novel` chats should list under — **Roleplay** (they render through the roleplay surface today, and the achievement counts them as roleplay) or **Game** (`RecentChats.tsx` lines 26–30 already labels `visual_novel` chats "Game"). Those two surfaces currently disagree. 2. **Game Dialogue Display labels**: rename "Classic VN" → ? and "History Above VN" → ?. Suggestion: "Classic Dialogue Box" / "History Above Box", with descriptions reworded from "VN box" to "dialogue box" — but whatever naming you prefer wins. The settings-search alias "vn" (line 949) would stay so existing muscle-memory searches keep working. 3. **Achievement counting**: proposal is to leave `isRoleplayMode` as-is — legacy/imported `visual_novel` chats keep counting toward the Roleplay achievement, nothing user-visible says "VN" there, and changing it would silently alter users' achievement progress. Flagging it only because it is the last place the obsolete mode has behavioral meaning; say the word if you'd rather it change. 4. **Secondary user-visible strings** (small, would rename/remove in the same PR): lorebook mode filter chip "VN" (`LorebookEntryRow.tsx` line 175) and "Visual Novel" assignment label (`LorebookAssignmentSection.tsx` line 45); PWA manifest description "Conversation, Roleplay, Visual Novel" (`packages/client/public/manifest.json`); CYOA agent description "Available in Roleplay and Visual Novel modes" (`packages/shared/src/features/agents/cyoa/manifest.ts`); ConnectionEditor prompt-override help text (line 2087); ConvoProfileFields tooltip "Never sent in Roleplay, Visual Novel, or Game mode" (line 294); the `visual_novel` mode intro in `ChatSettingsDrawer.tsx` (line 651, shown when opening a legacy VN chat's settings); and the `CHAT_MODES` visual_novel name/description in `packages/shared/src/constants/chat-modes.ts` where it feeds visible surfaces. Out of scope, flagged as potential follow-ups: the docs still describe Visual Novel as a first-class mode (`FRONTEND.md` has two "Visual Novel Mode" sections; `CONVERSATION.md`, `CONVERSATION_CALLS.md`, `GENERATION_PARAMETERS.md`, `ROLEPLAY.md`, `MACROS.md`, and `ARCHITECTURE_MAP.md` list it alongside the real modes), and the full enum/contract removal from #1253. Ownership: I (@kolacheee) will take the implementation once the tab/label direction is confirmed, and will open a draft PR against `staging` at that point. ## Alternatives considered - **Port the refactor's wholesale removal** (contracts, schemas, routing, presets): the "right" end state per #1253, but it needs a legacy-row migration/fallback plan and touches far more surface area. Better tracked as its own effort. - **Do nothing**: users keep seeing a "coming soon" tab for a cancelled mode, and settings labels keep referencing a mode the docs no longer explain. ## Additional context - #1253 is the decision record; the removal there was implemented in refactor commit 981971c1, which is not an ancestor of `staging`. - The "Classic VN" / "History Above VN" labels are not documented in any `docs/*.md` file (only in historical `CHANGELOG.md` entries, which should not be rewritten), so the rename needs no doc changes — unless you'd like the Game Dialogue Display setting documented in `GAME_MODE.md` in the same PR. - Searched open issues, PRs, and remote branches for prior/parallel VN-cleanup work before filing: none found; the staging-port issues (#2575–#2582) do not cover this. ## 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:43:22 +07:00
  • closed this issue
  • added the
    in-pr
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 10, 2026):

Implementation is now in progress in draft PR #3459. Direction: remove the dead Visual Novel sidebar tab, list legacy visual_novel chats under Roleplay, preserve the legacy enum/import path, and rename Game Dialogue Display labels around “Dialogue Box”.

<!-- gh-comment-id:4940308790 --> @SpicyMarinara commented on GitHub (Jul 10, 2026): Implementation is now in progress in draft PR #3459. Direction: remove the dead Visual Novel sidebar tab, list legacy `visual_novel` chats under Roleplay, preserve the legacy enum/import path, and rename Game Dialogue Display labels around “Dialogue Box”.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 10, 2026):

Implemented in ready-for-review PR #3459. Legacy visual_novel chats remain compatible and now surface under Roleplay, obsolete UI wording is removed, and the existing achievement behavior is preserved.

<!-- gh-comment-id:4940544752 --> @SpicyMarinara commented on GitHub (Jul 10, 2026): Implemented in ready-for-review PR #3459. Legacy visual_novel chats remain compatible and now surface under Roleplay, obsolete UI wording is removed, and the existing achievement behavior is preserved.
Author
Owner

@kolacheee commented on GitHub (Jul 11, 2026):

A repo-wide code sweep (read-only, adversarially verified) catalogued every remaining visual_novel / VN trace, so this issue has the complete inventory in one place. Two important notes up front:

  1. Most of these are NOT safe standalone deletes. visual_novel is a live, required backward-compat ChatMode enum value: legacy chats still load and render through the Roleplay surface, so many of the checks below are load-bearing. Piecemeal removal would break legacy chats.
  2. One item is fully dead and safe to delete once no external readers are confirmed: packages/shared/src/types/vn.ts (the whole VNScene/VNSprite/VNTransition/VNChoice file) is reachable only through a barrel export with zero consumers.

Suggested priority within this cleanup: the "VN"/"visual novel" strings inside live model-facing prompt text (prompt-overrides/registry/game-assets.ts:4,115,404,433, sprites.ts:152, scene-analyzer.ts:300,327) — those reach the model on every relevant generation, not just readers of the code.

Full catalogue:

Location What Note
client/.../characters/ConvoProfileFields.tsx:4 header frames VN as a co-equal live mode framing only
client/.../chat/ChatSetupWizard.tsx:1658 visual_novel ternary, both branches return "roleplay" inert dead conditional
client/.../chat/ChatGallery.tsx:95 sceneVideosEnabled includes visual_novel load-bearing for legacy chats
client/.../chat/RecentChats.tsx:26 visual_novel badge entry duplicates roleplay
client/.../layout/ChatSidebar.tsx:169 comingSoon? flag nothing sets/reads vestige of the removed VN tab
client/.../layout/AppShell.tsx:553 trackerPanelModeAvailable gates on visual_novel load-bearing for legacy chats
client/.../chat/ChatMessage.tsx:924 isRoleplay includes visual_novel live/valid
client/.../chat/ChatSettingsDrawer.tsx:884 isRoleplayMode gates ~18 sections live; MODE_INTROS already say "Legacy roleplay"
client/.../chat/ChatSettingsDrawer.tsx:1479 Expression Engine description still says "VN sprites/expressions" sprites now span Roleplay/Game
client/.../game/GameNarration.tsx (8 sites) "VN-style" descriptors accurate for Game narration box; naming residue
client/.../panels/SettingsPanel.tsx:369,4360,4368 "Game VN Art" copy in the live Game Presentation section describes a current feature
server/.../db/schema/connections.ts:67 doc: "roleplay/visual-novel chats" DB-layer scaffolding
server/.../routes/generate/dry-run-route.ts:678 comment "made in the VN log"; code gates chatMode==="game" terminology only
server/.../services/achievements/achievements.service.ts:31 isRoleplayMode counts visual_novel toward roleplayChats live
server/.../services/conversation/conversation-profiles.ts:4 header "RP/VN/Game prompts" isolation claim still holds
server/.../services/game/segment-edits.ts:5 "VN narration UI" Game Mode's live narration editor
server/.../services/noodle/noodle-context.ts:15 modeAllowed branches on visual_novel live
server/.../services/prompt-overrides/registry/game-assets.ts:4,115,404,433 + sprites.ts:152 + scene-analyzer.ts:300,327 "VN"/"visual novel" in live model-facing prompt text suggest prioritizing
shared/.../features/agents/expression/manifest.ts:6,10 (+6 sibling manifests) modeAllowlist:["roleplay","visual_novel"] + "VN sprites/expressions" 7 manifests
shared/.../types/vn.ts (whole file) VNScene/VNSprite/VNTransition/VNChoice fully dead, safe delete after confirming no external readers

Related comment-only mention also filed in the sweep set: server/.../routes/chats.routes.ts:2264 "(roleplay only)" guard also admits legacy visual_novel chats.

<!-- gh-comment-id:4948377043 --> @kolacheee commented on GitHub (Jul 11, 2026): A repo-wide code sweep (read-only, adversarially verified) catalogued every remaining `visual_novel` / VN trace, so this issue has the complete inventory in one place. Two important notes up front: 1. **Most of these are NOT safe standalone deletes.** `visual_novel` is a live, required backward-compat `ChatMode` enum value: legacy chats still load and render through the Roleplay surface, so many of the checks below are load-bearing. Piecemeal removal would break legacy chats. 2. One item is **fully dead and safe to delete** once no external readers are confirmed: `packages/shared/src/types/vn.ts` (the whole `VNScene`/`VNSprite`/`VNTransition`/`VNChoice` file) is reachable only through a barrel export with zero consumers. Suggested priority within this cleanup: the "VN"/"visual novel" strings inside **live model-facing prompt text** (`prompt-overrides/registry/game-assets.ts:4,115,404,433`, `sprites.ts:152`, `scene-analyzer.ts:300,327`) — those reach the model on every relevant generation, not just readers of the code. Full catalogue: | Location | What | Note | |---|---|---| | `client/.../characters/ConvoProfileFields.tsx:4` | header frames VN as a co-equal live mode | framing only | | `client/.../chat/ChatSetupWizard.tsx:1658` | `visual_novel` ternary, both branches return `"roleplay"` | inert dead conditional | | `client/.../chat/ChatGallery.tsx:95` | `sceneVideosEnabled` includes `visual_novel` | load-bearing for legacy chats | | `client/.../chat/RecentChats.tsx:26` | `visual_novel` badge entry duplicates roleplay | | | `client/.../layout/ChatSidebar.tsx:169` | `comingSoon?` flag nothing sets/reads | vestige of the removed VN tab | | `client/.../layout/AppShell.tsx:553` | `trackerPanelModeAvailable` gates on `visual_novel` | load-bearing for legacy chats | | `client/.../chat/ChatMessage.tsx:924` | `isRoleplay` includes `visual_novel` | live/valid | | `client/.../chat/ChatSettingsDrawer.tsx:884` | `isRoleplayMode` gates ~18 sections | live; MODE_INTROS already say "Legacy roleplay" | | `client/.../chat/ChatSettingsDrawer.tsx:1479` | Expression Engine description still says "VN sprites/expressions" | sprites now span Roleplay/Game | | `client/.../game/GameNarration.tsx` (8 sites) | "VN-style" descriptors | accurate for Game narration box; naming residue | | `client/.../panels/SettingsPanel.tsx:369,4360,4368` | "Game VN Art" copy in the live Game Presentation section | describes a current feature | | `server/.../db/schema/connections.ts:67` | doc: "roleplay/visual-novel chats" | DB-layer scaffolding | | `server/.../routes/generate/dry-run-route.ts:678` | comment "made in the VN log"; code gates `chatMode==="game"` | terminology only | | `server/.../services/achievements/achievements.service.ts:31` | `isRoleplayMode` counts `visual_novel` toward `roleplayChats` | live | | `server/.../services/conversation/conversation-profiles.ts:4` | header "RP/VN/Game prompts" | isolation claim still holds | | `server/.../services/game/segment-edits.ts:5` | "VN narration UI" | Game Mode's live narration editor | | `server/.../services/noodle/noodle-context.ts:15` | `modeAllowed` branches on `visual_novel` | live | | `server/.../services/prompt-overrides/registry/game-assets.ts:4,115,404,433` + `sprites.ts:152` + `scene-analyzer.ts:300,327` | "VN"/"visual novel" in **live model-facing prompt text** | suggest prioritizing | | `shared/.../features/agents/expression/manifest.ts:6,10` (+6 sibling manifests) | `modeAllowlist:["roleplay","visual_novel"]` + "VN sprites/expressions" | 7 manifests | | `shared/.../types/vn.ts` (whole file) | `VNScene`/`VNSprite`/`VNTransition`/`VNChoice` | **fully dead**, safe delete after confirming no external readers | Related comment-only mention also filed in the sweep set: `server/.../routes/chats.routes.ts:2264` "(roleplay only)" guard also admits legacy `visual_novel` chats.
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#1867
No description provided.