fix: add conv query param to ADE links

This commit is contained in:
cpacker
2026-01-13 18:15:53 -08:00
parent 36cd3efabd
commit 595f706fd6
6 changed files with 31 additions and 8 deletions

View File

@@ -9,6 +9,7 @@ interface AgentInfoBarProps {
agentId?: string;
agentName?: string | null;
serverUrl?: string;
conversationId?: string;
}
/**
@@ -18,6 +19,7 @@ export const AgentInfoBar = memo(function AgentInfoBar({
agentId,
agentName,
serverUrl,
conversationId,
}: AgentInfoBarProps) {
// Check if current agent is pinned
const isPinned = useMemo(() => {
@@ -54,7 +56,9 @@ export const AgentInfoBar = memo(function AgentInfoBar({
</Box>
<Box>
{isCloudUser && (
<Link url={`https://app.letta.com/agents/${agentId}`}>
<Link
url={`https://app.letta.com/agents/${agentId}${conversationId ? `?conversation=${conversationId}` : ""}`}
>
<Text>Open in ADE </Text>
</Link>
)}

View File

@@ -15,6 +15,7 @@ interface InputAssistProps {
agentName?: string | null;
serverUrl?: string;
workingDirectory?: string;
conversationId?: string;
}
/**
@@ -34,6 +35,7 @@ export function InputAssist({
agentName,
serverUrl,
workingDirectory,
conversationId,
}: InputAssistProps) {
const showFileAutocomplete = currentInput.includes("@");
const showCommandAutocomplete =
@@ -79,6 +81,7 @@ export function InputAssist({
agentId={agentId}
agentName={agentName}
serverUrl={serverUrl}
conversationId={conversationId}
/>
</Box>
);

View File

@@ -131,6 +131,7 @@ export function Input({
ralphPending = false,
ralphPendingYolo = false,
onRalphExit,
conversationId,
}: {
visible?: boolean;
streaming: boolean;
@@ -154,6 +155,7 @@ export function Input({
ralphPending?: boolean;
ralphPendingYolo?: boolean;
onRalphExit?: () => void;
conversationId?: string;
}) {
const [value, setValue] = useState("");
const [escapePressed, setEscapePressed] = useState(false);
@@ -824,6 +826,7 @@ export function Input({
agentName={agentName}
serverUrl={serverUrl}
workingDirectory={process.cwd()}
conversationId={conversationId}
/>
<InputFooter

View File

@@ -14,6 +14,7 @@ interface MemoryViewerProps {
agentId: string;
agentName: string | null;
onClose: () => void;
conversationId?: string;
}
/**
@@ -39,9 +40,10 @@ export function MemoryViewer({
agentId,
agentName,
onClose,
conversationId,
}: MemoryViewerProps) {
// Construct ADE URL for this agent's memory
const adeUrl = `https://app.letta.com/agents/${agentId}?view=memory`;
const adeUrl = `https://app.letta.com/agents/${agentId}?view=memory${conversationId ? `&conversation=${conversationId}` : ""}`;
const [selectedIndex, setSelectedIndex] = useState(0);
const [currentPage, setCurrentPage] = useState(0);