@@ -31,6 +31,7 @@ import { ModelSelector, DEFAULT_MODEL, type Model } from "@/components/model-sel
3131import { SkillsSelector , buildSkillsContext , type Skill } from "@/components/skills-selector" ;
3232import { ProvenancePanel } from "@/components/provenance-panel" ;
3333import { WorkflowsPanel } from "@/components/workflows-panel" ;
34+ import { APP_VERSION , useUpdateCheck } from "@/lib/version" ;
3435import { useAgent , type ActivityItem } from "@/lib/use-agent" ;
3536import { useConfig } from "@/lib/use-config" ;
3637import { useSkills } from "@/lib/use-skills" ;
@@ -559,6 +560,7 @@ export default function ChatPage() {
559560 const isStreaming = status === "streaming" || status === "submitted" ;
560561 const sandbox = useSandbox ( isStreaming ) ;
561562 const config = useConfig ( ) ;
563+ const { updateAvailable } = useUpdateCheck ( ) ;
562564 const { skills : allSkills } = useSkills ( ) ;
563565 const [ copiedId , setCopiedId ] = useState < string | null > ( null ) ;
564566 const [ panelOpen , setPanelOpen ] = useState ( true ) ;
@@ -711,17 +713,30 @@ export default function ChatPage() {
711713 < div className = "flex h-dvh flex-col" >
712714 { /* Header */ }
713715 < header className = "relative flex items-center justify-between border-b px-6 py-3" >
714- < a href = "https://www.k-dense.ai" target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
715- < Image
716- src = "/brand/kdense-logo.png"
717- alt = "K-Dense BYOK"
718- width = { 120 }
719- height = { 28 }
720- className = "h-7 w-auto object-contain"
721- priority
722- />
723- < span className = "text-sm font-semibold tracking-tight text-foreground/80" > BYOK</ span >
724- </ a >
716+ < div className = "flex items-center gap-2" >
717+ < a href = "https://www.k-dense.ai" target = "_blank" rel = "noopener noreferrer" className = "flex items-center gap-2" >
718+ < Image
719+ src = "/brand/kdense-logo.png"
720+ alt = "K-Dense BYOK"
721+ width = { 120 }
722+ height = { 28 }
723+ className = "h-7 w-auto object-contain"
724+ priority
725+ />
726+ < span className = "text-sm font-semibold tracking-tight text-foreground/80" > BYOK</ span >
727+ </ a >
728+ < span className = "text-[11px] text-muted-foreground/60" > v{ APP_VERSION } </ span >
729+ { updateAvailable && (
730+ < a
731+ href = "https://github.com/K-Dense-AI/k-dense-byok"
732+ target = "_blank"
733+ rel = "noopener noreferrer"
734+ className = "text-[11px] font-medium text-blue-500 hover:text-blue-400 transition-colors"
735+ >
736+ Update available
737+ </ a >
738+ ) }
739+ </ div >
725740 < p className = "absolute left-1/2 -translate-x-1/2 text-[11px] text-muted-foreground/60 tracking-wide select-none" >
726741 Brought to you by K-Dense, Inc.
727742 </ p >
0 commit comments