[frontend] 9 JS files massively exceed AGENTS.md ~400 line limit #787
Labels
No labels
area:chat
area:core
area:llm
area:routes
area:tools
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
refactor
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sleepy/odysseus#787
Loading…
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?
Finding
Per AGENTS.md rule: "Split files that exceed ~400 lines or contain multiple concerns."
The following frontend JS files massively exceed this limit:
static/js/document.jsstatic/js/slashCommands.jsstatic/js/notes.jsstatic/js/emailLibrary.jsstatic/js/chat.jsstatic/js/settings.jsstatic/js/galleryEditor.jsstatic/js/calendar.jsstatic/js/documentLibrary.jsPlus 10+ additional files between 1,000–3,000 lines.
Impact
Recommendation
Split each file by feature/concern into modules under ~400 lines. Start with the worst offenders (document.js, slashCommands.js, notes.js).