mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
feat(frontend): open session details from the header
Pressing the session title opens a details sheet with server, project, branch and directory and inline rename. Linked-server sessions show a server icon and their branch, child sessions show a parent session pill, a banner marks paused live updates while the stream reconnects, and the header context indicator is removed now that usage lives on the model pill.
This commit is contained in:
1 parent
52162d5c4a
commit
d99fcc268e
20 files changed
+732
-418
No files matched your search
@@ -8,7 +8,7 @@ import type {
|
||||
V2Event,
|
||||
} from '@opencode-manager/shared/opencode'
|
||||
import { useSessionTranscript } from './useSessionTranscript'
|
||||
import { ContextUsageIndicator } from '@/components/session/ContextUsageIndicator'
|
||||
import { useContextUsage } from './useContextUsage'
|
||||
import { OpenCodeServerProvider } from '@/contexts/OpenCodeServerContext'
|
||||
import { applySessionEvent, emptySessionTranscript } from '@/lib/session-projection'
|
||||
import type { TranscriptCache } from '@/lib/session-projection'
|
||||
@@ -1129,13 +1129,8 @@ describe('useSessionTranscript', () => {
|
||||
function PageConsumers() {
|
||||
const { messages } = useSessionTranscript(SESSION_ID, DIRECTORY)
|
||||
pageMessages.current = messages
|
||||
return (
|
||||
<ContextUsageIndicator
|
||||
directory={DIRECTORY}
|
||||
sessionID={SESSION_ID}
|
||||
isConnected
|
||||
/>
|
||||
)
|
||||
useContextUsage(SESSION_ID, DIRECTORY)
|
||||
return null
|
||||
}
|
||||
|
||||
render(<PageConsumers />, { wrapper: createWrapper(queryClient) })
|
||||
|
||||
Reference in new issue
Block a user