feat(worktree): worktree tabs, server env vars, and multi-directory SSE (#240)

* loop: worktree-tabs-2 completed after 4 iterations

* loop: server-env-vars completed after 7 iterations

* feat(worktree): add worktree tabs and server env vars settings

* refactor(worktree): multi-directory SSE support and workspace chip row

* feat(workspace): collapsible workspace manager and sibling filtering

* feat(workspace): workspace creation endpoint, refactored workspace manager, and tests

* refactor(frontend): unify workspace label and remove dead code

- extract shared workspaceLabel helper into api/repos and reuse in
  WorkspaceManager and RepoDetail directoryLabels
- remove unused useSessions hook and subscribeToDirectory subscription
- drop redundant frontend workspace dedup now guaranteed by backend
- align WorktreeTabs empty-state test with create-workspace button
This commit is contained in:
Chris Scott authored and GitHub committed 2026-05-30 19:44:07 -04:00
1 parent 60ed756a0b
commit b9236f7f20
38 files changed
+2423 -133

No files matched your search

@@ -3,7 +3,6 @@ import { createBrowserEventStreamTransport } from './browserTransport'
import type {
EventStreamHealthState,
EventStreamStatusHandler,
EventStreamSubscription,
EventStreamTransport,
GlobalMonitorSubscription,
OpenCodeEventHandler,
@@ -58,22 +57,6 @@ export class OpenCodeEventStream {
}
}
subscribeToDirectory(input: {
directory: string
onEvent: OpenCodeEventHandler
onStatusChange?: EventStreamStatusHandler
onHealthChange?: (state: EventStreamHealthState) => void
}): EventStreamSubscription {
const id = this.addSubscriber(input.onEvent, input.onStatusChange, input.onHealthChange)
this.updateSubscriberDirectories(id, [input.directory])
return {
reconnect: () => this.reconnect(),
reportVisibility: (visible, activeSessionId) => this.reportVisibility(visible, activeSessionId),
dispose: () => this.removeSubscriber(id),
}
}
getHealth(): EventStreamHealthState {
return this.buildHealth()
}