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.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(agentic-ide): quieter user bubble and plain picture thumbnails in threads
rubenluetke10-beepc5243835184f
diff --git a/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsx b/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsxindex b9b5a712c1..2b2931a516 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/ChatAttachmentStrip.tsx@@ -30,18 +30,87 @@ export function ChatAttachmentStrip({analyzing,onRemove,previews = {},+ look = "card",}: {attachments: ChatAttachment[];analyzing: number;onRemove: (name: string) => void;/** A picture per image or video attachment, keyed by its name. */previews?: Record<string, string>;+ /**+ * "thumbnail" shows the picture alone, with no name and no read receipt.+ * For composers whose agent opens the file itself (the thread view hands+ * a coding CLI the path), where whether the backend could describe the+ * file says nothing about whether the agent will see it.+ */+ look?: "card" | "thumbnail";}) {const t = useT();// A picture that failed to load (an older backend, a file swept since)// falls back to the file's icon instead of an empty frame.const [broken, setBroken] = useState<Record<string, boolean>>({});if (attachments.length === 0 && analyzing === 0) return null;+ if (look === "thumbnail") {+ return (+ <div data-testid="chat-attachments" className="flex max-h-40 shrink-0 flex-wrap items-center gap-2 overflow-y-auto scrollbar-jarvis">+ {attachments.map((item) => {+ const media = attachmentMedia(item);+ const preview = media && !broken[item.name] ? previews[item.name] : undefined;+ const Icon = media === "video" ? Film : item.kind === "image" ? ImageIcon : FileText;+ const markBroken = () => setBroken((prev) => ({ ...prev, [item.name]: true }));+ return (+ <span+ key={item.name}+ data-testid={`chat-attachment-${item.name}`}+ data-media={preview ? media : undefined}+ title={item.name}+ className={cn(+ "group/attachment relative flex h-16 shrink-0 items-center overflow-hidden rounded-xl border border-border bg-secondary",+ preview ? "max-w-[10rem]" : "max-w-[14rem] gap-2 px-3 text-muted-foreground",+ )}+ >+ {preview && media === "video" ? (+ <>+ <video src={preview} muted playsInline preload="metadata" onError={markBroken} className="h-full w-auto max-w-[10rem] object-cover" />+ <span aria-hidden className="pointer-events-none absolute inset-0 flex items-center justify-center">+ <span className="flex h-6 w-6 items-center justify-center rounded-full bg-black/55 text-white">+ <Play className="ml-0.5 h-3 w-3 fill-current" />+ </span>+ </span>+ </>+ ) : preview ? (+ <img src={preview} alt={item.name} onError={markBroken} className="h-full w-auto min-w-[4rem] max-w-[10rem] object-cover" />+ ) : (+ <>+ <Icon className="h-4 w-4 shrink-0" aria-hidden />+ <span className="truncate pr-3 text-xs font-medium text-foreground">{item.name}</span>+ </>+ )}+ <button+ type="button"+ aria-label={fill(t("agent_chat.attach_remove"), { name: item.name })}+ data-testid={`chat-attachment-remove-${item.name}`}+ onClick={() => onRemove(item.name)}+ className="absolute right-1 top-1 inline-flex h-5 w-5 items-center justify-center rounded-full bg-black/55 text-white opacity-0 transition-opacity hover:bg-black/75 focus-visible:opacity-100 focus-visible:ring-1 focus-visible:ring-ring group-hover/attachment:opacity-100 [@media(hover:none)]:opacity-100"+ >+ <X className="h-3 w-3" />+ </button>+ </span>+ );+ })}+ {analyzing > 0 && (+ <span+ data-testid="chat-attachment-working"+ aria-label={t("agent_chat.attach_working")}+ title={t("agent_chat.attach_working")}+ className="flex h-16 w-16 items-center justify-center rounded-xl border border-dashed border-border text-muted-foreground"+ >+ <Loader2 className="h-4 w-4 animate-spin" aria-hidden />+ </span>+ )}+ </div>+ );+ }return (<divdata-testid="chat-attachments"diff --git a/jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsx b/jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsxindex 9c8a4f5034..9d01eb8705 100644--- a/jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsx+++ b/jarvis/ui/web/frontend/src/components/agentchat/chatAttachments.test.tsx@@ -7,7 +7,8 @@ import { EMPTY_TIMELINE, reduceEvent } from "@/components/agentchat/reduce";import { useFileDropGuard } from "@/hooks/useFileDropGuard";import { useAgentChatStore } from "@/store/agentChat";import { useEventStore } from "@/store/events";-import type { AgentChatCatalog } from "@/lib/agentChatApi";+import { ChatAttachmentStrip } from "@/components/agentchat/ChatAttachmentStrip";+import type { AgentChatCatalog, ChatAttachment } from "@/lib/agentChatApi";/*** Files in the chat composer — the drop, the paste, and what travels with the@@ -321,3 +322,20 @@ describe("the app-wide file drop guard", () => {expect(event.defaultPrevented).toBe(false);});});++describe("the thumbnail strip", () => {+ it("shows the picture alone, without a read receipt", () => {+ render(+ <ChatAttachmentStrip+ look="thumbnail"+ attachments={[{ name: "shot.png", kind: "image", described_by: "none", detail: "", note: "" } as unknown as ChatAttachment]}+ analyzing={0}+ onRemove={() => {}}+ previews={{ "shot.png": "blob:shot" }}+ />,+ );+ const card = screen.getByTestId("chat-attachment-shot.png");+ expect(card.querySelector("img")?.getAttribute("src")).toBe("blob:shot");+ expect(card.textContent).not.toContain("not described");+ });+});diff --git a/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadComposer.tsx b/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadComposer.tsxindex 0f28743836..bb33b0e354 100644--- a/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadComposer.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadComposer.tsx@@ -343,7 +343,7 @@ export function ThreadComposer({<QuestionPanel timeline={timeline} />{(files.attachments.length > 0 || files.analyzing > 0) && <div className="px-3 pt-3 sm:px-4"><ChatAttachmentStrip attachments={files.attachments} analyzing={files.analyzing}- onRemove={files.remove} previews={files.previews} />+ onRemove={files.remove} previews={files.previews} look="thumbnail" /></div>}<textarea ref={textareaRef} value={value} rows={2} data-testid="thread-composer-input"aria-label="Message the coding agent"diff --git a/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadTimeline.tsx b/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadTimeline.tsxindex ab4dd7b913..c671d6bf95 100644--- a/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadTimeline.tsx+++ b/jarvis/ui/web/frontend/src/components/agentic/threads/ThreadTimeline.tsx@@ -360,7 +360,7 @@ function clock(ms: number): string {function UserBubble({ item }: { item: UserItem }) {return <div className="group flex flex-col items-end gap-1" data-testid="thread-user-message">- <div className="jarvis-user-bubble max-w-[80%] rounded-2xl px-4 py-2.5">+ <div className="max-w-[80%] rounded-2xl bg-secondary px-4 py-2.5 text-foreground">{item.attachments.length > 0 && <div className="mb-2 flex flex-wrap justify-end gap-2">{item.attachments.map((file) => file.url && file.kind === "image"? <img key={file.name} src={file.url} alt={file.name} className="h-24 max-w-[200px] rounded-lg border border-border object-cover" />