Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config/overrides/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,16 @@
"author": "Chat UI Team",
"short_description": "File transfer test tool",
"help_email": "support@chatui.example.com"
},
"prompts": {
"command": ["python", "mcp/prompts/main.py"],
"cwd": "backend",
"groups": ["users"],
"is_exclusive": false,
"description": "Specialized system prompts for AI behavior modification",
"author": "Chat UI Team",
"short_description": "AI behavior prompts",
"help_email": "support@chatui.example.com"
}

}
9 changes: 7 additions & 2 deletions frontend/src/components/LogViewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ export default function LogViewer() {
return r.json();
})
.then(data => {
setEntries(data.entries || []);
const newEntries = data.entries || [];
// Reset to page 0 if auto-scroll is enabled and new entries were added
if (autoScrollEnabled && newEntries.length > entries.length) {
setPage(0);
}
setEntries(newEntries);
setError(null);
// After updating entries, scroll to bottom if auto-scroll is enabled and user hasn't scrolled up
requestAnimationFrame(() => {
Expand All @@ -52,7 +57,7 @@ export default function LogViewer() {
})
.catch(err => setError(err))
.finally(() => setLoading(false));
}, [levelFilter, moduleFilter, autoScrollEnabled]); // Dependencies for fetchLogs
}, [levelFilter, moduleFilter, autoScrollEnabled, entries.length]); // Dependencies for fetchLogs

// Function to clear all logs
const clearLogs = useCallback(() => {
Expand Down
Loading