Prune unbounded process-lifetime maps (bound conversations, task watchers, bridge sockets) #4

Open
opened 2026-09-02 02:35:45 -04:00 by toph · 0 comments
Owner

Location

src-tauri/src/app_state.rs, src-tauri/src/services/tasks.rs, src-tauri/src/services/issue_bridge/mod.rs

Problem

With the explicit project close lifecycle removed:

  • bound_conversation_ids in AppState grows monotonically over the application runtime.
  • tasks.watchers file watchers and issue_bridge Unix domain socket servers remain running indefinitely for every folder opened during the app session.

Suggested Fix

Implement reference counting or LRU/eviction cleanup for folder-scoped watchers and bridge sockets when all tabs belonging to a folder are closed.

### Location `src-tauri/src/app_state.rs`, `src-tauri/src/services/tasks.rs`, `src-tauri/src/services/issue_bridge/mod.rs` ### Problem With the explicit project close lifecycle removed: - `bound_conversation_ids` in `AppState` grows monotonically over the application runtime. - `tasks.watchers` file watchers and `issue_bridge` Unix domain socket servers remain running indefinitely for every folder opened during the app session. ### Suggested Fix Implement reference counting or LRU/eviction cleanup for folder-scoped watchers and bridge sockets when all tabs belonging to a folder are closed.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
toph/Sworm#4
No description provided.