From 1af1f7b266d4b0daca509ebd5bd8bfe761c1a930 Mon Sep 17 00:00:00 2001 From: southseact-3d Date: Tue, 10 Feb 2026 18:43:41 +0000 Subject: [PATCH] try again --- chat/server.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/chat/server.js b/chat/server.js index 95d9c50..e5ab742 100644 --- a/chat/server.js +++ b/chat/server.js @@ -5188,10 +5188,8 @@ async function ensureOpencodeSession(session, model) { try { const cliCommand = resolveCliCommand('opencode'); const listCandidates = [ - ['session', '--list', '--json'], - ['sessions', '--list', '--json'], - ['session', 'list', '--json'], - ['sessions', 'list', '--json'], + ['session', 'list', '--format', 'json'], + ['sessions', 'list', '--format', 'json'], ]; let stdout = ''; @@ -16459,7 +16457,7 @@ async function handleRedoMessage(req, res, sessionId, messageId, userId) { log('Sending redo command to opencode', { sessionId, messageId, opencodeSessionId: session.opencodeSessionId }); const cliCommand = resolveCliCommand('opencode'); - const args = ['--message', '/redo', '--session', session.opencodeSessionId]; + const args = ['run', '--session', session.opencodeSessionId, '/redo']; await runCommand(cliCommand, args, { cwd: session.workspaceDir || REPO_ROOT,