Use filesystem watcher instead of 250ms polling for Antigravity resume binding #7

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

Location

src-tauri/src/commands/sessions.rs (spawn_bind_thread)

Problem

The Antigravity conversation binding thread polls ~/.gemini/antigravity-cli/conversations every 250ms for up to 20 seconds using SQLite/fs stat queries to detect when the CLI writes a new conversation database.

Suggested Fix

Use a notify directory watcher on the conversations folder (with a fallback timeout) to discover new conversation databases reactively instead of polling.

### Location `src-tauri/src/commands/sessions.rs` (`spawn_bind_thread`) ### Problem The Antigravity conversation binding thread polls `~/.gemini/antigravity-cli/conversations` every 250ms for up to 20 seconds using SQLite/fs stat queries to detect when the CLI writes a new conversation database. ### Suggested Fix Use a `notify` directory watcher on the conversations folder (with a fallback timeout) to discover new conversation databases reactively instead of polling.
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#7
No description provided.