Skip to content

Wipe the config directory of the e2e profile too - #107

Closed
vmillet-dev wants to merge 1 commit into
mainfrom
fix/wipe-the-whole-e2e-profile
Closed

vmillet-dev wants to merge 1 commit into
mainfrom
fix/wipe-the-whole-e2e-profile

Conversation

@vmillet-dev

Copy link
Copy Markdown
Owner

resetProfile() wiped app_data_dir() and called the profile clean. Since
#99 that is no longer the whole profile: tauri-plugin-window-state writes
.window-state.json under app_config_dir(), and on Linux those are two
different directories — ~/.local/share/<id> against ~/.config/<id>.

So on Linux the window geometry survived every wipe, and a run opened on the
window the run before it closed with. Windows cannot tell the two apart —
both are %APPDATA%\<id> — which is why the hole never showed there, and CI
never met it either: its runners are new each time.

Both directories are wiped now, de-duplicated so Windows still does one pass,
and the "could not be wiped" guard names whichever one survived.

docs/architecture.md says so where it states the rule.

The suite is 15/15 in 3:52 locally.

🤖 Generated with Claude Code

tauri-plugin-window-state writes .window-state.json under app_config_dir(),
which on Linux is not app_data_dir() — so the window geometry survived the
wipe and a run opened on the window the previous one closed with. Windows
cannot tell the two directories apart, which is why it passed there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vmillet-dev

Copy link
Copy Markdown
Owner Author

Folded into #106 — one pull request for the e2e suite rather than two. The commit is cherry-picked there unchanged.

@vmillet-dev
vmillet-dev deleted the fix/wipe-the-whole-e2e-profile branch September 14, 2026 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant