From 41f0935bd347d2c8741acfebaab3f8a6e21307d5 Mon Sep 17 00:00:00 2001 From: wusumac <736139669@qq.com> Date: Tue, 15 Sep 2026 13:58:53 +0800 Subject: [PATCH] fix(deploy): restore sharedCodexRuntime flag lost in v0.30.3 rebase; add compact to opencode slash builtins --- cli/src/runner/run.ts | 1 + shared/src/slashCommands.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/cli/src/runner/run.ts b/cli/src/runner/run.ts index 44872b61..9fdf4480 100644 --- a/cli/src/runner/run.ts +++ b/cli/src/runner/run.ts @@ -1095,6 +1095,7 @@ export async function startRunner(options: { workspaceRoots?: string[] } = {}): // Write initial runner state (no lock needed for state file) const fileState: RunnerLocallyPersistedState = { + sharedCodexRuntime: true, pid: process.pid, httpPort: controlPort, startTime: new Date().toLocaleString(), diff --git a/shared/src/slashCommands.ts b/shared/src/slashCommands.ts index 2a7c9ed0..a97d6579 100644 --- a/shared/src/slashCommands.ts +++ b/shared/src/slashCommands.ts @@ -46,6 +46,7 @@ export const BUILTIN_SLASH_COMMANDS = { { name: 'compact', description: 'Compact older conversation history', source: 'builtin' }, ], opencode: [ + { name: 'compact', description: 'Compact (summarize) the session context', source: 'builtin' }, { name: 'help', description: 'Show supported HAPI OpenCode slash commands', source: 'builtin' }, { name: 'status', description: 'Show current OpenCode session config', source: 'builtin' }, { name: 'plan', description: 'Enable plan mode; use /plan off to return to default', source: 'builtin' },