From 766df5d244d3b210fb024469d6d7552ffa8794c0 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 24 Sep 2026 15:25:02 -0700 Subject: [PATCH 1/4] fix(chat): align composer control shape and color --- .../home/components/composer/composer.test.tsx | 8 ++++---- .../home/components/composer/composer.tsx | 2 +- .../user-input/components/conversation-mode-selector.tsx | 2 +- .../user-input/components/model-setting-trigger.tsx | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx b/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx index ba6ff3de48b..1c8173061e0 100644 --- a/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx +++ b/apps/sim/app/o/[organizationId]/home/components/composer/composer.test.tsx @@ -626,7 +626,7 @@ it('shows Build with a chevron in the shared chip and text-only modes in its men mode.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true })) ) const search = [...document.querySelectorAll('[role="menuitem"]')].find( - (item) => item.textContent === 'Ask' + (item) => item.textContent === 'Search' )! expect(search.querySelector('svg')).toBeNull() expect(document.querySelector('[role="tooltip"]')).toBeNull() @@ -730,12 +730,12 @@ it.each(['skill', 'file'] as const)( mode.dispatchEvent(new KeyboardEvent('keydown', { key: 'Enter', bubbles: true })) ) const search = [...document.querySelectorAll('[role="menuitem"]')].find( - (item) => item.textContent === 'Ask' + (item) => item.textContent === 'Search' )! await act(async () => search.click()) expect(onModeChange).not.toHaveBeenCalled() expect(info).toHaveBeenCalledWith( - 'Remove resource and skill mentions and non-image attachments before switching to Ask.' + 'Remove resource and skill mentions and non-image attachments before switching to Search.' ) expect( container.querySelector('[aria-label="Ask Sim"]')! @@ -787,7 +787,7 @@ describe('Search levels', () => { expect( row.querySelector('[aria-label="Ask Sim"]') ).not.toBeNull() - expect(mode.textContent).toBe('Ask') + expect(mode.textContent).toBe('Search') expect(mode.querySelectorAll('svg')).toHaveLength(1) expect(mode.parentElement?.nextElementSibling).toBeNull() expect(row.querySelector('[aria-label="Search level"]')).toBeNull() diff --git a/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx b/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx index d52d2780ff2..57d1cb40b36 100644 --- a/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx +++ b/apps/sim/app/o/[organizationId]/home/components/composer/composer.tsx @@ -231,7 +231,7 @@ export function Composer({ files.attachedFiles.some((file) => !isAssistantImageType(file.type))) ) { toast.info( - 'Remove resource and skill mentions and non-image attachments before switching to Ask.' + 'Remove resource and skill mentions and non-image attachments before switching to Search.' ) return } diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx index d97600f4fd5..256a2b85da9 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/conversation-mode-selector.tsx @@ -20,7 +20,7 @@ export function ConversationModeSelector({ const planEnabled = useFeatureFlag('mothership-plan-mode') const [open, setOpen] = useState(false) const options = [ - ...(searchEnabled ? [{ value: 'assistant', label: 'Ask' }] : []), + ...(searchEnabled ? [{ value: 'assistant', label: 'Search' }] : []), { value: 'agent', label: 'Build' }, ...(planEnabled ? [{ value: 'plan', label: 'Plan' }] : []), ] diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx index 4123a811c89..88e8aa891f3 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/user-input/components/model-setting-trigger.tsx @@ -1,5 +1,5 @@ import type { ComponentType } from 'react' -import { Chip, chipContentLabelClass, DropdownMenuTrigger, OverflowText, Tooltip } from '@sim/emcn' +import { Chip, DropdownMenuTrigger, OverflowText, Tooltip } from '@sim/emcn' import { ChevronDown } from '@sim/emcn/icons' interface ModelSettingTriggerProps { @@ -21,6 +21,7 @@ export function ModelSettingTrigger({ {showChevron && ( From 502de5da4ec7ede7b346cf1fe9cd28ca0181460f Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 24 Sep 2026 15:35:13 -0700 Subject: [PATCH 2/4] fix(chat): align source typography and improve favicon fidelity --- .../components/source-card/source-card.tsx | 10 ++++++---- .../components/source-chip/source-icon.tsx | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx index 3bdacac008b..1598cd1e33e 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx @@ -18,6 +18,7 @@ import { import { Check, Link as LinkIcon, MoreHorizontal, Sparkles } from '@sim/emcn/icons' import { formatDate } from '@sim/utils/formatting' import { findTermMatches, queryTerms } from '@/lib/knowledge/search/snippet' +import { inter } from '@/app/_styles/fonts/inter/inter' import { SourceIcon, sourceLabel, @@ -29,7 +30,8 @@ import type { SourceTagData } from '@/app/workspace/[workspaceId]/home/component const SOURCE_ROW_CLASSES = cn( 'not-prose flex items-start gap-2 px-2 py-2 transition-colors focus-within:bg-[var(--surface-hover)]', chipHoverSurfaceClass, - chipRadiusClass + chipRadiusClass, + inter.className ) const SOURCE_ROW_MARK_CLASSES = cn(chipIconSlotClass, 'mt-0.5') @@ -140,7 +142,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source @@ -160,7 +162,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source rel='noopener noreferrer' data-source-link='' onClick={(event) => handleExternalLinkClick(event, source.url)} - className='min-w-0 flex-1 text-[var(--text-body)] text-small no-underline [overflow-wrap:anywhere] focus-visible:rounded-sm focus-visible:outline focus-visible:outline-[var(--text-icon)]' + className='min-w-0 flex-1 text-[var(--text-primary)] text-small no-underline [overflow-wrap:anywhere] focus-visible:rounded-sm focus-visible:outline focus-visible:outline-[var(--text-icon)]' > {sourceLabel(source)} @@ -171,7 +173,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source
{source.snippet && (

diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx index fd2b85da929..4b06e29144a 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx @@ -38,7 +38,7 @@ export function SourceIcon({ source, size = 'default' }: SourceIconProps) { if (hostname && failedHostname !== hostname) { return ( setFailedHostname(hostname)} From a92b96f5d3d22c8e10e36182cfce3929ff22f4e9 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 24 Sep 2026 15:45:51 -0700 Subject: [PATCH 3/4] fix(chat): keep source title tokens consistent --- .../message-content/components/source-card/source-card.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx index 1598cd1e33e..8f0e1ab6514 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-card/source-card.tsx @@ -162,7 +162,7 @@ export function SourceCard({ source, query, onSummarize, dense = false }: Source rel='noopener noreferrer' data-source-link='' onClick={(event) => handleExternalLinkClick(event, source.url)} - className='min-w-0 flex-1 text-[var(--text-primary)] text-small no-underline [overflow-wrap:anywhere] focus-visible:rounded-sm focus-visible:outline focus-visible:outline-[var(--text-icon)]' + className='min-w-0 flex-1 text-[var(--text-body)] text-small no-underline [overflow-wrap:anywhere] focus-visible:rounded-sm focus-visible:outline focus-visible:outline-[var(--text-icon)]' > {sourceLabel(source)} From bd6751c4330f46fe7dc0570d68955919a2319d50 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Thu, 24 Sep 2026 15:52:26 -0700 Subject: [PATCH 4/4] fix(chat): omit referrers from source favicon requests --- .../message-content/components/source-chip/source-icon.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx index 4b06e29144a..9e82fe738ea 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/source-chip/source-icon.tsx @@ -40,6 +40,7 @@ export function SourceIcon({ source, size = 'default' }: SourceIconProps) { setFailedHostname(hostname)} />