Skip to content

fix: plugin cache miss for some existing lazygits #227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 22, 2025
Merged

Conversation

mikavilpas
Copy link
Owner

Two possible problems were fixed:

  • after force_quitting lazygit, the cache was not cleared, which sometimes caused problems when trying to open a new lazygit in the same directory
  • sometimes the lazygit cache was bypassed because snacks reported it being closed, but it was actually still open.

I added strict assertions to ensure that the cache is always respected.

Also refactored the cache into its own module, and added some accessors.

Two possible problems were fixed:

- after force_quitting lazygit, the cache was not cleared, which
  sometimes caused problems when trying to open a new lazygit in the
  same directory
- sometimes the lazygit cache was bypassed because snacks reported it
  being `closed`, but it was actually still open.

I added strict assertions to ensure that the cache is always respected.

Also refactored the cache into its own module, and added some accessors.
@mikavilpas mikavilpas enabled auto-merge (squash) June 22, 2025 08:50
@mikavilpas
Copy link
Owner Author

See #225 (comment) to understand why the build fails

@mikavilpas mikavilpas disabled auto-merge June 22, 2025 08:51
@mikavilpas mikavilpas merged commit 59444c0 into main Jun 22, 2025
0 of 11 checks passed
@mikavilpas mikavilpas deleted the fix-cache branch June 22, 2025 08:51
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