Avatar Customization + Update Agent Brain (#23)
Co-authored-by: iamlukethedev <iamlukethedev@users.noreply.github.com>
This commit is contained in:
+11
-1
@@ -2,11 +2,21 @@ import { Suspense } from "react";
|
||||
import { AgentStoreProvider } from "@/features/agents/state/store";
|
||||
import { OfficeScreen } from "@/features/office/screens/OfficeScreen";
|
||||
|
||||
const ENABLED_RE = /^(1|true|yes|on)$/i;
|
||||
|
||||
const readDebugFlag = (value: string | undefined): boolean => {
|
||||
const normalized = (value ?? "").trim();
|
||||
if (!normalized) return true;
|
||||
return ENABLED_RE.test(normalized);
|
||||
};
|
||||
|
||||
export default function OfficePage() {
|
||||
const showOpenClawConsole = readDebugFlag(process.env.DEBUG);
|
||||
|
||||
return (
|
||||
<AgentStoreProvider>
|
||||
<Suspense fallback={null}>
|
||||
<OfficeScreen />
|
||||
<OfficeScreen showOpenClawConsole={showOpenClawConsole} />
|
||||
</Suspense>
|
||||
</AgentStoreProvider>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user