Skip to content

Personal AI, On Personal Devices

Python

fix: rounded icons, setup text overflow, new chat on model switch, token counts

Jon Saad-Falcon7b0fcfa607cf
diff --git a/desktop/src-tauri/icons/128x128.png b/desktop/src-tauri/icons/128x128.png
index bd09dad2..5f67f6c9 100644
Binary files a/desktop/src-tauri/icons/128x128.png and b/desktop/src-tauri/icons/128x128.png differ
diff --git a/desktop/src-tauri/icons/[email protected] b/desktop/src-tauri/icons/[email protected]
index 7edd4dd9..4619edd1 100644
Binary files a/desktop/src-tauri/icons/[email protected] and b/desktop/src-tauri/icons/[email protected] differ
diff --git a/desktop/src-tauri/icons/256x256.png b/desktop/src-tauri/icons/256x256.png
index 7edd4dd9..4619edd1 100644
Binary files a/desktop/src-tauri/icons/256x256.png and b/desktop/src-tauri/icons/256x256.png differ
diff --git a/desktop/src-tauri/icons/32x32.png b/desktop/src-tauri/icons/32x32.png
index 94dcb4c1..9376c23d 100644
Binary files a/desktop/src-tauri/icons/32x32.png and b/desktop/src-tauri/icons/32x32.png differ
diff --git a/desktop/src-tauri/icons/icon.icns b/desktop/src-tauri/icons/icon.icns
index 757a43a2..7d2dddf0 100644
Binary files a/desktop/src-tauri/icons/icon.icns and b/desktop/src-tauri/icons/icon.icns differ
diff --git a/desktop/src-tauri/icons/icon.ico b/desktop/src-tauri/icons/icon.ico
index 4c9c7b03..ca3a8ef8 100644
Binary files a/desktop/src-tauri/icons/icon.ico and b/desktop/src-tauri/icons/icon.ico differ
diff --git a/desktop/src-tauri/icons/icon.png b/desktop/src-tauri/icons/icon.png
index 7687fef2..697e2fc4 100644
Binary files a/desktop/src-tauri/icons/icon.png and b/desktop/src-tauri/icons/icon.png differ
diff --git a/frontend/src/components/Chat/XRayFooter.tsx b/frontend/src/components/Chat/XRayFooter.tsx
index 7000d240..2b1dde95 100644
--- a/frontend/src/components/Chat/XRayFooter.tsx
+++ b/frontend/src/components/Chat/XRayFooter.tsx
@@ -18,7 +18,9 @@ export function XRayFooter({ usage, telemetry }: Props) {
const parts: string[] = [];
if (telemetry?.engine) parts.push(telemetry.engine);
if (telemetry?.model_id) parts.push(telemetry.model_id);
- if (usage?.completion_tokens) parts.push(`${usage.completion_tokens} tok`);
+ if (usage && (usage.prompt_tokens || usage.completion_tokens)) {
+ parts.push(`${usage.prompt_tokens} in \u00B7 ${usage.completion_tokens} out`);
+ }
if (telemetry?.total_ms) parts.push(formatMs(telemetry.total_ms));
if (parts.length === 0 && !usage?.total_tokens) return null;
diff --git a/frontend/src/components/CommandPalette.tsx b/frontend/src/components/CommandPalette.tsx
index d85d67fa..3afff59a 100644
--- a/frontend/src/components/CommandPalette.tsx
+++ b/frontend/src/components/CommandPalette.tsx
@@ -70,9 +70,10 @@ export function CommandPalette() {
setSelectedModel(modelId);
setCommandPaletteOpen(false);
- // Preload the model if switching to a different one
+ // Switching models creates a new chat session for a clean slate
if (modelId !== previousModel) {
- const { setModelLoading, addLogEntry } = useAppStore.getState();
+ const { createConversation, setModelLoading, addLogEntry } = useAppStore.getState();
+ createConversation(modelId);
setModelLoading(true);
addLogEntry({ timestamp: Date.now(), level: 'info', category: 'model', message: `Switching to ${modelId}...` });
try {
diff --git a/frontend/src/components/SetupScreen.tsx b/frontend/src/components/SetupScreen.tsx
index 59fc414f..62449da6 100644
--- a/frontend/src/components/SetupScreen.tsx
+++ b/frontend/src/components/SetupScreen.tsx
@@ -48,7 +48,7 @@ function StepRow({
<div className="text-sm font-medium" style={{ color: 'var(--color-text)' }}>
{label}
</div>
- <div className="text-xs" style={{ color: 'var(--color-text-tertiary)' }}>
+ <div className="text-xs truncate" style={{ color: 'var(--color-text-tertiary)', maxWidth: '280px' }}>
{done ? 'Ready' : active ? detail : 'Waiting...'}
</div>
</div>
@@ -145,7 +145,7 @@ export function SetupScreen({ onReady }: { onReady: () => void }) {
}}
>
<XCircle size={16} className="shrink-0 mt-0.5" />
- <span>{status.error}</span>
+ <span style={{ wordBreak: 'break-word', overflowWrap: 'anywhere' }}>{status.error}</span>
</div>
)}