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

@@ -2826,8 +2826,8 @@ export const useOpencodeStore = create<OpencodeState>((set, get) => ({
async stop() {
closeActiveSessionEventSource();
await runRuntimeAction('/api/opencode/stop', set, {
...get().status,
state: 'stopped',
port: get().status.port,
});
set({
health: null,