feat: show .env syntax highlighting and markdown viewer

This commit is contained in:
simosmik
2026-02-16 13:48:11 +00:00
parent afe1be7fca
commit 412102c531
11 changed files with 664 additions and 53 deletions

View File

@@ -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;