feat: warn at startup when context repositories are not enabled (#1396)
Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
@@ -113,6 +113,11 @@ export function WelcomeScreen({
|
|||||||
? "API key auth"
|
? "API key auth"
|
||||||
: "OAuth";
|
: "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 (
|
return (
|
||||||
<Box flexDirection="row" marginTop={1}>
|
<Box flexDirection="row" marginTop={1}>
|
||||||
{/* Left column: Logo */}
|
{/* Left column: Logo */}
|
||||||
@@ -140,6 +145,13 @@ export function WelcomeScreen({
|
|||||||
? tildePath
|
? tildePath
|
||||||
: getLoadingMessage(loadingState, !!continueSession)}
|
: getLoadingMessage(loadingState, !!continueSession)}
|
||||||
</Text>
|
</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>
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user