mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #725] [Issue]: Noodle 1.2.20: ReferenceError: or is not defined in listPostPage breaks "Load more" pagination #372
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#372
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 @stochasticbrainrot on GitHub (Sep 5, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/725
Originally assigned to: @Gunterlie, @SpicyMarinara on GitHub.
Title: Noodle 1.2.20:
ReferenceError: or is not definedinlistPostPagebreaks "Load more" paginationPackage / version:
noodle1.2.20 (server bundleserver.mjs)Marinara Engine: v2.3.0+ (fresh package install over an existing database)
Platform: macOS
Summary
Clicking "Load more" on the Noodle timeline fails server-side with
ReferenceError: or is not definedthrown fromObject.listPostPage. The first page loads fine; only cursor-based pagination is broken.Steps to reproduce
Install Noodle 1.2.20 from Agents → Download Agents and restart when prompted.
Open Home → Noodle and let the first page of the timeline load.
Scroll down and click "Load more".
Observe no new posts; server log shows the error below.
Expected: The next page of posts loads.
Actual: Request fails with a 500-level error and this log entry:
Root cause
In the bundled
server.mjs,listPostPagebuilds its keyset-pagination cursor roughly as:Every other drizzle-orm helper on that line is minified (
and→De,eq→M,inArray→We,lt→Lg,desc→ht), butor(appears with its original name. Drizzle'sordoes exist in the bundle under the aliasan, but nothing bindsorinlistPostPage's scope. This indicates the source module defininglistPostPagenever importedorfromdrizzle-orm, so the bundler treated it as a free global and left it unresolved. The first page never evaluates theor(...)branch (no cursor), which is why only "Load more" fails.Suggested fix
Add
orto thedrizzle-ormimport in the server module that defineslistPostPage, e.g.:Then rebuild and republish the package. Optionally add a pagination test that exercises the cursor branch, since the first-page path masks this entirely.
Notes
Not database-related: reproduces on a fresh package install over an existing DB, and the failure is a static unresolved identifier, not a data issue.
Snapshot files are read-only and hash-pinned by
manifest.json, so end users cannot hot-patch the bundle locally; a package update is required.Marinara Engine diagnostics
Version: 2.4.5
Build: 2.4.5+f6efd5ee607b
Commit: f6efd5ee607b
Server OS: macOS 26.6.2 (arm64)
Server memory: heap 168.7 / 4288 MiB; RSS 384.9 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: restarted itself for an update or a settings restart at 2026-09-05T17:57:45.865Z
Sessions ended without shutdown: 0 recorded
Client OS: iPadOS (WebKit 605.1.15)
Browser / app shell: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Safari/605.1.15
GPU: Apple GPU
Active connection: Fable (Lite)
Connection provider: anthropic
LLM model: claude-fable-5-1