RCA-2026-05-18-001: Fix

Resolution

Immediate Actions

1. Remove stale swap files

Delete all orphaned swap files related to domus-captures
rm ~/.local/state/domus-nvim/swap/*domus-captures*

Five files removed:

  • %home%…​%domus-captures%data%d000%education%c%src%ch03%variables.c.swp

  • %home%…​%domus-captures%data%d000%education%c%src%ch03%uninitialized.c.swp

  • %home%…​%domus-captures.swp

  • oil:%%%home%…​%domus-captures%data%d000%.swp — the oil URI swap file

  • %home%…​%domus-captures%data%d000%education%quijote-study%…​%texto-complete.adoc.swp

2. Remove corrupted session file

Delete the session file that contains the unrestorable oil buffer
rm ~/.local/share/domus-nvim/sessions/%2Fhome%2Fevanusmodestus%2Fatelier%2F_bibliotheca%2Fdomus-captures.vim

3. Add oil to session bypass list

Update bypass_session_save_file_types in domus-nvim
-- lua/domus/plugins/specs/tools.lua, line 121
bypass_session_save_file_types = { "alpha", "dashboard", "neo-tree", "oil" },

This prevents auto-session from serializing oil buffers into session files.

Verification

Launch Neovim in domus-captures — should start cleanly with no errors
cd ~/atelier/_bibliotheca/domus-captures && nvim
Verify oil buffers are excluded from new sessions
# Open oil, close nvim, reopen -- oil buffer should not appear
nvim -c "Oil" -c "qa"
nvim
# Session restores without oil buffer or errors