diff options
| author | Michelle Tilley <michelle@michelletilley.net> | 2026-04-21 13:07:27 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-21 13:07:27 -0700 |
| commit | 2f702ad446fcd6a261a3bea0ab2807d70eca43e2 (patch) | |
| tree | 4cfa6276257cefbe73f7fa46a74026170aaf8435 /crates/atuin-ai/src/snapshots.rs | |
| parent | docs: document show_numeric_shortcuts (#3433) (diff) | |
| download | atuin-2f702ad446fcd6a261a3bea0ab2807d70eca43e2.zip | |
refactor: Replace ad-hoc dispatch with FSM + driver architecture (#3434)
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.
Diffstat (limited to 'crates/atuin-ai/src/snapshots.rs')
| -rw-r--r-- | crates/atuin-ai/src/snapshots.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
