+ {(hasGoal || goalOutcome !== null || hasTodos) && (
- {(hasGoal || goalOutcome !== null || hasTodos) && (
-
-
-
+
+ {hasTodos && (
+
+ )}
+
+
+ )}
+ {modelControl.request && (
+
+ modelControl.choose(response)}
+ />
+
+ )}
+ {modelChoiceSummary && (
+
+ {modelChoiceSummary}
+
+ )}
+ {isIncognito && isWelcomeMode &&
}
+ {mountedRef.current ? (
+
+
+
- {hasTodos && (
-
- )}
-
-
- )}
- {modelControl.request && (
-
- modelControl.choose(response)}
- />
-
- )}
- {modelChoiceSummary && (
-
- {modelChoiceSummary}
-
- )}
- {mountedRef.current ? (
-
-
-
- ) : undefined
- }
- autoFocus={isWelcomeMode}
- status={
- thread.error
- ? "error"
- : thread.isLoading
- ? "streaming"
- : "ready"
- }
- context={settings.context}
- extraHeader={
- isWelcomeMode &&
- !hasGoal &&
- !hasTodos &&
- }
- disabled={
- isMock ||
- env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ||
- isUploading ||
- modelControl.busy ||
- (!isNewThread && isHistoryLoading) ||
- hasPendingApproval
- }
- inputLocked={hasPendingApproval}
- onContextChange={(context, options) => {
- if (options?.automatic)
- resolveThreadContext(threadId, context);
- else setSettings("context", context);
- }}
- onGoalChange={setLocalGoal}
- onPrepareThread={ensureProjectThread}
- onReferenceFileAttached={() => {
- if (!isNewThread) return;
- history.replaceState(
- null,
- "",
- `/workspace/chats/${threadId}`,
- );
- setThreadId(threadId);
- setIsNewThread(false);
- }}
- onSubmit={handleSubmit}
- onBusySubmit={canSendInput ? sendInput : undefined}
- onStop={handleStop}
- canStopStreaming={canStopStreaming}
- canCreateRuns={canCreateRuns}
- />
-
- ) : (
-
- )}
- {env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" && (
-
- {t.common.notAvailableInDemoMode}
-
+ ) : undefined
+ }
+ autoFocus={isWelcomeMode}
+ status={
+ thread.error
+ ? "error"
+ : thread.isLoading
+ ? "streaming"
+ : "ready"
+ }
+ context={settings.context}
+ extraHeader={
+ isWelcomeMode &&
+ !isIncognito &&
+ !hasGoal &&
+ !hasTodos &&
+ }
+ disabled={
+ isMock ||
+ env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" ||
+ isUploading ||
+ modelControl.busy ||
+ (!isNewThread && isHistoryLoading) ||
+ hasPendingApproval
+ }
+ inputLocked={hasPendingApproval}
+ incognito={isIncognito}
+ onContextChange={(context, options) => {
+ if (options?.automatic)
+ resolveThreadContext(threadId, context);
+ else setSettings("context", context);
+ }}
+ onGoalChange={setLocalGoal}
+ onPrepareThread={ensureThreadRow}
+ onReferenceFileAttached={() => {
+ if (!isNewThread) return;
+ history.replaceState(
+ null,
+ "",
+ `/workspace/chats/${threadId}`,
+ );
+ setThreadId(threadId);
+ setIsNewThread(false);
+ }}
+ onSubmit={handleSubmit}
+ onBusySubmit={canSendInput ? sendInput : undefined}
+ onStop={handleStop}
+ canStopStreaming={canStopStreaming}
+ canCreateRuns={canCreateRuns}
+ />
+
+ )}
+ {env.NEXT_PUBLIC_STATIC_WEBSITE_ONLY === "true" && (
+