Description
I have snapsnots disabled in ~/.codewhale/config.toml
[snapshots]
enabled = false
max_age_days = 7
but found my entire git repo was copied to ~/.deepseek/snapshots/a7cc237dcc939c78/a7cc237dcc939c78/.git which takes up GBs of disk space.
Root case (AI generated)
There are three snapshot call sites in the engine, but only two respect snapshots_enabled:
| Snapshot call |
Gated by enabled? |
File:Line |
pre_turn_snapshot |
✅ Yes |
crates/tui/src/core/engine.rs:979 |
post_turn_snapshot |
✅ Yes |
crates/tui/src/core/engine.rs:2120 |
pre_tool_snapshot |
❌ No |
crates/tui/src/core/engine/turn_loop.rs:2082 |
Steps to reproduce
-
Set [snapshots] enabled = false in ~/.codewhale/config.toml (or ~/.deepseek/config.toml).
-
Start codewhale, send a message that triggers file writes.
-
Check the snapshot directory — new tool:call_* git commits are still created.
# e.g. on Linux/macOS
cd ~/.deepseek/snapshots/*/*
git log --oneline | head -5
Expected: no snapshots at all.
Actual: tool:call_* commits continue to appear.
Expected behavior
Actual behavior
Impact
Environment
- OS:
- codewhale version: 0.8.60
- Install method:
codewhale doctor summary:
- Model/provider:
- Terminal app:
- Shell:
Logs, screenshots, or recordings
Description
I have snapsnots disabled in
~/.codewhale/config.tomlbut found my entire git repo was copied to
~/.deepseek/snapshots/a7cc237dcc939c78/a7cc237dcc939c78/.gitwhich takes up GBs of disk space.Root case (AI generated)
There are three snapshot call sites in the engine, but only two respect
snapshots_enabled:enabled?pre_turn_snapshotcrates/tui/src/core/engine.rs:979post_turn_snapshotcrates/tui/src/core/engine.rs:2120pre_tool_snapshotcrates/tui/src/core/engine/turn_loop.rs:2082Steps to reproduce
Set
[snapshots] enabled = falsein~/.codewhale/config.toml(or~/.deepseek/config.toml).Start codewhale, send a message that triggers file writes.
Check the snapshot directory — new
tool:call_*git commits are still created.Expected: no snapshots at all.
Actual:
tool:call_*commits continue to appear.Expected behavior
Actual behavior
Impact
Environment
codewhale doctorsummary:Logs, screenshots, or recordings