feat: warn at startup when context repositories are not enabled (#1396)

Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
Sarah Wooders
2026-03-15 18:54:28 -07:00
committed by GitHub
parent d6856fa5da
commit cc32bb5d8d

View File

@@ -113,6 +113,11 @@ export function WelcomeScreen({
? "API key auth"
: "OAuth";
// Check if memfs (context repositories) is enabled for this agent
const memfsEnabled = agentState?.id
? settingsManager.isMemfsEnabled(agentState.id)
: true; // Don't warn while agent is still loading
return (
<Box flexDirection="row" marginTop={1}>
{/* Left column: Logo */}
@@ -140,6 +145,13 @@ export function WelcomeScreen({
? tildePath
: getLoadingMessage(loadingState, !!continueSession)}
</Text>
{/* Row 4: memfs warning if not enabled (skip for self-hosted servers) */}
{loadingState === "ready" && !memfsEnabled && authMethod !== "url" && (
<Text color="yellow">
Warning: Context repositories are not enabled for this agent. Run
/memfs enable to enable.
</Text>
)}
</Box>
</Box>
);