Skip to content

fix: close all projects on daemon shutdown#77

Merged
georgeh0 merged 1 commit intomainfrom
g/ws2
Mar 16, 2026
Merged

fix: close all projects on daemon shutdown#77
georgeh0 merged 1 commit intomainfrom
g/ws2

Conversation

@georgeh0
Copy link
Copy Markdown
Member

Summary

  • When the daemon receives a stop request (or signal), explicitly close all loaded Project objects in the ProjectRegistry before process exit
  • This ensures Rust-side resources (CocoIndex Environment/App) are properly freed, preventing shutdown hangs

Test plan

  • uv run mypy . passes
  • uv run pytest tests/ — all 91 tests pass
  • Manual: start daemon, load a project, stop daemon, verify clean shutdown without hangs

🤖 Generated with Claude Code

When the daemon stops, explicitly close all loaded Projects so Rust-side
resources (CocoIndex Environment/App) are freed before process exit.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@georgeh0 georgeh0 merged commit cd4b237 into main Mar 16, 2026
5 checks passed
@georgeh0 georgeh0 deleted the g/ws2 branch March 16, 2026 07:05
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