Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(conversations): add idle-composer shortcut to human mode

Steven Enamakelf09008cf4317
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 368a46f448..a3afd7c3b6 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -2663,6 +2663,10 @@ const Conversations = ({
attachmentsEnabled={CHAT_ATTACHMENTS_ENABLED}
attachmentInteractionBlocked={composerInteractionBlocked || isSending}
onAttachmentOnlySend={() => void handleComposerSend()}
+ // Idle-composer shortcut to the full-bleed mascot stage. Chat and Human
+ // share one mascot (mascotSlice), so this is a change of venue for the
+ // same conversation partner, not a second one.
+ onOpenHumanMode={() => navigate('/human')}
onModelChange={(value, contextWindow) => {
setComposerModelOverride(value);
setComposerModelContextWindow(contextWindow ?? null);
diff --git a/app/src/features/conversations/components/AssistantUiChat.tsx b/app/src/features/conversations/components/AssistantUiChat.tsx
index 9a0c11f99f..d84fbb15aa 100644
--- a/app/src/features/conversations/components/AssistantUiChat.tsx
+++ b/app/src/features/conversations/components/AssistantUiChat.tsx
@@ -72,6 +72,7 @@ export function AssistantUiChat({
attachmentsEnabled,
attachmentInteractionBlocked,
onAttachmentOnlySend,
+ onOpenHumanMode,
}: {
threadGoal: ThreadGoalController;
model: string | null;
@@ -88,6 +89,8 @@ export function AssistantUiChat({
attachmentsEnabled: boolean;
attachmentInteractionBlocked: boolean;
onAttachmentOnlySend: () => void;
+ /** Opens the Human page from the composer's idle primary slot. */
+ onOpenHumanMode?: () => void;
}) {
const { t } = useT();
const fileInputRef = useRef<HTMLInputElement>(null);
@@ -174,6 +177,7 @@ export function AssistantUiChat({
ToolGroup: ChatToolGroup,
ComposerExtras,
ComposerHeader,
+ onOpenHumanMode,
...(attachmentsEnabled
? {
ComposerAttachments,
@@ -191,6 +195,7 @@ export function AssistantUiChat({
attachments.length,
attachmentsEnabled,
onAttachmentOnlySend,
+ onOpenHumanMode,
]
);