fix: make ADE links work in tmux (#613)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Kevin Lin
2026-01-20 22:38:16 -08:00
committed by GitHub
parent 73719bd210
commit 1168a83716
2 changed files with 15 additions and 7 deletions

View File

@@ -37,6 +37,7 @@ export function MemoryTabViewer({
}: MemoryTabViewerProps) {
const terminalWidth = useTerminalWidth();
const solidLine = SOLID_LINE.repeat(Math.max(terminalWidth, 10));
const isTmux = Boolean(process.env.TMUX);
const adeUrl = `https://app.letta.com/agents/${agentId}?view=memory${conversationId ? `&conversation=${conversationId}` : ""}`;
const [selectedTabIndex, setSelectedTabIndex] = useState(0);
@@ -256,9 +257,12 @@ export function MemoryTabViewer({
</Text>
<Box>
<Text dimColor>{" "}/Tab switch · scroll · </Text>
<Link url={adeUrl}>
<Text dimColor>Edit in ADE</Text>
</Link>
{!isTmux && (
<Link url={adeUrl}>
<Text dimColor>Edit in ADE</Text>
</Link>
)}
{isTmux && <Text dimColor>Edit in ADE: {adeUrl}</Text>}
<Text dimColor> · Esc cancel</Text>
</Box>
</Box>