From 2f702ad446fcd6a261a3bea0ab2807d70eca43e2 Mon Sep 17 00:00:00 2001 From: Michelle Tilley Date: Tue, 21 Apr 2026 13:07:27 -0700 Subject: refactor: Replace ad-hoc dispatch with FSM + driver architecture (#3434) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the tangled dispatch handler system (`tui/dispatch.rs`, `tui/state.rs`) with a pure finite state machine + driver architecture. The FSM handles all state transitions as explicit `(State, Event) → (NewState, Effects)` mappings. The driver executes IO effects and bridges the TUI to the FSM. --- crates/atuin-ai/src/snapshots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/atuin-ai/src/snapshots.rs') diff --git a/crates/atuin-ai/src/snapshots.rs b/crates/atuin-ai/src/snapshots.rs index 6c7b0c9c..d46223a8 100644 --- a/crates/atuin-ai/src/snapshots.rs +++ b/crates/atuin-ai/src/snapshots.rs @@ -94,7 +94,7 @@ impl SnapshotStore { } /// Whether a file has already been snapshotted in this session. - #[expect(dead_code)] + #[cfg(test)] pub fn has_snapshot(&self, canonical_path: &Path) -> bool { let filename = sanitize_path(canonical_path); self.manifest.files.contains_key(&filename) -- cgit v1.3.1