diff --git a/cptr/frontend/src/app.html b/cptr/frontend/src/app.html
index ec5e73b..5e17d40 100644
--- a/cptr/frontend/src/app.html
+++ b/cptr/frontend/src/app.html
@@ -15,7 +15,7 @@
-
+
%sveltekit.head%
diff --git a/cptr/frontend/src/lib/components/Admin/Models.svelte b/cptr/frontend/src/lib/components/Admin/Models.svelte
index 0f98ea7..cd580f8 100644
--- a/cptr/frontend/src/lib/components/Admin/Models.svelte
+++ b/cptr/frontend/src/lib/components/Admin/Models.svelte
@@ -61,12 +61,12 @@
{ name: 'ARCH', desc: 'Machine architecture' },
{ name: 'SHELL', desc: 'Default shell path' },
{ name: 'HOME', desc: 'Home directory' },
- { name: 'CPTR_VERSION', desc: 'cptr version' },
+ { name: 'CPTR_VERSION', desc: 'Computer version' },
{ name: 'DATE', desc: 'Current date (ISO format)' },
{ name: 'MODEL', desc: 'Model ID being used' }
];
- const DEFAULT_PROMPT_PLACEHOLDER = `You are Computer (cptr), a helpful assistant running inside the user's computer interface. You have access to tools to read, search, and modify files in the workspace, run commands, and use configured tools. Use them to help the user directly. Approach hard requests with initiative and persistence: make the best possible attempt, adapt as needed, and keep going unless a real constraint prevents progress.
+ const DEFAULT_PROMPT_PLACEHOLDER = `You are Computer, a helpful assistant running inside the user's computer interface. You have access to tools to read, search, and modify files in the workspace, run commands, and use configured tools. Use them to help the user directly. Approach hard requests with initiative and persistence: make the best possible attempt, adapt as needed, and keep going unless a real constraint prevents progress.
{{CPTR_CONTEXT}}
diff --git a/cptr/frontend/src/lib/components/AuthScreen.svelte b/cptr/frontend/src/lib/components/AuthScreen.svelte
index 48c305a..33bb71e 100644
--- a/cptr/frontend/src/lib/components/AuthScreen.svelte
+++ b/cptr/frontend/src/lib/components/AuthScreen.svelte
@@ -72,7 +72,9 @@
-
cptr
+
+ Computer
+
{#if isSetup}
diff --git a/cptr/frontend/src/lib/components/NotificationToast.svelte b/cptr/frontend/src/lib/components/NotificationToast.svelte
index a423cb8..db9c8ca 100644
--- a/cptr/frontend/src/lib/components/NotificationToast.svelte
+++ b/cptr/frontend/src/lib/components/NotificationToast.svelte
@@ -47,10 +47,7 @@
function onPointerUp(e: PointerEvent) {
(e.currentTarget as HTMLElement).releasePointerCapture?.(e.pointerId);
- if (
- closeButtonEl &&
- (e.target === closeButtonEl || closeButtonEl.contains(e.target as Node))
- ) {
+ if (closeButtonEl && (e.target === closeButtonEl || closeButtonEl.contains(e.target as Node))) {
return;
}
if (!moved) {
@@ -74,22 +71,31 @@
bind:this={closeButtonEl}
class="absolute -top-0.5 -left-0.5 p-0.5 rounded-full opacity-0 group-hover:opacity-100 bg-gray-200 dark:bg-[#222] text-gray-500 dark:text-gray-400 hover:bg-gray-300 dark:hover:bg-[#333] hover:text-gray-700 dark:hover:text-gray-300 border-none cursor-pointer transition-opacity duration-150 z-10"
aria-label={$t('a11y.dismissNotification')}
- onclick={(e) => { e.stopPropagation(); onclose(); }}
+ onclick={(e) => {
+ e.stopPropagation();
+ onclose();
+ }}
>
-
+
-
+
{#if title}
-
{title}
+
+ {title}
+
{/if}
{#if content}
{content}
@@ -102,4 +108,3 @@
min-width: var(--width, 300px);
}
-
diff --git a/cptr/frontend/src/lib/components/Settings/About.svelte b/cptr/frontend/src/lib/components/Settings/About.svelte
index 0cc19f1..bf79b50 100644
--- a/cptr/frontend/src/lib/components/Settings/About.svelte
+++ b/cptr/frontend/src/lib/components/Settings/About.svelte
@@ -3,7 +3,7 @@
import { appVersion, showChangelog, updateAvailable, latestVersion } from '$lib/stores';
const REPO_URL = 'https://github.com/open-webui/computer';
- const SHARE_TEXT = 'Check out cptr. Your computer, from anywhere.';
+ const SHARE_TEXT = 'Check out Computer. Your computer, from anywhere.';
const shareLinks = [
{
@@ -39,7 +39,7 @@
href="https://github.com/open-webui/computer"
target="_blank"
rel="noopener noreferrer"
- class="text-xs font-semibold text-gray-900 dark:text-white hover:underline">cptrComputer
{#if $appVersion}
{$t('about.createdBy')}
-
diff --git a/cptr/frontend/src/lib/components/Sidebar.svelte b/cptr/frontend/src/lib/components/Sidebar.svelte
index 64efb2e..aae4b3f 100644
--- a/cptr/frontend/src/lib/components/Sidebar.svelte
+++ b/cptr/frontend/src/lib/components/Sidebar.svelte
@@ -289,7 +289,7 @@
e.preventDefault();
goto('/');
if (typeof window !== 'undefined' && window.innerWidth < 768) sidebarOpen.set(false);
- }}> Computer Computer
{$activeTab && $activeTab.type !== 'files'
? $currentWorkspace
- ? `${$activeTab.label} / ${$currentWorkspace.name} / cptr`
- : `${$activeTab.label} / cptr`
+ ? `${$activeTab.label} / ${$currentWorkspace.name} / Computer`
+ : `${$activeTab.label} / Computer`
: $currentWorkspace
- ? `${$currentWorkspace.name} / cptr`
- : 'cptr'}
diff --git a/cptr/frontend/src/routes/+page.svelte b/cptr/frontend/src/routes/+page.svelte
index 255d2ee..75db121 100644
--- a/cptr/frontend/src/routes/+page.svelte
+++ b/cptr/frontend/src/routes/+page.svelte
@@ -543,22 +543,42 @@
if (resume.terminalCount) signals.push(`${resume.terminalCount} term`);
if (resume.previewPorts.length)
signals.push(resume.previewPorts.map((port) => `:${port}`).join(', '));
- if (resume.fileCount)
- signals.push(`${resume.fileCount} file${resume.fileCount === 1 ? '' : 's'}`);
if (resume.chatCount || resume.activeChatCount) {
signals.push(
- resume.activeChatCount ? `${resume.activeChatCount} active` : `${resume.chatCount} chat`
+ resume.activeChatCount
+ ? `${resume.activeChatCount} active chat${resume.activeChatCount === 1 ? '' : 's'}`
+ : `${resume.chatCount} chat${resume.chatCount === 1 ? '' : 's'}`
);
}
return signals;
}
- function workspaceItems() {
- const recent = welcomeData?.recent ?? [];
- if (recent.length) return recent.slice(0, 6);
- return (welcomeData?.suggestions ?? []).slice(0, 6);
+ function hasMeaningfulResume(resume: WorkspaceResume | undefined): boolean {
+ return !!resume && (resumeSignals(resume).length > 0 || resume.activeLabels.length > 0);
}
+ function continueWorkspace() {
+ const recent = welcomeData?.recent ?? [];
+ return recent.find((item) => hasMeaningfulResume(workspaceResumes.get(item.path))) ?? recent[0];
+ }
+
+ function recentItems(continuePath?: string) {
+ const recent = welcomeData?.recent ?? [];
+ return recent.filter((item) => item.path !== continuePath).slice(0, 6);
+ }
+
+ function nearbyItems() {
+ return (welcomeData?.suggestions ?? []).slice(0, 5);
+ }
+
+ const continuation = $derived(continueWorkspace());
+ const continueResume = $derived(
+ continuation ? workspaceResumes.get(continuation.path) : undefined
+ );
+ const continueSignals = $derived(resumeSignals(continueResume));
+ const recent = $derived(recentItems(continuation?.path));
+ const nearby = $derived(nearbyItems());
+
// ── Draggable divider ──────────────────────────────────────────
let isDragging = $state(false);
@@ -717,13 +737,43 @@
- {#if workspaceItems().length}
+ {#if continuation}
-
- {welcomeData?.recent?.length ? $t('home.recent') : $t('home.folders')}
-
+ Continue
+ quickOpen(continuation.path)}
+ >
+
+
+ {continuation.name}
+
+
+ {shortenPath(continuation.path)}
+
+
+ {#if continueSignals.length}
+
+ {continueSignals.join(' ')}
+
+ {:else if continueResume?.activeLabels.length}
+
+ {continueResume.activeLabels.join(' · ')}
+
+ {/if}
+
+
+ {/if}
+
+ {#if recent.length}
+
+
{$t('home.recent')}
- {#each workspaceItems() as item}
+ {#each recent as item}
{@const resume = workspaceResumes.get(item.path)}
{@const signals = resumeSignals(resume)}
{/if}
- {#if resume?.recentChats[0]?.is_active}
-
- active
- {resume.recentChats[0].title}
-
- {/if}
{/each}
- {:else}
+ {:else if !continuation}
{$t('home.recent')}
{/if}
- {#if welcomeData?.suggestions?.length && welcomeData?.recent?.length}
+ {#if nearby.length && !welcomeData?.recent?.length}
{$t('home.folders')}
- {#each welcomeData.suggestions.slice(0, 5) as item}
+ {#each nearby as item}
quickOpen(item.path)}
diff --git a/cptr/frontend/src/routes/automations/+page.svelte b/cptr/frontend/src/routes/automations/+page.svelte
index d5eb65c..eecf218 100644
--- a/cptr/frontend/src/routes/automations/+page.svelte
+++ b/cptr/frontend/src/routes/automations/+page.svelte
@@ -3,7 +3,7 @@
- Automations / cptr
+ Automations / Computer
diff --git a/cptr/frontend/src/routes/automations/[id]/+page.svelte b/cptr/frontend/src/routes/automations/[id]/+page.svelte
index 8933a78..6e85745 100644
--- a/cptr/frontend/src/routes/automations/[id]/+page.svelte
+++ b/cptr/frontend/src/routes/automations/[id]/+page.svelte
@@ -6,7 +6,7 @@
- Automation / cptr
+ Automation / Computer