Skip to content

[FIX] Backend: bound requests and improve file search - #22

Merged
ihatemodels merged 1 commit into
mainfrom
fix/backend-request-handling
Nov 4, 2026
Merged

ihatemodels merged 1 commit into
mainfrom
fix/backend-request-handling

Conversation

@ihatemodels

Copy link
Copy Markdown
Member

What this does

Keep slow backend operations from building an unlimited backlog of browser requests. Speed up file search ranking while preserving result order. Allow monitoring to start correctly when setup is retried after a failure.

Summary

  • Bound pending browser requests and close overloaded connections explicitly, with regression coverage.
  • Replace repeated search sorting with ordered insertion. Ranking benchmark improves from 123.7 ms to 4.35 ms for 100,000 candidates.
  • Fix monitor startup state after failure and update remote-node documentation.

Cap pending connection tasks and close overloaded sockets explicitly.
Preserve serial dispatch and verify queue saturation and recovery.

Use binary insertion for top search results instead of repeated sorting.
Verify ranking against a full-sort oracle and add a focused benchmark.
Only mark local nodes started after monitor setup succeeds, allowing retries.
Update node documentation to describe existing remote support.
@ihatemodels
ihatemodels merged commit 88ed0a8 into main Nov 4, 2026
9 checks passed
@ihatemodels
ihatemodels deleted the fix/backend-request-handling branch November 4, 2026 01:40
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.

1 participant