Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
Merge branch 'main' of https://github.com/janhq/jan into feat/assistant-chat-button
markmehere0fdffe85793a
diff --cc web-app/src/containers/ChatInput.tsxindex d4f0411af,c6103e6bc..f6a24fd01--- a/web-app/src/containers/ChatInput.tsx+++ b/web-app/src/containers/ChatInput.tsx@@@ -88,8 -88,6 +88,7 @@@ import JanBrowserExtensionDialog from 'import { useJanBrowserExtension } from '@/hooks/useJanBrowserExtension'import { PromptVisionModel } from '@/containers/PromptVisionModel'import { useAgentMode } from '@/hooks/useAgentMode'- import { isOpenClawRunning } from '@/utils/openclaw'+import { AssistantsMenu } from '@/components/AssistantsMenu'type ChatInputProps = {className?: string@@@ -142,17 -140,12 +141,16 @@@ const ChatInput = memo(function ChatInpuseTools()const router = useRouter()const createThread = useThreads((state) => state.createThread)- const assistants = useAssistant((state) => state.assistants)- const defaultAssistantId = useAssistant((state) => state.defaultAssistantId)+ const {+ loading,+ currentAssistant,+ setCurrentAssistant,+ assistants+ } = useAssistant()- // Agent mode (OpenClaw)+ // Agent mode// Use TEMPORARY_CHAT_ID as fallback key on the home screen (same pattern as attachments)const agentModeKey = currentThreadId ?? TEMPORARY_CHAT_ID- const [openClawAvailable, setOpenClawAvailable] = useState(false)const isAgentMode = useAgentMode((state) =>state.agentThreads[agentModeKey] === true)