feat(coder/modules/claude-code): add enable_state_persistence variable#749
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
|
Does this play nicely with the existing claude-code session resumption logic? Provided it does LGTM. I can give this some testing as well. |
|
@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 :) |
@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. |
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