mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3490] [Issue]: Code sweep: confusing, misplaced, or wrong-pointer comments #1887
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#1887
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 @kolacheee on GitHub (Jul 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3490
Originally assigned to: @kolacheee on GitHub.
Summary
Comments that are not false so much as misplaced, incomplete, or pointing at the wrong thing.
Why this is a problem: these do not assert wrong facts, but they route readers to the wrong place or hide a condition that matters. They cost debugging time and produce wrong mental models.
What it negatively affects: navigation and comprehension for contributors and agents, especially in large files where section banners are the primary map.
Expected behavior
Section banners sit above the code they name; docblocks state the conditions that change behavior; pointers reference the right lines.
Actual behavior
client/.../characters/CharacterEditor.tsx:2032— a── Sprites Tab ──banner sits above ~1000 lines of Gallery code; the real Sprites section starts at :3056.server/.../services/prompt/merger.ts:10— docblock says messages merge on "exact same role";canMerge(:29-34) also requires matchingcharacterIdand compatiblecontextKind, so same-role group-chat turns from different characters do not merge. Undocumented.client/.../chat/LocalMusicPlayer.tsx:111/stores/ui.store.ts:613— JSDoc says "Mobile Spotify widget collapsed/position", butspotifyMobileWidget*state is shared bySpotifyMiniPlayer,YouTubePlayer, andLocalMusicPlayer; editing it changes all three.custom_components/marinara_engine/button.py:57— "all 21 HA tool definitions";const.pydefines 23, and defaults exclude locks + generic_service, so 20 sync by default.custom_components/marinara_engine/coordinator.py:188—sync_toolsdocstring omits that it also PATCHesenabled: falsefor deselected tools, reusing theupdatedcounter.server/.../db/migrate.ts:1221— header presentsrunMigrationsas the startup schema repair with no scoping;app.ts:92gates it behind!isFileStorageBackend(), so it never runs on the default file-native backend. Misleads by omission.server/.../middleware/basic-auth.ts:30— the Notes block lists 3 auth-bypass paths but omits the 4th (isTrustedInterfaceRequest/ BYPASS_AUTH_TAILSCALE / BYPASS_AUTH_DOCKER) used in the same file (:317, :342).server/.../services/agents/agent-pipeline.ts:394— says "CallrunPreGeneration"; the returned object's method ispreGenerate.server/.../services/storage/chat-folders.storage.ts:72— citeschats.storage.ts:449for the libSQL Windows use-after-free note; the note lives atchats.storage.ts:984-986.server/.../routes/bot-browser-janny.routes.ts:313— "Proxy JannyAI avatar images" header sits above the character scraper; the actual avatar proxy (:456) has no header.shared/.../schemas/character.schema.ts:135— orphaned JSDoc describinggenerateAboutMeSchema(13 lines below) sits above the unrelatedDEFAULT_ABOUT_ME_SOURCESconst.client/.../bot-browser/BotBrowserView.tsx:795—// Strategy 2labels the 3rd of 4 sequential fallbacks; there is no "Strategy 1" comment.client/.../bot-browser/BotBrowserView.tsx:3135—// Definition Sectionbanner with no code beneath it;DefSectionis defined 130 lines later at :3269.client/.../game/GameSurface.tsx:11385— two adjacent JSX comments with no code between them: a "Party rail" header plus a "REMOVED: old sidebar" note. Orphaned changelog clutter that could invite restoring removed code.Steps to reproduce
Open any entry's file/line and compare the comment with the surrounding code.
Environment
45b650de9)Logs, screenshots, or video
N/A.
Additional context
Found by a repo-wide read-only sweep; adversarially re-verified before filing (subjective style complaints were dropped). Part of a coordinated set of sweep catalogue issues filed together.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: