Add OpenCode auto accept feature

This commit is contained in:
Mohamed Boudra
2026-05-26 21:51:04 +07:00
parent 0ab41fbd9a
commit 6d205f8853
11 changed files with 265 additions and 65 deletions

View File

@@ -27,6 +27,7 @@ interface ProviderLaunchConfig {
model?: string;
thinkingOptionId?: string;
modeId?: string;
featureValues?: Record<string, unknown>;
}
const SEND_TIMEOUT_MS = 240_000;
@@ -52,7 +53,12 @@ function fullAccessConfig(provider: RewindFlowProvider): ProviderLaunchConfig {
modeId: "full-access",
};
case "opencode":
return { provider, model: "opencode/big-pickle", modeId: "full-access" };
return {
provider,
model: "opencode/big-pickle",
modeId: "build",
featureValues: { auto_accept: true },
};
case "pi":
return {
provider,