mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4911] [Issue]: open-issues regression fails on Windows checkouts (CRLF tips the summary-reorder proximity check over its limit) #2722
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#2722
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 (Aug 11, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4911
Originally assigned to: @kolacheee on GitHub.
Summary
scripts/regressions/open-issues.regression.tsfails on Windows checkouts at the assertion "Summary entries must expose a shared desktop and touch reorder surface", even on a cleanstagingtree with no local changes. The chat-summary reorder feature itself is fine — the check is a brittle character-distance match that CRLF line endings tip over.Expected behavior
The regression should pass on any platform when the summary reorder feature is intact.
Actual behavior
The assertion is
assert.match(summaryPopoverSource, /data-summary-entry-root[\s\S]{0,3000}data-touch-reorder-item/u, ...). It requires thedata-summary-entry-rootcontainer and the nearest followingdata-touch-reorder-itemto be within 3000 characters. Inpackages/client/src/components/chat/SummaryPopover.tsxthose two markers are now ~52 lines apart (the entry row was extracted into theSummaryEntryRowsub-component). On the committed LF blob the gap is 2998 chars — 2 chars under the limit — so CI passes. The repo sets* text=autoandcore.autocrlfdefaults to true on Windows, so a Windows working tree has CRLF; the ~52 extra carriage-return bytes push the gap to 3050, over the 3000 limit, andreadFileSync(..., "utf8")reads those CRLF bytes. Result: the check passes in Linux CI but fails for every Windows contributor.The feature is intact: the
SummaryEntryRowroot element carriesdata-touch-reorder-item="summary-entry"together withdraggable,onDragStart,onDragOver,onDrop, andonDragEnd(shared desktop + touch surface), and the container root wiresonDragOver/onDropfor desktop drops.Steps to reproduce
core.autocrlf=true), check outstagingclean.pnpm --filter @marinara-engine/server exec tsx ../../scripts/regressions/open-issues.regression.ts.Environment
Logs, screenshots, or video
Additional context
Fix: replace the single 3000-char cross-component proximity match with tight assertions that verify the actual shared surface — the container root is the desktop drop target, and the row element is both a
data-touch-reorder-item="summary-entry"and desktop-draggable— so the check no longer depends on line endings or the distance between two components.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: