diff --git a/app/src/lib/components/ChatBoxContainer.svelte b/app/src/lib/components/ChatBoxContainer.svelte
index 8656066..b3d0865 100644
--- a/app/src/lib/components/ChatBoxContainer.svelte
+++ b/app/src/lib/components/ChatBoxContainer.svelte
@@ -5,13 +5,14 @@
export let loading = false;
export let searchTerm: string;
export let showIcon = false;
+ export let disabled = false;
-
+
diff --git a/app/src/lib/components/ChatContainer.svelte b/app/src/lib/components/ChatContainer.svelte
index c51613c..c625b38 100644
--- a/app/src/lib/components/ChatContainer.svelte
+++ b/app/src/lib/components/ChatContainer.svelte
@@ -1,6 +1,9 @@
@@ -12,5 +15,14 @@
-
+ {#if !$sessionCompleted$}
+
+ {/if}
diff --git a/app/src/lib/components/CheckFinalResponse.svelte b/app/src/lib/components/CheckFinalResponse.svelte
index 57fc5e1..4d5e9f8 100644
--- a/app/src/lib/components/CheckFinalResponse.svelte
+++ b/app/src/lib/components/CheckFinalResponse.svelte
@@ -7,9 +7,12 @@
{#if finalResponse}
-
-
-
-
-
-
-
+ {#if $sessionCompleted$}
+
+ {:else}
+
+
+
+
+
+
+
+ {/if}
{/if}
diff --git a/app/src/lib/stores/sessionContext.svelte.ts b/app/src/lib/stores/sessionContext.svelte.ts
index f55f8c0..30a8e84 100644
--- a/app/src/lib/stores/sessionContext.svelte.ts
+++ b/app/src/lib/stores/sessionContext.svelte.ts
@@ -1,7 +1,7 @@
import type { ContentCategory } from '@/utils/types';
import { setContext, getContext } from 'svelte';
import { persisted } from 'svelte-persisted-store';
-import { writable } from 'svelte/store';
+import { derived, writable } from 'svelte/store';
const CONTEXT_KEY = {};
export const SESSION_KEY = 'AUDIOCAST_SESSION';
@@ -26,10 +26,12 @@ export type Session = {
export function setSessionContext(sessionId: string) {
const session$ = persisted(`${SESSION_KEY}_${sessionId}`, null);
const sessionId$ = writable(sessionId);
+ const sessionCompleted$ = derived(session$, ($session) => !!$session?.completed);
return setContext(CONTEXT_KEY, {
session$,
sessionId$,
+ sessionCompleted$,
startSession: (category: ContentCategory) => {
session$.set({
id: sessionId,