Skip to content

Commit d6e103c

Browse files
authored
Merge pull request #4270 from RSSNext/sync/main-to-dev-20250729
Sync main branch to dev branch
2 parents 42d39fd + bfdc371 commit d6e103c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

apps/desktop/layer/renderer/src/modules/entry-content/components/entry-content/EntryContent.ai.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import { EntryHeader } from "../entry-header"
3131
import { EntryTimelineSidebar } from "../EntryTimelineSidebar"
3232
import { getEntryContentLayout } from "../layouts"
3333
import { SourceContentPanel } from "../SourceContentView"
34-
import { AISmartSidebar } from "./ai"
3534
import { EntryCommandShortcutRegister } from "./EntryCommandShortcutRegister"
3635
import { EntryContentLoading } from "./EntryContentLoading"
3736
import { EntryNoContent } from "./EntryNoContent"
@@ -199,7 +198,7 @@ const EntryContentImpl: Component<EntryContentProps> = ({
199198
<SourceContentPanel src={safeUrl ?? "#"} />
200199
</Focusable>
201200

202-
<React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense>
201+
{/* <React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense> */}
203202
</div>
204203
)
205204
}

apps/desktop/layer/renderer/src/modules/entry-content/components/entry-content/EntryContent.legacy.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import { EntryTitle } from "../EntryTitle"
4242
import { SourceContentPanel } from "../SourceContentView"
4343
import { SupportCreator } from "../SupportCreator"
4444
import { EntryContentAccessories } from "./accessories"
45-
import { AISmartSidebar } from "./ai"
4645
import { EntryCommandShortcutRegister } from "./EntryCommandShortcutRegister"
4746
import { EntryContentLoading } from "./EntryContentLoading"
4847
import { EntryNoContent } from "./EntryNoContent"
@@ -237,7 +236,7 @@ const EntryContentImpl: Component<EntryContentProps> = ({
237236
<SourceContentPanel src={safeUrl ?? "#"} />
238237
</Focusable>
239238

240-
<React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense>
239+
{/* <React.Suspense>{!isInPeekModal && <AISmartSidebar entryId={entryId} />}</React.Suspense> */}
241240
</>
242241
)
243242
}

apps/desktop/layer/renderer/src/modules/entry-content/components/entry-content/ai/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,14 @@ const useCreateEntryAIContext = (entryId: string) => {
252252

253253
return ctxStore
254254
}
255+
// eslint-disable-next-line unicorn/no-thenable
256+
const infiniteThenable = { then() {} }
255257
export const AISmartSidebar = ({ entryId }: { entryId: string }) => {
256258
const [isExpanded, setIsExpanded] = useState(false)
257259

258260
const hasAi = React.use(AIChatContext)
259261
if (!hasAi) {
260-
throw Promise.reject("ai not enabled")
262+
throw infiniteThenable
261263
}
262264

263265
const ctxStore = useCreateEntryAIContext(entryId)

apps/desktop/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Folo",
33
"type": "module",
4-
"version": "0.6.3",
4+
"version": "0.6.4",
55
"private": true,
66
"description": "Follow everything in one place",
77
"author": "Folo Team",
@@ -21,15 +21,15 @@
2121
"build:electron-vite": "electron-vite build",
2222
"build:render": "vite build -c vite.config.electron-render.ts",
2323
"build:web": "rm -rf out/web && cross-env WEB_BUILD=1 vite build",
24-
"bump": "vv",
24+
"bump": "vv --minor",
2525
"dedupe:locales": "eslint --fix locales/**/*.json",
2626
"depcheck": "npx depcheck --quiet",
2727
"dev": "turbo run @follow/web#dev @follow/ssr#dev",
2828
"dev:debug": "export DEBUG=true && vite --debug",
2929
"dev:electron": "electron-vite dev",
3030
"dev:server": "pnpm run --filter=ssr dev",
3131
"dev:web": "cross-env WEB_BUILD=1 vite",
32-
"hotfix": "vv -c bump.hotfix.config.js",
32+
"hotfix": "vv -c bump.hotfix.config.js --patch",
3333
"publish": "electron-vite build && electron-forge publish",
3434
"start": "electron-vite preview",
3535
"update:main-hash": "tsx plugins/vite/generate-main-hash.ts"

0 commit comments

Comments
 (0)