fix(tui): gate debug footer stub behind LETTA_DEBUG_FOOTER env var (#1302)
Co-authored-by: Letta Code <noreply@letta.com>
This commit is contained in:
@@ -269,20 +269,23 @@ const InputFooter = memo(function InputFooter({
|
||||
useSyncExternalStore(subscribeToSubagents, getSubagentSnapshot);
|
||||
const backgroundAgents = [
|
||||
...getActiveBackgroundAgents(),
|
||||
// DEBUG: hardcoded agent for local footer testing
|
||||
{
|
||||
id: "debug-bg-agent",
|
||||
type: "Reflection",
|
||||
description: "Debug background agent",
|
||||
status: "running" as const,
|
||||
agentURL: "https://app.letta.com/chat/agent-debug-link",
|
||||
toolCalls: [],
|
||||
totalTokens: 0,
|
||||
durationMs: 0,
|
||||
startTime: Date.now() - 12_000,
|
||||
isBackground: true,
|
||||
silent: true,
|
||||
},
|
||||
...(process.env.LETTA_DEBUG_FOOTER === "1"
|
||||
? [
|
||||
{
|
||||
id: "debug-bg-agent",
|
||||
type: "Reflection",
|
||||
description: "Debug background agent",
|
||||
status: "running" as const,
|
||||
agentURL: "https://app.letta.com/chat/agent-debug-link",
|
||||
toolCalls: [],
|
||||
totalTokens: 0,
|
||||
durationMs: 0,
|
||||
startTime: Date.now() - 12_000,
|
||||
isBackground: true,
|
||||
silent: true,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
];
|
||||
|
||||
// Tick counter for elapsed time display (only active when background agents exist)
|
||||
|
||||
Reference in New Issue
Block a user