Repository navigation
Description
Repro steps:
- Click installed plugins in side pane
- Click New plugin arrow
- Click any of the options in "Examples" or "Capabilities" like Kanban
- Hangs and then errors with this message (in devserver):
Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
at getRootForUpdatedFiber (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:2633:166)
at enqueueConcurrentHookUpdate (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:2619:11)
at dispatchSetStateInternal (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:5160:14)
at dispatchSetState (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:5133:4)
at http://localhost:14371/src/components/promptbox/PromptBoxInternal.tsx?t=1786934130001:1253:3
at http://localhost:14371/src/components/promptbox/PromptBoxInternal.tsx?t=1786934130001:1263:4
at Object.react_stack_bottom_frame (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:12904:13)
at runWithFiberInDEV (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:851:66)
at commitHookEffectListMount (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:6617:153)
at commitHookPassiveMountEffects (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:6652:55)
at commitPassiveMountOnFiber (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7618:22)
at recursivelyTraversePassiveMountEffects (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7606:5)
at commitPassiveMountOnFiber (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7672:14)
at recursivelyTraversePassiveMountEffects (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7606:5)
at commitPassiveMountOnFiber (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7617:6)
at recursivelyTraversePassiveMountEffects (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7606:5)
at commitPassiveMountOnFiber (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7672:14)
at recursivelyTraversePassiveMountEffects (http://localhost:14371/node_modules/.vite/app/deps/react-dom_client.js?v=28da3f43:7606:5)
<snip>
BB: bb-0.38.0-x86_64.AppImage
OS: Linux
Node: 22.19.0
This is what my agent had to say and its failed attempt to fix:
Diagnosis: the crash is in the root PromptBoxInternal history-reset effect, not specifically Kanban. The effect
depends on an inline history object recreated every render and repeatedly calls history reset setters when history is
empty. This is the likely loop; the attempted guard did not resolve the user-visible issue. No confirmed final fix.
--- a/apps/app/src/components/plugin/management/BrowsePluginsTab.tsx
+++ b/apps/app/src/components/plugin/management/BrowsePluginsTab.tsx
@@ -1,4 +1,4 @@
-import { useEffect, useState } from "react";
+import { useEffect, useRef, useState } from "react";
@@ -71,8 +71,7 @@ export function BrowsePluginsTab({
} | null>(() =>
creationViewActive ? { nonce: nextComposerRequestNonce() } : null,
);
- const [requestedCreationView, setRequestedCreationView] =
- useState(creationViewActive);
+ const previousCreationView = useRef(creationViewActive);
@@ -82,13 +81,14 @@ export function BrowsePluginsTab({
- if (requestedCreationView !== creationViewActive) {
- setRequestedCreationView(creationViewActive);
+ useEffect(() => {
+ if (previousCreationView.current === creationViewActive) return;
+ previousCreationView.current = creationViewActive;
setHeroRequest({
nonce: nextComposerRequestNonce(),
...(creationViewActive ? {} : { close: true }),
});
- }
+ }, [creationViewActive]);
diff --git a/apps/app/src/components/promptbox/PromptBoxInternal.tsx
b/apps/app/src/components/promptbox/PromptBoxInternal.tsx
index 5852137e0..c3daf9bf7 100644
--- a/apps/app/src/components/promptbox/PromptBoxInternal.tsx
+++ b/apps/app/src/components/promptbox/PromptBoxInternal.tsx
@@ -1999,12 +1999,14 @@ export function PromptBoxInternal({
}, []);
useEffect(() => {
- if (!history) {
- resetHistorySession();
- return;
- }
- if (history.entries.length === 0) {
- resetHistorySession();
+ if (!history || history.entries.length === 0) {
+ if (
+ activeHistoryIndex !== null ||
+ temporaryHistoryDraft !== null ||
+ recalledHistoryDraft !== null
+ ) {
+ resetHistorySession();
+ }
return;
}
@@ -2013,7 +2015,13 @@ export function PromptBoxInternal({
- }, [activeHistoryIndex, history, resetHistorySession]);
+ }, [
+ activeHistoryIndex,
+ history,
+ recalledHistoryDraft,
+ resetHistorySession,
+ temporaryHistoryDraft,
+ ]);Also your nvmrc is inconsistent with your packageManager setting pnpm to 9.15.0 "ERROR: This version of pnpm requires at least Node.js v22.13"
Metadata
Metadata
Assignees
Labels
No labels
Activity
Fix the render loop when a New plugin example seeds the root composer (…
chore: sync upstream 2026-08-18 (#6)