Uh oh!
There was an error while loading. Please reload this page.
feat(coder/modules/claude-code): add enable_state_persistence variable - #749
Conversation
…e variable Add the enable_state_persistence variable (bool, default true) and pass it through to the agentapi sub-module. Bump agentapi version to 2.2.0. Add test runs for default and disabled state persistence. Add State Persistence documentation section to README. Refs coder/internal#1258
DevelopmentCats
commented
Feb 23, 2026
Does this play nicely with the existing claude-code session resumption logic? Provided it does LGTM. I can give this some testing as well. |
mafredri
commented
Feb 24, 2026
@DevelopmentCats it will once coder/agentapi#177 is released as well as #736. And thanks for the offer to help testing! I've actually created a template to test this out on dev.coder.com ( |
Tested, works as expected :) |
DevelopmentCats
commented
Feb 24, 2026
@35C4n0r Are you referring to being able to update the task prompt when the workspace is stopped and started again? I believe that you altering this prompt will not trigger the prompt to send again if session resumption is enabled. |
mafredri
commented
Mar 3, 2026
I merged the agentapi module changes and bumped it to v2.2.0. This is now ready for merge as well (and has been tested in the aforementioned Coder template on dogfood). |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Expose the new
enable_state_persistencevariable from the agentapi sub-module so users can control conversation state persistence across workspace restarts.The agentapi module (v2.2.0, from #736) added state persistence support. This PR threads the toggle through to the claude-code wrapper module. The
state_file_pathandpid_file_pathvariables remain internal to agentapi -- only the enable/disable toggle is surfaced.Changes:
enable_state_persistencevariable (bool, defaulttrue) tomain.tfmodule "agentapi"block2.0.0to2.2.04.8.0Refs coder/internal#1258