mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Improve chat UI with scroll management and bash command handling
This commit is contained in:
1 parent
8e955f783b
commit
64e49a8a52
9 files changed
+353
-149
No files matched your search
@@ -22,6 +22,7 @@ interface SessionDetailHeaderProps {
|
||||
sessionTitle: string;
|
||||
repoId: number;
|
||||
isConnected: boolean;
|
||||
isReconnecting?: boolean;
|
||||
opcodeUrl: string | null;
|
||||
repoDirectory: string | undefined;
|
||||
onFileBrowserOpen: () => void;
|
||||
@@ -35,6 +36,7 @@ export function SessionDetailHeader({
|
||||
sessionTitle,
|
||||
repoId,
|
||||
isConnected,
|
||||
isReconnecting,
|
||||
opcodeUrl,
|
||||
repoDirectory,
|
||||
onFileBrowserOpen,
|
||||
@@ -139,10 +141,16 @@ export function SessionDetailHeader({
|
||||
</div>
|
||||
<div className="flex items-center gap-1 sm:gap-2">
|
||||
<div
|
||||
className={`w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full ${isConnected ? "bg-green-500" : "bg-red-500"}`}
|
||||
className={`w-1.5 h-1.5 sm:w-2 sm:h-2 rounded-full ${
|
||||
isConnected
|
||||
? "bg-green-500"
|
||||
: isReconnecting
|
||||
? "bg-yellow-500 animate-pulse"
|
||||
: "bg-red-500"
|
||||
}`}
|
||||
/>
|
||||
<span className="text-xs text-muted-foreground hidden sm:inline">
|
||||
{isConnected ? "Connected" : "Disconnected"}
|
||||
{isConnected ? "Connected" : isReconnecting ? "Reconnecting..." : "Disconnected"}
|
||||
</span>
|
||||
</div>
|
||||
<Button
|
||||
|
||||
Reference in new issue
Block a user