Is it possible to restore OpenCode session? #120
Answered
by
nickjvandyke
winston0410
asked this question in
Q&A
-
|
I am using the native nvim session. At the moment after I exit and enter nvim again, opencode would be started with a completely new session. From OpenCode's doc, it seems to be possible to get the id of a session, and use that id to restore it. Can it be done with this plugin? |
Beta Was this translation helpful? Give feedback.
Answered by
nickjvandyke
Jan 8, 2026
Replies: 1 comment 1 reply
-
|
Try |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
winston0410
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try
vim.g.opencode_opts.provider.cmd = 'opencode --continue'. That flag should resume the previous session in the TUI 🙂