mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-17 12:56:41 +02:00
fix(app): use reconcile for session_status in bootstrap to clear stale entries
(cherry picked from commit 912ba2c57f)
This commit is contained in:
@@ -151,7 +151,7 @@ export async function bootstrapDirectory(input: {
|
||||
Promise.all([
|
||||
input.sdk.path.get().then((x) => input.setStore("path", x.data!)),
|
||||
input.sdk.command.list().then((x) => input.setStore("command", x.data ?? [])),
|
||||
input.sdk.session.status().then((x) => input.setStore("session_status", x.data!)),
|
||||
input.sdk.session.status().then((x) => input.setStore("session_status", reconcile(x.data!))),
|
||||
input.loadSessions(input.directory),
|
||||
input.sdk.mcp.status().then((x) => input.setStore("mcp", x.data!)),
|
||||
input.sdk.lsp.status().then((x) => input.setStore("lsp", x.data!)),
|
||||
|
||||
Reference in New Issue
Block a user