Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: disable verbose thinking for vLLM OpenCode presets
[._.]/ Adam Eivyc48403c2c3f1
diff --git a/data.reference/providers.json b/data.reference/providers.jsonindex a9df24ab70..84a3f2a0b6 100644--- a/data.reference/providers.json+++ b/data.reference/providers.json@@ -362,6 +362,7 @@"endpoint": "http://127.0.0.1:18020/v1","apiKey": "","vllmBacked": true,+ "thinking": false,"models": ["qwen3.8-27b"],@@ -383,6 +384,7 @@"endpoint": "http://127.0.0.1:18020/v1","apiKey": "","vllmBacked": true,+ "thinking": false,"models": ["qwen3.8-27b"],diff --git a/scripts/generate-provider-samples.js b/scripts/generate-provider-samples.jsindex 784aefeea3..528f39f704 100644--- a/scripts/generate-provider-samples.js+++ b/scripts/generate-provider-samples.js@@ -270,7 +270,7 @@ const TUPLES = [id: 'opencode-vllm', harnessId: 'opencode', method: 'cli',service: { definitionId: 'vllm', transports: { openai: { baseUrl: 'http://127.0.0.1:18020/v1' } } },overrides: {- name: 'OpenCode vLLM (Qwen3.8-27B)', enabled: false,+ name: 'OpenCode vLLM (Qwen3.8-27B)', enabled: false, thinking: false,endpoint: 'http://127.0.0.1:18020/v1', apiKey: '', models: ['qwen3.8-27b'], defaultModel: 'qwen3.8-27b',envVars: { OPENCODE_CONFIG_CONTENT: opencodeConfigContent('vllm', 'vLLM Qwen3.8-27B (local)', 'http://127.0.0.1:18020/v1') },},@@ -279,7 +279,7 @@ const TUPLES = [id: 'opencode-vllm-tui', harnessId: 'opencode', method: 'tui',service: { definitionId: 'vllm', transports: { openai: { baseUrl: 'http://127.0.0.1:18020/v1' } } },overrides: {- name: 'OpenCode vLLM TUI (Qwen3.8-27B)', enabled: false,+ name: 'OpenCode vLLM TUI (Qwen3.8-27B)', enabled: false, thinking: false,endpoint: 'http://127.0.0.1:18020/v1', apiKey: '', models: ['qwen3.8-27b'], defaultModel: 'qwen3.8-27b',tuiIdleTimeoutMs: 180000,envVars: { OPENCODE_CONFIG_CONTENT: opencodeConfigContent('vllm', 'vLLM Qwen3.8-27B (local)', 'http://127.0.0.1:18020/v1') },diff --git a/scripts/migrations/285-opencode-vllm-providers.js b/scripts/migrations/285-opencode-vllm-providers.jsindex f788d34de9..5211389c4a 100644--- a/scripts/migrations/285-opencode-vllm-providers.js+++ b/scripts/migrations/285-opencode-vllm-providers.js@@ -45,6 +45,7 @@ const OPENCODE_VLLM_CLI = {models: ['qwen3.8-27b'],defaultModel: 'qwen3.8-27b',vllmBacked: true,+ thinking: false,timeout: 600000,enabled: false,envVars: { OPENCODE_CONFIG_CONTENT },@@ -63,6 +64,7 @@ const OPENCODE_VLLM_TUI = {models: ['qwen3.8-27b'],defaultModel: 'qwen3.8-27b',vllmBacked: true,+ thinking: false,timeout: 600000,enabled: false,envVars: { OPENCODE_CONFIG_CONTENT },diff --git a/scripts/migrations/399-vllm-concise-default.js b/scripts/migrations/399-vllm-concise-default.jsnew file mode 100644index 0000000000..2dd82ba28a--- /dev/null+++ b/scripts/migrations/399-vllm-concise-default.js@@ -0,0 +1,32 @@+/**+ * Make the Qwen vLLM OpenCode wrappers concise by default.+ *+ * Qwen's chat template enables reasoning when the request omits the flag. Keep+ * an explicit operator choice intact; only fill the previously-unset default.+ */+import { readFile } from 'node:fs/promises';+import { join } from 'node:path';+import { atomicWrite } from '../../server/lib/fileUtils.js';++const IDS = new Set(['opencode-vllm', 'opencode-vllm-tui']);++export default {+ async up({ rootDir }) {+ const path = join(rootDir, 'data/providers.json');+ const raw = await readFile(path, 'utf8').catch((error) => {+ if (error.code === 'ENOENT') return null;+ throw error;+ });+ if (raw === null) return;+ const document = JSON.parse(raw);+ const providers = document.providers;+ if (!providers || typeof providers !== 'object') return;+ let changed = false;+ for (const [id, provider] of Object.entries(providers)) {+ if (!IDS.has(id) || !provider || typeof provider !== 'object' || Object.hasOwn(provider, 'thinking')) continue;+ provider.thinking = false;+ changed = true;+ }+ if (changed) await atomicWrite(path, document);+ },+};diff --git a/scripts/migrations/399-vllm-concise-default.test.js b/scripts/migrations/399-vllm-concise-default.test.jsnew file mode 100644index 0000000000..0dce16883a--- /dev/null+++ b/scripts/migrations/399-vllm-concise-default.test.js@@ -0,0 +1,23 @@+import { describe, expect, it } from 'vitest';+import { mkdtemp, mkdir, readFile, writeFile, rm } from 'node:fs/promises';+import { join } from 'node:path';+import { tmpdir } from 'node:os';+import migration from './399-vllm-concise-default.js';++describe('vLLM concise default migration', () => {+ it('fills only unset vLLM wrapper defaults', async () => {+ const rootDir = await mkdtemp(join(tmpdir(), 'vllm-concise-'));+ await mkdir(join(rootDir, 'data'));+ await writeFile(join(rootDir, 'data/providers.json'), JSON.stringify({ providers: {+ 'opencode-vllm': { id: 'opencode-vllm' },+ 'opencode-vllm-tui': { id: 'opencode-vllm-tui', thinking: true },+ other: { id: 'other' },+ }}));+ await migration.up({ rootDir });+ const providers = JSON.parse(await readFile(join(rootDir, 'data/providers.json'), 'utf8')).providers;+ expect(providers['opencode-vllm'].thinking).toBe(false);+ expect(providers['opencode-vllm-tui'].thinking).toBe(true);+ expect(providers.other.thinking).toBeUndefined();+ await rm(rootDir, { recursive: true });+ });+});diff --git a/server/lib/aiToolkit/defaults/providers.sample.json b/server/lib/aiToolkit/defaults/providers.sample.jsonindex 9cce590fe6..93a4c70d3c 100644--- a/server/lib/aiToolkit/defaults/providers.sample.json+++ b/server/lib/aiToolkit/defaults/providers.sample.json@@ -362,6 +362,7 @@"endpoint": "http://127.0.0.1:18020/v1","apiKey": "","vllmBacked": true,+ "thinking": false,"models": ["qwen3.8-27b"],@@ -383,6 +384,7 @@"endpoint": "http://127.0.0.1:18020/v1","apiKey": "","vllmBacked": true,+ "thinking": false,"models": ["qwen3.8-27b"],diff --git a/server/lib/opencodeConfig.test.js b/server/lib/opencodeConfig.test.jsindex 74bfab5d7c..a4d5c225ca 100644--- a/server/lib/opencodeConfig.test.js+++ b/server/lib/opencodeConfig.test.js@@ -311,6 +311,15 @@ describe('buildOpencodeEnvVars', () => {expect(JSON.parse(result.OPENCODE_CONFIG_CONTENT).agent).toBeUndefined();});+ it('forwards the concise vLLM preset as disabled chat-template thinking', () => {+ const result = buildOpencodeEnvVars(+ { command: 'opencode', vllmBacked: true, models: [], thinking: false },+ 'qwen3.8-27b',+ );+ expect(JSON.parse(result.OPENCODE_CONFIG_CONTENT).agent.build.chat_template_kwargs)+ .toEqual({ enable_thinking: false });+ });+it("injects the vLLM container's API key into options.apiKey, and no ORCAROUTER_API_KEY", () => {const result = buildOpencodeEnvVars({command: 'opencode',