fix: 修复 OpenCode 运行时启动与本地打包

This commit is contained in:
2026-08-09 00:02:49 +08:00
parent d092132d86
commit a6fe14a8d6
20 changed files with 1847 additions and 154 deletions

View File

@@ -1770,7 +1770,7 @@ export async function handleOpencodeRoutes(
if (url.pathname === '/api/opencode/stop' && req.method === 'POST') {
try {
await ctx.opencodeManager.stop();
sendJson(res, 200, { success: true });
sendJson(res, 200, { success: true, status: ctx.opencodeManager.getStatus() });
} catch (error) {
sendJson(res, 500, { success: false, error: String(error) });
}