Skip to content

fix: backport stable hardening guards#55

Merged
iLevyTate merged 2 commits intomainfrom
rollback/v2.0.5-20260308
Mar 8, 2026
Merged

fix: backport stable hardening guards#55
iLevyTate merged 2 commits intomainfrom
rollback/v2.0.5-20260308

Conversation

@iLevyTate
Copy link
Owner

This pull request primarily focuses on backporting essential stability and hardening guards to core backend services and IPC handlers. The changes prevent potential memory leaks, address edge cases with late or missing responses, and ensure configuration settings are strictly respected.

Core services and IPC hardening:

  • Hardened the chatIpc service by introducing a cleanup state to safely ignore late stream responses and prevent memory leaks.
  • Updated the ParallelEmbeddingService to correctly preserve explicit zero-valued retry configurations by implementing nullish coalescing.
  • Enhanced AtomicFileOperations to ensure transaction timeout timers are properly cleared upon transaction failure or rollback.
  • Improved the auto-organize fileProcessor to safely handle missing suggestion payloads by utilizing optional chaining.

Testing and edge case coverage:

  • Added comprehensive tests to chatIpc.test.js to verify that late query failures are ignored after cleanup and that malformed bridge responses are handled gracefully.
  • Expanded edge case testing for the auto-organize fileProcessor to ensure files are correctly routed to the default folder when suggestion payloads are missing.
  • Introduced new unit tests for the ParallelEmbeddingService to explicitly verify that zero-retry options are accurately preserved.

Preserve explicit zero-valued retry settings and clear transaction timers on rollback while hardening auto-organize and chat IPC against missing or late responses.
Resolve the PR conflicts by combining main's newer chat IPC and atomic-file-operation changes with the validated stable-branch guards and tests.
@iLevyTate iLevyTate merged commit c85ffc7 into main Mar 8, 2026
6 checks passed
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