Skip to content

[0.8.2] WittyIntegratedFileBrowser 0.4.2: A page of server folders with a huge size crashes the helper; drive sizes disagree with the server - #39

Merged
wittywilla merged 1 commit into
v0.8.2-alphafrom
mod082-pass
Nov 23, 2026
Merged

wittywilla merged 1 commit into
v0.8.2-alphafrom
mod082-pass

Conversation

@wittywilla

Copy link
Copy Markdown
Owner

Closes #38

What's new in 0.4.2

  • Drive sizes match the rest of the server. Server folders counted 1000 bytes to a KB while the file browser's own window, Statistics and the server count 1024, as your computer does, so the same disk read 511 GB in one place and 476 GB in another. It now reads the same everywhere.
  • Fixed: asking for a page of server folders with an enormous size could stop the file browser's helper.

Developer notes for 0.4.2

  • page compares the limit with what's left instead of adding it to the offset: start+limit wrapped round for a limit near the largest int and sliced with a negative end (a panic, found by the new FuzzItemsPaging).
  • size uses 1024, as fmtSize in web/FileBrowser.tsx and the server's fmtBytes do; TestSizeCountsLikeTheServer.

Tested

  • go vet ./..., go test ./... (Windows), go test -race ./... (WSL); FuzzItemsPaging failed on its first seed before the fix and ran 30 s clean after
  • wittymodule check
  • On a test server: Server folders at 375x812 lists C:, D: and E: with free space

🤖 Generated with Claude Code

…server (#38)

page compares the limit with what's left instead of adding it to the
offset, which wrapped round and panicked. size counts 1024 to a KB, as the
file browser's window, Statistics and the server do. FuzzItemsPaging and
TestSizeCountsLikeTheServer cover both.

Closes #38

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wittywilla
wittywilla changed the base branch from v0.8.1-alpha to v0.8.2-alpha November 23, 2026 10:08
@wittywilla
wittywilla marked this pull request as ready for review November 23, 2026 10:20
Copilot AI balanced review requested due to automatic review settings November 23, 2026 10:20
@wittywilla
wittywilla merged commit 8e47783 into v0.8.2-alpha Nov 23, 2026
1 check passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants