Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
8800f03
improvement(billing): treat past_due state correctly (#3750)
icecrasher321 Mar 25, 2026
668b948
feat(agents): generalize repository guidance for coding agents (#3760)
Danigm-dev Mar 25, 2026
8caaf01
fix(ui): fix kb id extraction logic for resource, sync tags (#3763)
TheodoreSpeaks Mar 25, 2026
2691c12
feat(rippling): add Rippling HR integration with 19 tools (#3764)
waleedlatif1 Mar 25, 2026
e0f2b8f
feat(hubspot): add 27 CRM tools and fix OAuth scope mismatch (#3765)
waleedlatif1 Mar 25, 2026
54a862d
fix(user-input): fix multiple re-renders on user-input and split the …
adithyaakrishna Mar 25, 2026
f94be08
fix(billing): atomize usage_log and userStats writes via central reco…
waleedlatif1 Mar 25, 2026
87e8d3c
feat(logs) Add messageId and requestId context to all mothership log …
TheodoreSpeaks Mar 25, 2026
438defc
fix(mothership): key resumes by orchestration id (#3771)
icecrasher321 Mar 25, 2026
be6b00d
feat(ui): add request a demo modal (#3766)
TheodoreSpeaks Mar 25, 2026
9d1b976
Feat(logs) upgrade mothership chat messages to error (#3772)
TheodoreSpeaks Mar 25, 2026
104ad03
fix(notifications): auto-dismiss info-level workflow notifications (#…
waleedlatif1 Mar 25, 2026
5a5c33d
fix(client): network drops reconnecting behaviour (#3775)
icecrasher321 Mar 26, 2026
794d5ea
fix(explicit-user-abort): separate explicit user abort semantics (#3776)
icecrasher321 Mar 26, 2026
7b96b0e
add logs
icecrasher321 Mar 26, 2026
7583c8f
feat(misc): skills import, MCP modal, workmark, dispatch modals, coll…
waleedlatif1 Mar 26, 2026
1a14f4c
fix chatHistory reconnect effect
icecrasher321 Mar 26, 2026
9e4fc50
fix(retry): extract code into callback
icecrasher321 Mar 26, 2026
9603fd0
Merge branch 'staging' of github.com:simstudioai/sim into staging
icecrasher321 Mar 26, 2026
d97e22e
chore(docs): update readme (#3778)
waleedlatif1 Mar 26, 2026
a9fc1a2
fix(guard-change): run finalize at right time
icecrasher321 Mar 26, 2026
6610c37
Merge branch 'staging' of github.com:simstudioai/sim into staging
icecrasher321 Mar 26, 2026
2771b67
fix(copilot): expand tool metadata, fix thinking text rendering, clea…
waleedlatif1 Mar 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(guard-change): run finalize at right time
  • Loading branch information
icecrasher321 committed Mar 26, 2026
commit a9fc1a24a9a7da2195bf3de4017a1392aca08608
15 changes: 10 additions & 5 deletions apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -740,13 +740,12 @@ export function useChat(
return { aborted: true, error: false }
}

logger.warn('Failed to attach to existing stream', {
logger.error('Failed to attach to existing stream, will throw for outer retry', {
streamId,
latestEventId,
error: err instanceof Error ? err.message : String(err),
})
setError(err instanceof Error ? err.message : RECONNECT_TAIL_ERROR)
return { aborted: false, error: true }
throw err
} finally {
setIsReconnecting(false)
}
Expand Down Expand Up @@ -833,11 +832,17 @@ export function useChat(
)

useEffect(() => {
if (!chatHistory || appliedChatIdRef.current === chatHistory.id) return
if (!chatHistory) return

const activeStreamId = chatHistory.activeStreamId
const snapshot = chatHistory.streamSnapshot
applyChatHistorySnapshot(chatHistory, { preserveActiveStreamingMessage: true })
const isNewChat = appliedChatIdRef.current !== chatHistory.id

if (isNewChat) {
applyChatHistorySnapshot(chatHistory, { preserveActiveStreamingMessage: true })
} else if (!activeStreamId || sendingRef.current) {
return
}

if (activeStreamId && !sendingRef.current) {
const gen = ++streamGenRef.current
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import type { SettingsSection } from '@/app/workspace/[workspaceId]/settings/nav
import {
allNavigationItems,
isBillingEnabled,
isCredentialSetsEnabled,
} from '@/app/workspace/[workspaceId]/settings/navigation'

/**
Expand Down Expand Up @@ -164,9 +165,11 @@ export function SettingsPage({ section }: SettingsPageProps) {
const effectiveSection =
!isBillingEnabled && (section === 'subscription' || section === 'team')
? 'general'
: section === 'admin' && !sessionLoading && !isAdminRole
: section === 'credential-sets' && !isCredentialSetsEnabled
? 'general'
: section
: section === 'admin' && !sessionLoading && !isAdminRole
? 'general'
: section

const label =
allNavigationItems.find((item) => item.id === effectiveSection)?.label ?? effectiveSection
Expand Down
19 changes: 11 additions & 8 deletions apps/sim/app/workspace/[workspaceId]/settings/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ const isAccessControlEnabled = isTruthy(getEnv('NEXT_PUBLIC_ACCESS_CONTROL_ENABL
const isInboxEnabled = isTruthy(getEnv('NEXT_PUBLIC_INBOX_ENABLED'))

export const isBillingEnabled = isTruthy(getEnv('NEXT_PUBLIC_BILLING_ENABLED'))
export { isCredentialSetsEnabled }

export const sectionConfig: { key: NavigationSection; title: string }[] = [
{ key: 'account', title: 'Account' },
Expand Down Expand Up @@ -141,14 +142,16 @@ export const allNavigationItems: NavigationItem[] = [
selfHostedOverride: isInboxEnabled,
showWhenLocked: true,
},
{
id: 'credential-sets',
label: 'Email Polling',
icon: Mail,
section: 'system',
requiresHosted: true,
selfHostedOverride: isCredentialSetsEnabled,
},
...(isCredentialSetsEnabled
? [
{
id: 'credential-sets' as const,
label: 'Email Polling',
icon: Mail,
section: 'system' as const,
},
]
: []),
{ id: 'recently-deleted', label: 'Recently Deleted', icon: TrashOutline, section: 'system' },
{
id: 'sso',
Expand Down