Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
fix: project should use normal chat
Faisal Amircc8c74d4aafb
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsxindex 93dd0fd93..06e6807fb 100644--- a/web-app/src/containers/ChatInput.tsx+++ b/web-app/src/containers/ChatInput.tsx@@ -150,6 +150,8 @@ const ChatInput = memo(function ChatInput({const isAgentMode = useAgentMode((state) =>state.agentThreads[agentModeKey] === true)+ // When projectId is present, treat as normal chat (disable agent mode UI)+ const effectiveAgentMode = isAgentMode && !projectIdconst toggleAgentMode = useAgentMode((state) => state.toggleAgentMode)useEffect(() => {@@ -1567,7 +1569,7 @@ const ChatInput = memo(function ChatInput({)}>{/* Dropdown for attachments — hidden in agent mode */}- {!isAgentMode && (+ {!effectiveAgentMode && (<DropdownMenu><DropdownMenuTrigger asChild><Button variant="secondary" size="icon-sm" className='rounded-full mr-2 mb-1'>@@ -1686,7 +1688,7 @@ const ChatInput = memo(function ChatInput({useLastUsedModel={initialMessage}/>)} */}- {!isAgentMode && hasJanBrowserMCPConfig && modelSupportsBrowser && (+ {!effectiveAgentMode && hasJanBrowserMCPConfig && modelSupportsBrowser && (<Tooltip><TooltipTrigger asChild><Button@@ -1728,7 +1730,7 @@ const ChatInput = memo(function ChatInput({</Tooltip>)}- {!isAgentMode && selectedModel?.capabilities?.includes('embeddings') && (+ {!effectiveAgentMode && selectedModel?.capabilities?.includes('embeddings') && (<Tooltip><TooltipTrigger asChild><Button@@ -1747,7 +1749,7 @@ const ChatInput = memo(function ChatInput({</Tooltip>)}- {!isAgentMode && selectedModel?.capabilities?.includes('tools') &&+ {!effectiveAgentMode && selectedModel?.capabilities?.includes('tools') &&hasActiveMCPServers &&(MCPToolComponent ? (// Use custom MCP component@@ -1812,7 +1814,7 @@ const ChatInput = memo(function ChatInput({</Tooltip>))}- {openClawAvailable && (!!currentThreadId || isAgentMode) && (+ {openClawAvailable && !projectId && isAgentMode && (<Tooltip><TooltipTrigger asChild><Button@@ -1842,7 +1844,7 @@ const ChatInput = memo(function ChatInput({</Tooltip>)}- {!isAgentMode && selectedModel?.capabilities?.includes('web_search') && (+ {!effectiveAgentMode && selectedModel?.capabilities?.includes('web_search') && (<Tooltip><TooltipTrigger asChild><Button variant="ghost" size="icon-xs">@@ -1858,7 +1860,7 @@ const ChatInput = memo(function ChatInput({</Tooltip>)}- {!isAgentMode && selectedModel?.capabilities?.includes('reasoning') && (+ {!effectiveAgentMode && selectedModel?.capabilities?.includes('reasoning') && (<Tooltip><TooltipTrigger asChild><Button variant="ghost" size="icon-xs">