mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-06-28 07:15:35 +08:00
fix: hide browser use runtime mode
This commit is contained in:
@@ -7,7 +7,6 @@ import { authenticatedFetch } from '../../../utils/api';
|
|||||||
type BrowserUseStatus = {
|
type BrowserUseStatus = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
available: boolean;
|
available: boolean;
|
||||||
runtime: 'cloud' | 'local';
|
|
||||||
playwrightInstalled: boolean;
|
playwrightInstalled: boolean;
|
||||||
chromiumInstalled: boolean;
|
chromiumInstalled: boolean;
|
||||||
installInProgress: boolean;
|
installInProgress: boolean;
|
||||||
@@ -19,7 +18,6 @@ type BrowserUseStatus = {
|
|||||||
|
|
||||||
type BrowserUseSession = {
|
type BrowserUseSession = {
|
||||||
id: string;
|
id: string;
|
||||||
runtime: 'cloud' | 'local';
|
|
||||||
status: 'ready' | 'stopped' | 'unavailable';
|
status: 'ready' | 'stopped' | 'unavailable';
|
||||||
url: string | null;
|
url: string | null;
|
||||||
title: string | null;
|
title: string | null;
|
||||||
@@ -147,11 +145,6 @@ export default function BrowserUsePanel({ isVisible }: BrowserUsePanelProps) {
|
|||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<MonitorPlay className="h-4 w-4 text-primary" />
|
<MonitorPlay className="h-4 w-4 text-primary" />
|
||||||
<h3 className="text-sm font-semibold text-foreground">Browser Use</h3>
|
<h3 className="text-sm font-semibold text-foreground">Browser Use</h3>
|
||||||
{status && (
|
|
||||||
<Badge variant="outline" className="text-[11px]">
|
|
||||||
{status.runtime}
|
|
||||||
</Badge>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<p className="mt-0.5 text-xs text-muted-foreground">
|
<p className="mt-0.5 text-xs text-muted-foreground">
|
||||||
Create browser sessions, watch agent activity, and decide which sessions agents may control.
|
Create browser sessions, watch agent activity, and decide which sessions agents may control.
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ type BrowserUseSettings = {
|
|||||||
type BrowserUseStatus = {
|
type BrowserUseStatus = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
available: boolean;
|
available: boolean;
|
||||||
runtime: 'cloud' | 'local';
|
|
||||||
playwrightInstalled: boolean;
|
playwrightInstalled: boolean;
|
||||||
chromiumInstalled: boolean;
|
chromiumInstalled: boolean;
|
||||||
installInProgress: boolean;
|
installInProgress: boolean;
|
||||||
@@ -137,7 +136,6 @@ export default function BrowserUseSettingsTab() {
|
|||||||
</p>
|
</p>
|
||||||
{status && (
|
{status && (
|
||||||
<div className="flex flex-wrap gap-2 pt-1 text-xs text-muted-foreground">
|
<div className="flex flex-wrap gap-2 pt-1 text-xs text-muted-foreground">
|
||||||
<span className="rounded-md border border-border px-2 py-1">Mode: {status.runtime}</span>
|
|
||||||
<span className="rounded-md border border-border px-2 py-1">
|
<span className="rounded-md border border-border px-2 py-1">
|
||||||
Playwright: {status.playwrightInstalled ? 'installed' : 'missing'}
|
Playwright: {status.playwrightInstalled ? 'installed' : 'missing'}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user