mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
session.moved is published on the old directory and carries the new one in data.location, so it reached the page. useSSE refreshed the cached session on session.renamed but had no session.moved case, and the event context only invalidated session lists, so the page kept using the old directory and never subscribed the new one. Shells, prompts and other directory-scoped events in the new directory were missed until a refocus, reconnect or reload. Handle session.moved like session.renamed. The refetch flips the page's sessionDirectory, it subscribes the new directory, and the stream's onDirectoriesSubscribed reconciliation loads that directory's running shells and pending prompts.