An open-source, faster Devin alternative
TypeScript
dashboard: list a resource opened by ID in the memory selector
Igor Zalutskiaaf7bbed57b4
diff --git a/web/src/managed-agents/Memory.tsx b/web/src/managed-agents/Memory.tsxindex e1e2f784..10bd799e 100644--- a/web/src/managed-agents/Memory.tsx+++ b/web/src/managed-agents/Memory.tsx@@ -446,24 +446,36 @@ export function ManagedProjectMemory({: 'No active deployment declares memory here; open a resource by ID.')}>- {declared.length ? (+ {declared.length || resource ? (<Selectid="memory-resource"value={resource ?? ''}onValueChange={setSelectedResource}- options={declared.map((candidate) => ({- value: candidate.id,- label: candidate.id,- ...(candidate.provider.maxBytes- ? { hint: formatMemoryBytes(candidate.provider.maxBytes) }- : {}),- }))}+ options={[+ ...declared.map((candidate) => ({+ value: candidate.id,+ label: candidate.id,+ ...(candidate.provider.maxBytes+ ? { hint: formatMemoryBytes(candidate.provider.maxBytes) }+ : {}),+ })),+ // A resource opened by ID that no active deployment declares.+ ...(resource && !declaration+ ? [+ {+ value: resource,+ label: resource,+ hint: 'not declared',+ },+ ]+ : []),+ ]}placeholder="Choose a resource"/>) : (<Inputid="memory-resource"- value={resource ?? ''}+ value=""readOnlyplaceholder="No resource selected"/>