Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

feat(chat): open the front page the way the Codex app does

rubenluetke10-beepb78463039474
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx
index 0c809d846c..daf30df602 100644
--- a/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx
+++ b/jarvis/ui/web/frontend/src/components/agentchat/AgentComposer.tsx
@@ -12,6 +12,7 @@ import {
NotebookPen,
Paperclip,
ShieldCheck,
+ ShieldOff,
Square,
} from "lucide-react";
@@ -552,7 +553,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {
className={cn(
"relative flex flex-col transition-[border-color,box-shadow]",
minimal
- ? "gap-1.5 rounded-[22px] border border-border bg-card px-3 pb-2.5 pt-3 shadow-rim focus-within:border-border-strong"
+ ? "gap-1 rounded-2xl border border-border bg-card px-2.5 pb-2 pt-2.5 shadow-rim focus-within:border-border-strong"
: "gap-2 rounded-2xl border border-border-strong bg-card p-3 shadow-rim focus-within:border-primary/40",
files.dragging && "border-primary/60",
)}
@@ -602,7 +603,7 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {
pasteRescue.onPaste();
files.onPaste(e);
}}
- className={cn("max-h-[50vh] text-reading scrollbar-jarvis", minimal && "min-h-[52px] px-1.5")}
+ className={cn("max-h-[50vh] scrollbar-jarvis", minimal ? "min-h-[44px] px-1.5 text-base" : "text-reading")}
/>
{minimal ? (
<div className="flex items-center gap-1" data-testid="composer-row">
@@ -626,10 +627,12 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {
}
disabled={!connected || busy}
/>
+ {/* The stance in words, like the Codex app: a person should read
+ "Full access" before sending, not decode a glyph. A stance that
+ asks for nothing wears the warning hue. */}
{provider && permissionModes.length > 0 && (
- <span title={locks?.permissionMode ?? permissionDescription} className="inline-flex">
+ <span title={locks?.permissionMode ?? permissionDescription} className="inline-flex min-w-0">
<Combobox
- iconOnly
value={permissionValue}
groups={permissionGroups}
onChange={(v) => void setDraft({ permissionMode: v })}
@@ -638,7 +641,13 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {
disabled={Boolean(locks?.permissionMode)}
testId="composer-permission"
triggerHint={false}
- className="h-8 w-8 justify-center gap-0 rounded-full bg-transparent p-0 text-muted-foreground shadow-none hover:bg-secondary focus-visible:ring-1 [&_svg]:h-4 [&_svg]:w-4"
+ chevron={false}
+ className={cn(
+ "h-8 w-auto max-w-[200px] gap-1.5 rounded-full bg-transparent px-2 py-0 text-xs font-medium shadow-none hover:bg-secondary focus-visible:ring-1 [&_svg]:h-3.5 [&_svg]:w-3.5",
+ permissionModeIcon(permissionValue) === ShieldOff
+ ? "text-warning [&_svg]:text-warning"
+ : "text-muted-foreground",
+ )}
/>
</span>
)}
@@ -686,6 +695,10 @@ export function AgentComposer({ autoFocus = false }: { autoFocus?: boolean }) {
disabled={!catalog || (Boolean(locks?.provider) && Boolean(locks?.model))}
title={locks?.model ?? locks?.provider}
className="max-w-[240px]"
+ // The model reads as a word; the provider's mark (with its red
+ // dot) only joins it when that seat is failing.
+ triggerIcon={Boolean(provider?.connected && liveHealthFor(provider, health[provider.id])?.status === "error")}
+ chevron={false}
/>
{provider && effortLevels.length > 1 && (
<Pick
@@ -1109,6 +1122,8 @@ function Pick({
title,
className,
muted = false,
+ triggerIcon = true,
+ chevron = true,
}: {
testId: string;
ariaLabel: string;
@@ -1123,6 +1138,8 @@ function Pick({
className?: string;
/** Muted ink — a secondary pick beside a primary one (the effort word). */
muted?: boolean;
+ triggerIcon?: boolean;
+ chevron?: boolean;
}) {
// The Combobox draws the selected option's own icon; the leading glyph here
// is the column's, shown when the option has none (model, effort, permission).
@@ -1144,6 +1161,8 @@ function Pick({
disabled={disabled}
testId={testId}
triggerHint={false}
+ triggerIcon={triggerIcon}
+ chevron={chevron}
className={cn(
"h-7 w-auto max-w-[200px] gap-1.5 rounded-lg border-transparent bg-transparent py-0 pr-1.5 text-xs font-medium shadow-none",
muted ? "text-muted-foreground" : "text-foreground",
diff --git a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx
index 97c38ffbcb..864e7682d7 100644
--- a/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/ChatStage.tsx
@@ -202,19 +202,27 @@ function ChatStageContent() {
// chat is coding sessions and never shows a spoken thread.
if (surface === "jarvis" && voiceThreadId && !activeSessionId) return <VoiceThreadStage />;
- // The front page opens the way the Claude app does: one short line and
- // the composer, a little above the middle, nothing else to read first.
+ // The front page opens the way the Codex app does: the greeting alone in
+ // the middle of the page, the composer already where it will stay — at the
+ // bottom — so the first send moves nothing.
+ if (!hasContent && isJarvis) {
+ return (
+ <div className="flex min-h-0 flex-1 flex-col items-center" data-testid="chat-stage" data-empty="true">
+ <div className="flex w-full flex-1 flex-col items-center justify-center px-6 pb-8">
+ <Greeting />
+ </div>
+ <div className="relative w-full max-w-[720px] px-6 pb-5 pt-2">
+ <AgentComposer autoFocus />
+ </div>
+ </div>
+ );
+ }
+
if (!hasContent) {
return (
<div className="flex min-h-0 flex-1 flex-col items-center" data-testid="chat-stage" data-empty="true">
- <div
- className={
- isJarvis
- ? "flex w-full max-w-[680px] flex-1 flex-col justify-center gap-7 px-6 pb-[14vh]"
- : "flex w-full max-w-[720px] flex-1 flex-col justify-center gap-8 px-6 pb-20"
- }
- >
- {isJarvis ? <Greeting /> : <FolderHeadline folder={cwd} subtitle={subtitle} />}
+ <div className="flex w-full max-w-[720px] flex-1 flex-col justify-center gap-8 px-6 pb-20">
+ <FolderHeadline folder={cwd} subtitle={subtitle} />
<AgentComposer autoFocus />
</div>
</div>
diff --git a/jarvis/ui/web/frontend/src/components/home/Greeting.tsx b/jarvis/ui/web/frontend/src/components/home/Greeting.tsx
index eae63af20b..6a2fbba8af 100644
--- a/jarvis/ui/web/frontend/src/components/home/Greeting.tsx
+++ b/jarvis/ui/web/frontend/src/components/home/Greeting.tsx
@@ -32,9 +32,11 @@ export function Greeting({
)}
data-testid="home-greeting"
>
- <h1 className="flex items-center gap-3 font-display text-2xl text-foreground-strong [text-wrap:balance]">
- <GigiMark size={34} className="rounded-[10px]" />
- <span>{text}</span>
+ {/* The mark above, the line under it in regular weight — the Codex
+ app's opening, quieter than a bold headline beside a logo. */}
+ <GigiMark size={40} className="mb-4 rounded-xl opacity-90" />
+ <h1 className="text-2xl font-normal tracking-tight text-foreground [text-wrap:balance]">
+ {text}
</h1>
{subtitle && !muted && (
<p className="mt-2 max-w-md text-base text-muted-foreground">{subtitle}</p>
diff --git a/jarvis/ui/web/frontend/src/components/ui/combobox.tsx b/jarvis/ui/web/frontend/src/components/ui/combobox.tsx
index 0a577f18e5..1edee2d934 100644
--- a/jarvis/ui/web/frontend/src/components/ui/combobox.tsx
+++ b/jarvis/ui/web/frontend/src/components/ui/combobox.tsx
@@ -97,6 +97,10 @@ export interface ComboboxProps {
* is on; the accessible name and the open list still carry the words.
*/
iconOnly?: boolean;
+ /** Draw the selected option's icon on the trigger (default). */
+ triggerIcon?: boolean;
+ /** Draw the open/close chevron on the trigger (default). */
+ chevron?: boolean;
}
/** Panel height cap — roughly nine rows, enough to show that more exist. */
@@ -218,6 +222,8 @@ export function Combobox({
testId,
triggerHint = true,
iconOnly = false,
+ triggerIcon = true,
+ chevron = true,
}: ComboboxProps) {
const [open, setOpen] = useState(false);
const [query, setQuery] = useState("");
@@ -502,7 +508,7 @@ export function Combobox({
className,
)}
>
- {selected?.icon}
+ {triggerIcon && selected?.icon}
<span className={iconOnly ? "sr-only" : "min-w-0 flex-1 truncate"}>{triggerLabel}</span>
{!iconOnly && triggerHint && selected?.hint && (
<span className="shrink-0 truncate text-sm text-muted-foreground">
@@ -513,7 +519,7 @@ export function Combobox({
aria-hidden="true"
className={cn(
"h-4 w-4 shrink-0 text-muted-foreground transition-transform",
- iconOnly && "hidden",
+ (iconOnly || !chevron) && "hidden",
// Body ink, not --primary: an open chevron is a decoration, and a
// decoration is never brighter than the label it sits beside.
open && "rotate-180 text-foreground",