@devries-cameron20 / t3code-1 / commits / b970bcb34b
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(opencode): use Big Pickle for default text generation (#22442)

Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Utkarsh Patil committed Oct 31, 2026 at 20:17 UTC b970bcb34bab382c315028d4ea1b1ff415eeba29
3 files changed +12 -2
packages/contracts/src/model.ts
+1 -1
@@ -160,7 +160,7 @@ export const DEFAULT_TEXT_GENERATION_MODEL_BY_PROVIDER: Partial<
160 [ProviderDriverKind.make("antigravity")]: ANTIGRAVITY_DEFAULT_MODEL,
161 [CLAUDE_DRIVER_KIND]: "claude-haiku-5-5",
162 [CURSOR_DRIVER_KIND]: "composer-2",
163 - [OPENCODE_DRIVER_KIND]: "openai/gpt-5",
163 + [OPENCODE_DRIVER_KIND]: "opencode/big-pickle",
164 };
165
166 export const MODEL_SLUG_ALIASES_BY_PROVIDER: Partial<
packages/provider-opencode/src/server/textGeneration.ts
+5 -1
@@ -190,7 +190,11 @@ export const makeOpenCodeTextGeneration = Effect.fn("makeOpenCodeTextGeneration"
190 client.session.create(
191 {
192 title: `T3 Code ${input.operation}`,
193 - permission: [{ permission: "*", pattern: "*", action: "deny" }],
193 + // OpenCode Zen refuses free-model requests that carry no tools, so keep read.
194 + permission: [
195 + { permission: "*", pattern: "*", action: "deny" },
196 + { permission: "read", pattern: "*", action: "allow" },
197 + ],
198 },
199 { signal },
200 ),
packages/shared/src/serverSettings.test.ts
+6
@@ -32,6 +32,12 @@ const decodeServerSettingsPatch = Schema.decodeUnknownSync(ServerSettingsPatch);
32 const FOLDED_SERVER_SETTINGS = { ...DEFAULT_SERVER_SETTINGS, projectSettingsFolded: true };
33
34 describe("fallbackTextGenerationModelSelection", () => {
35 + it("uses Big Pickle when only OpenCode is enabled", () => {
36 + expect(
37 + fallbackTextGenerationModelSelection({}, (instanceId) => instanceId === "opencode"),
38 + ).toEqual({ instanceId: "opencode", model: "opencode/big-pickle" });
39 + });
40 +
41 it("replaces and clears the fallback without carrying model options", () => {
42 const fallbackModelSelection = { instanceId: ProviderInstanceId.make("codex"), model: "new" };
43 const settings = applyServerSettingsPatch(