diff --git a/frontend/src/lib/components/NavBreadcrumb.svelte b/frontend/src/lib/components/NavBreadcrumb.svelte index 5bcfd4db24..bffb4b7c43 100644 --- a/frontend/src/lib/components/NavBreadcrumb.svelte +++ b/frontend/src/lib/components/NavBreadcrumb.svelte @@ -53,9 +53,6 @@ same weight, size and icon size, so the line reads as one control rather than fo } = $props() const scopeId = $derived(actingWorkspaceId ?? $workspaceStore ?? undefined) - // In session mode the workspace is the session's scope, not a place to navigate to: the name - // says which workspace the chat acts on, and going home from it would leave the session. - const sessionMode = $derived(page.url.pathname.startsWith(`${base}/sessions`)) const homeHref = $derived( actingWorkspaceId ? `${base}/?workspace=${encodeURIComponent(actingWorkspaceId)}` : `${base}/` ) @@ -103,9 +100,7 @@ same weight, size and icon size, so the line reads as one control rather than fo const forkableWorkspaces = $derived(forkable.current) const currentWs = $derived(forkableWorkspaces.find((w) => w.id === scopeId)) const inFork = $derived(!!currentWs?.parent_workspace_id) - // A session names the workspace it acts on beside its own title, so here the family name alone - // says where the user is browsing — the fork in this spot would read as a workspace switch. - const showFork = $derived(inFork && !actingWorkspaceId) + const showFork = $derived(inFork) const familyName = $derived(family?.name ?? scopeId ?? '') // The workspace the user actually stands in, which is the fork's own name inside a fork. const scopeName = $derived(currentWs?.name ?? familyName) @@ -116,7 +111,6 @@ same weight, size and icon size, so the line reads as one control rather than fo // A dev workspace wears its environment; the root wears "prod", so which environment the user // is standing in is answered the same way whichever one it is. const envBadge = $derived.by(() => { - if (actingWorkspaceId) return undefined if (!inFork) return { text: 'prod', dev: false } if (currentWs?.is_dev_workspace) return { text: devBadgeText(currentWs.dev_workspace_label), dev: true } @@ -182,8 +176,10 @@ same weight, size and icon size, so the line reads as one control rather than fo {/if} {/snippet} -{#snippet slash()} - +{#snippet slash(extra = '')} + + {/snippet}