GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Add drag-and-drop project reordering to the sidebar by juliusmarminge · Pull Request #185 · pingdotgg/t3code Conversation
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
Or push these changes by commenting:
@cursor push 410550ecbe
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -273,15 +273,17 @@ function SortableProjectItem({ projectId, + className, children, }: { projectId: ProjectId; + className?: string; children: (handleProps: SortableProjectHandleProps) => React.ReactNode; }) { const { attributes, listeners, setNodeRef, transform, transition, isDragging, isOver } = useSortable({ id: projectId }); return ( - <div + <SidebarMenuItem ref={setNodeRef} style={{ transform: CSS.Translate.toString(transform), @@ -289,10 +291,10 @@ }} className={`rounded-md ${ isDragging ? "z-20 opacity-80" : "" - } ${isOver && !isDragging ? "ring-1 ring-primary/40" : ""}`} + } ${isOver && !isDragging ? "ring-1 ring-primary/40" : ""} ${className ?? ""}`} > {children({ attributes, listeners })} - </div> + </SidebarMenuItem> ); } @@ -1205,9 +1207,9 @@ : projectThreads; return ( - <SortableProjectItem key={project.id} projectId={project.id}> + <SortableProjectItem key={project.id} projectId={project.id} className="group/collapsible"> {(dragHandleProps) => ( - <SidebarMenuItem className="group/collapsible"> + <> <div className="group/project-header relative"> <SidebarMenuButton size="sm" @@ -1448,7 +1450,7 @@ </SidebarMenuSub> </div> </div> - </SidebarMenuItem> + </> )} </SortableProjectItem> );
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- wire project list to dnd-kit sortable with vertical drag constraints - prevent accidental expand/collapse clicks during drag gestures - update store logic/tests and add dnd-kit dependencies
- prevent accidental project toggles after drag operations - switch project rows to Collapsible for stable expand/collapse animation - add optional hidden scrollbar mode to ScrollArea and apply it in SidebarContent
- Reset post-drag click suppression when drag is canceled - Consume only the synthetic click after drag release, then clear suppression
28df73c to
f32db73
Compare
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
?? and + unambiguous.Or push these changes by commenting:
@cursor push 148d455f06
diff --git a/apps/web/src/store.ts b/apps/web/src/store.ts --- a/apps/web/src/store.ts +++ b/apps/web/src/store.ts @@ -155,7 +155,7 @@ const orderIndex = previousIndex ?? persistedIndex ?? - (usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex; + ((usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex); return { project, incomingIndex, orderIndex }; }) .toSorted((a, b) => {
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const orderIndex = | ||
| previousIndex ?? | ||
| persistedIndex ?? | ||
| (usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Low Severity
The orderIndex fallback expression relies on + having higher precedence than ?? without explicit parentheses. While the current behavior is correct (the addition only applies when both previousIndex and persistedIndex are nullish), a reader could easily misinterpret this as adding incomingIndex to the result of the entire ?? chain. Wrapping the fallback arithmetic in parentheses would make the intent unambiguous and prevent accidental breakage if the expression is modified later.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
- Prefer pointer-based hit testing during project reordering - Fall back to corner-based collision to make drop targeting more reliable
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
Or push these changes by commenting:
@cursor push 13c88d8bd1
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx --- a/apps/web/src/components/Sidebar.tsx +++ b/apps/web/src/components/Sidebar.tsx @@ -872,7 +872,6 @@ const handleProjectDragCancel = useCallback((_event: DragCancelEvent) => { dragInProgressRef.current = false; - suppressProjectClickAfterDragRef.current = false; }, []); const handleProjectTitlePointerDownCapture = useCallback(() => {
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@cursor push 13c88d8bd1 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…vent unintended toggle Co-authored-by: Julius Marminge <[email protected]> Applied via @cursor push command
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const orderIndex = | ||
| previousIndex ?? | ||
| persistedIndex ?? | ||
| (usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Low Severity
The + operator has higher precedence than the ternary ?:, so the fallback orderIndex expression is parsed as usePersistedOrder ? persistedProjectOrderCwds.length : (previous.length + incomingIndex) instead of the likely intended (usePersistedOrder ? persistedProjectOrderCwds.length : previous.length) + incomingIndex. When usePersistedOrder is true, incomingIndex is not added, so all new projects receive the same orderIndex. The sort tiebreaker on incomingIndex masks this today, but the asymmetry is almost certainly unintentional and fragile.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
ChicoCenter was selecting derived arrays/objects directly from Zustand (selectAllRuns/selectSelectedRun). Those selectors allocate fresh values on every read, which makes useSyncExternalStore think the snapshot changed even when store state is stable. In production builds this surfaced as React error pingdotgg#185 (too many re-renders) when opening /chico. Read stable primitives from the store (runs Map + selectedRunId) and derive runs/selectedRun via useMemo inside the component instead.
…otgg#185 on boot StatusBar passou a montar sempre na 4.1C; useSessionCostTotal chamava resolveThreadRouteTarget via useParams selector, devolvendo novo objecto a cada render e disparando re-render em loop. Selecionar environmentId e threadId como primitivas e reconstruir o ref com useMemo.
fix(ui): break render loop in useSessionCostTotal causing React pingdotgg#185 on boot
…nterference O React Compiler (beta) pode reescrever funcoes que mutam refs durante o render de forma inesperada, potencialmente causando loops de render (React pingdotgg#185). A directiva 'use no memo' desactiva a optimizacao do Compiler para useSettings, preservando o comportamento manual do padrao useRef/shallowEqual que estabiliza referencias do selector. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…lot driver Three runtime regressions surfaced after the per-instance driver merge (commit e06e186) plus the Copilot provider was reinstated. Server: - Restore Antigravity conversation table migration. The `028_RenameGeminiToAntigravity` migration was shadowed by upstream's `028_ProjectionThreadSessionInstanceId`, so the `antigravity_conversations` table never existed at runtime and every Antigravity turn aborted with "Failed to load antigravity conversation id." Rename ours to `031` and register it in `Migrations.ts`. - Add `CopilotDriver` per-instance ProviderDriver (PATCH.md §2 restored). - `provider/Drivers/CopilotDriver.ts` registered in `BUILT_IN_DRIVERS` with `supportsMultipleInstances: true`. - `provider/Layers/CopilotProvider.ts` probes the `copilot` binary + parses `--version`; checks `~/.config/github-copilot/hosts.json` for auth-presence and ships a 5-model catalog (Claude 4.6/4.5, GPT-5.4). - `provider/Layers/CopilotAdapter.ts` placeholder adapter — returns clear "ACP integration not yet wired" errors rather than silently hanging. - `textGeneration/CopilotTextGeneration.ts` stub; routing falls back to Codex/Antigravity for commit-message generation. Web: - Fix React error pingdotgg#185 (infinite render loop) on `/` and chat routes. `apps/web/src/routes/_chat.$environmentId.$threadId.tsx:142-156`: `useParams({ select })` returned a fresh `{environmentId, threadId}` object on every router commit. The fresh `threadRef` busted the "redirect when thread missing" `useEffect` dep equality → `navigate({to:"/"})` → router commit → new selector result → loop. Memoize `threadRef` against primitive params so the object reference is stable. - Fix model picker click silent no-op. `apps/web/src/composerDraftStore.js` was a stale compiled artifact that shadowed `composerDraftStore.ts` in Vite's `.js`-first resolve order. All post-merge edits to the `.ts` were invisible at runtime. Rewrite the `.js` as a one-line re-export so the active `.ts` source wins; the file should be deleted entirely on the next full dev-server restart. - Add Copilot to `PROVIDER_CLIENT_DEFINITIONS` (Preview badge). - Remove "Gemini — coming soon" / "Github Copilot — coming soon" placeholders from the model picker sidebar (both providers are now first-class). End-to-end verified in the browser after migration + driver wiring: - Claude → responded "hello" in 2.5s - Antigravity → responded "hello" in 8.1s - OpenCode → responded "hello" in 5.4s - Codex → blocked by user's ChatGPT Free plan ("gpt-5.4 not supported"), not a merge bug - Copilot → shows correctly with auth status, falls into the picker; CLI needs `copilot auth login` for full session
fix(web): prevent StatusBar infinite render loop (React pingdotgg#185)
The item selector returned a new [] whenever a thread had no items, so zustand saw a changed snapshot on every render and React bailed with error pingdotgg#185 (maximum update depth). Use a stable empty list. Co-Authored-By: Claude Opus 5 <[email protected]>
Each editor selection change asked to expand the composer even when it was already expanded. On send the editor resets inside a commit, and in production builds that chain of no-op updates tripped React's maximum update depth (error pingdotgg#185). The setter now ignores calls that change nothing.
The projection snapshot queries never selected the workspace_file column and never mapped it, so workspaceFile silently dropped out of every client-facing project shell. Open-in fell back to the folder, the sidebar never showed the workspace icon, and Manage folders never appeared (pingdotgg#185). Select the column in the three project SELECTs and map it in mapProjectShellRow plus the three inline OrchestrationProject literals that build read models from the same rows.
feat(web): Web Push for thread notifications while the app is closed
Two BrowserSurfaceSlots showing the same tab (e.g. the floating mini player and the preview panel) each took the tab back when they lost it, re-rendering each other until React gave up with error #185. A visible slot now only reclaims a tab nobody else is showing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The panel's browser tab reconciler now reruns whenever a chat's tabs change, but it rebuilt the tab list on every pass even when nothing changed. Each pass changed the tabs, which ran it again, until React stopped with "Maximum update depth exceeded" (pingdotgg#185). A pass that finds the tabs already right now leaves the state as it is. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SmbfVxnmxaFpcswzmuoqFW
… the app An open folder read the chats its shell left out, then kept a read only while the loaded row looked older-settled. Idle subagents are left out of the shell too but never look older-settled, so their read was released, the row vanished, and it was read again from cache in the same commit until React threw "Maximum update depth exceeded" (pingdotgg#185). The folder now decides what to read from the shell rows alone, which its own reads never change.
With a size sort ("Largest", "Smallest" or "Ready"), clicking a pull request
threw React error pingdotgg#185 (Maximum update depth exceeded).
Two effects called a state setter on every commit. Their inputs,
`entriesByStatsKey` and `linkedSelection`, get a new identity on each render,
because the React Compiler does not memoize the feed values they come from.
- The eager stats effect always called `setStatsTargetState`. A setter call
that keeps the same state still re-renders and commits the page, so the
idle page re-rendered about 200 times a second. It now checks the committed
state first and skips the setter when no batch is missing.
- The URL-linked effect opened the pull request in the right panel store
again for each new `linkedSelection` object. The store update re-rendered
the page and made another new object. The effect is now keyed by the
selection's content.
A click commits synchronously, so either loop then hit React's nested update
limit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a size sort ("Largest", "Smallest" or "Ready"), clicking a pull request
threw React error pingdotgg#185 (Maximum update depth exceeded).
Two effects called a state setter on every commit. Their inputs,
`entriesByStatsKey` and `linkedSelection`, get a new identity on each render,
because the React Compiler does not memoize the feed values they come from.
- The eager stats effect always called `setStatsTargetState`. A setter call
that keeps the same state still re-renders and commits the page, so the
idle page re-rendered about 200 times a second. It now checks the committed
state first and skips the setter when no batch is missing.
- The URL-linked effect opened the pull request in the right panel store
again for each new `linkedSelection` object. The store update re-rendered
the page and made another new object. The effect is now keyed by the
selection's content.
A click commits synchronously, so either loop then hit React's nested update
limit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
With a size sort ("Largest", "Smallest" or "Ready"), clicking a pull request
threw React error pingdotgg#185 (Maximum update depth exceeded).
Two effects called a state setter on every commit. Their inputs,
`entriesByStatsKey` and `linkedSelection`, get a new identity on each render,
because the React Compiler does not memoize the feed values they come from.
- The eager stats effect always called `setStatsTargetState`. A setter call
that keeps the same state still re-renders and commits the page, so the
idle page re-rendered about 200 times a second. It now checks the committed
state first and skips the setter when no batch is missing.
- The URL-linked effect opened the pull request in the right panel store
again for each new `linkedSelection` object. The store update re-rendered
the page and made another new object. The effect is now keyed by the
selection's content.
A click commits synchronously, so either loop then hit React's nested update
limit.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…m-local' (pingdotgg#185) from t3/resolve-nightly-upstream-merge-conflict into custom-local
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.