chore: show agent url in commands (#60)

Co-authored-by: Shubham Naik <shub@memgpt.ai>
This commit is contained in:
Shubham Naik
2025-11-04 10:54:27 -08:00
committed by GitHub
parent 23a06d7c96
commit d4d03ab22b
4 changed files with 49 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ interface InputAssistProps {
cursorPosition: number;
onFileSelect: (path: string) => void;
onAutocompleteActiveChange: (isActive: boolean) => void;
agentId?: string;
serverUrl?: string;
}
/**
@@ -19,6 +21,8 @@ export function InputAssist({
cursorPosition,
onFileSelect,
onAutocompleteActiveChange,
agentId,
serverUrl,
}: InputAssistProps) {
// Show file autocomplete when @ is present
if (currentInput.includes("@")) {
@@ -34,7 +38,13 @@ export function InputAssist({
// Show command preview when input starts with /
if (currentInput.startsWith("/")) {
return <CommandPreview currentInput={currentInput} />;
return (
<CommandPreview
currentInput={currentInput}
agentId={agentId}
serverUrl={serverUrl}
/>
);
}
// No assistance needed