@khalilgharbaoui/opencode-claude-code-plugin 0.45.0 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +27 -0
- package/dist/index.js +640 -225
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/claude-code-plugin/SKILL.md +28 -5
package/dist/index.d.ts
CHANGED
|
@@ -433,6 +433,8 @@ interface ClaudeCodeConfig {
|
|
|
433
433
|
forkSessions?: boolean;
|
|
434
434
|
/** Resume a conversation's Claude session after opencode restarts. Default true. */
|
|
435
435
|
resumeAfterRestart?: boolean;
|
|
436
|
+
/** Carry a conversation's Claude session over when its model or effort changes. Default true. */
|
|
437
|
+
resumeAcrossModelChanges?: boolean;
|
|
436
438
|
logging?: LoggingConfig;
|
|
437
439
|
}
|
|
438
440
|
interface LoggingConfig {
|
|
@@ -829,6 +831,31 @@ interface ClaudeCodeProviderSettings {
|
|
|
829
831
|
* before. `false` never reads or writes the file.
|
|
830
832
|
*/
|
|
831
833
|
resumeAfterRestart?: boolean;
|
|
834
|
+
/**
|
|
835
|
+
* Carry a conversation's Claude session over when the operator changes its
|
|
836
|
+
* model or its reasoning effort mid-conversation, instead of replaying the
|
|
837
|
+
* whole thread as text into a fresh one. Default `true`.
|
|
838
|
+
*
|
|
839
|
+
* Both the model and the effort level are in the session key, so changing
|
|
840
|
+
* either lands the same opencode conversation on a key nothing has ever
|
|
841
|
+
* answered. That was the other half of issue #91: at least 18 replays in
|
|
842
|
+
* one ~15-hour session. Neither is a reason to start a new Claude
|
|
843
|
+
* conversation, because both are spawn-time choices (`--model`,
|
|
844
|
+
* `CLAUDE_CODE_EFFORT_LEVEL`) that the CLI applies to a transcript it
|
|
845
|
+
* resumes, measured on 2.1.288.
|
|
846
|
+
*
|
|
847
|
+
* It takes the Claude session off the sibling key rather than sharing it, so
|
|
848
|
+
* one conversation is owned by exactly one key, and it is refused on every
|
|
849
|
+
* term `resumeAfterRestart` is refused on (another account, a transcript
|
|
850
|
+
* that is gone, a conversation that has changed) plus two of its own: a
|
|
851
|
+
* sibling whose transcript may still be written to, and anything that is not
|
|
852
|
+
* the same cwd, request scope, opencode session, agent and prompt-cache TTL.
|
|
853
|
+
* A compaction turn and an account-failover switch never take one.
|
|
854
|
+
*
|
|
855
|
+
* It reads the record `resumeAfterRestart` writes, so `resumeAfterRestart:
|
|
856
|
+
* false` turns this off too.
|
|
857
|
+
*/
|
|
858
|
+
resumeAcrossModelChanges?: boolean;
|
|
832
859
|
/**
|
|
833
860
|
* Routing for Claude's built-in `WebSearch` tool.
|
|
834
861
|
*
|