fix: 修复 OpenCode 运行时启动与本地打包
This commit is contained in:
@@ -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) });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user