mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-11 00:47:52 +00:00
feat: show .env syntax highlighting and markdown viewer
This commit is contained in:
@@ -153,6 +153,13 @@ export function useProjectsState({
|
||||
void fetchProjects();
|
||||
}, [fetchProjects]);
|
||||
|
||||
// Auto-select the project when there is only one, so the user lands on the new session page
|
||||
useEffect(() => {
|
||||
if (!isLoadingProjects && projects.length === 1 && !selectedProject && !sessionId) {
|
||||
setSelectedProject(projects[0]);
|
||||
}
|
||||
}, [isLoadingProjects, projects, selectedProject, sessionId]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!latestMessage) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user