mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 20:34:18 +01:00
Merge remote-tracking branch 'origin/feat/linked-opencode-servers' into feat/remote-server-automation
# Conflicts: # backend/src/services/remote-server-events.ts # frontend/src/components/navigation/MoreDrawer.test.tsx # frontend/src/components/navigation/moreDrawerItems.test.ts # frontend/src/lib/opencode-event-stream/openCodeEventStream.ts # frontend/src/pages/SessionDetail.tsx # frontend/src/pages/__tests__/SessionDetail.remote.test.tsx
This commit is contained in:
commit
780d31087b
92 files changed
+3828
-817
No files matched your search
@@ -48,6 +48,8 @@ interface UseSessionsAcrossDirectoriesOptions {
|
||||
allDirectories?: boolean
|
||||
project?: { id: string; subpath: string }
|
||||
includeChildren?: boolean
|
||||
/** Overrides the route's server for callers that always read a specific server, such as local active work. */
|
||||
serverId?: string
|
||||
}
|
||||
|
||||
type SessionDirectoryCursors = Record<string, string>
|
||||
@@ -65,7 +67,8 @@ export const useSessionsAcrossDirectories = (
|
||||
directories: string[],
|
||||
options?: UseSessionsAcrossDirectoriesOptions,
|
||||
) => {
|
||||
const serverId = useOpenCodeServerId();
|
||||
const routeServerId = useOpenCodeServerId();
|
||||
const serverId = options?.serverId ?? routeServerId;
|
||||
const uniqueDirectories = useMemo(
|
||||
() => Array.from(new Set(directories.filter(Boolean))),
|
||||
[directories],
|
||||
|
||||
Reference in new issue
Block a user