build: remember last models

This commit is contained in:
2026-03-23 16:54:51 +05:30
parent fabd2f6519
commit af5d888f56
10 changed files with 204 additions and 43 deletions
+9
View File
@@ -1,3 +1,10 @@
/**
* Settings stored in ~/.config/opencode-multi-model/settings.json
*/
export interface MultiModelSettings {
lastModels: string[];
}
/**
* Options for launching a multi-model tmux session.
*/
@@ -10,6 +17,8 @@ export interface MultiModelOptions {
binaryName?: string;
/** Caller context: 'cli' shows shell commands, 'tool' shows tool instructions. */
mode: "cli" | "tool";
/** Save models to settings file on successful launch (CLI only). */
saveToSettings?: boolean;
}
/**