Merge branch 'main' into fix/session-streamed-to-another-chat

This commit is contained in:
viper151
2026-01-20 12:59:42 +01:00
committed by GitHub
2 changed files with 193 additions and 25 deletions

View File

@@ -496,7 +496,13 @@ app.get('/api/browse-filesystem', authenticateToken, async (req, res) => {
name: item.name,
type: 'directory'
}))
.slice(0, 20); // Limit results
.sort((a, b) => {
const aHidden = a.name.startsWith('.');
const bHidden = b.name.startsWith('.');
if (aHidden && !bHidden) return 1;
if (!aHidden && bHidden) return -1;
return a.name.localeCompare(b.name);
});
// Add common directories if browsing home directory
const suggestions = [];