From 586332df9c198562ab0bb5233ccb40e3b1f9d26c Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Tue, 14 Apr 2026 18:41:45 +0200 Subject: [PATCH] Fix OpenCode DWIM session resume --- dotfiles/desktop/.emacs.d/lisp/misc/custom-functions.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/desktop/.emacs.d/lisp/misc/custom-functions.el b/dotfiles/desktop/.emacs.d/lisp/misc/custom-functions.el index ed4b51d..0b434be 100644 --- a/dotfiles/desktop/.emacs.d/lisp/misc/custom-functions.el +++ b/dotfiles/desktop/.emacs.d/lisp/misc/custom-functions.el @@ -126,7 +126,7 @@ Each entry is a cons cell of display string and session id." (defun fscotto/project-opencode-latest-session-id () "Return the latest saved OpenCode session id for the current project." - (car (last (car (fscotto/opencode-session-candidates (fscotto/project-root)))))) + (cdr (car (fscotto/opencode-session-candidates (fscotto/project-root))))) (defun fscotto/project-opencode-dwim () "Open the most useful OpenCode session for the current project.