Repository navigation
Conversation
Angular's chat-sidenav shows a footer Devtools button, with a streaming dot, when an agent is set in dev mode, and opens ChatDebug docked to the bottom. React had no equivalent. ChatSidenav now takes an opt-in `devtools` prop (session plus a render function), renders the footer button with a dot while the session runs, and mounts the panel on first press docked bottom. Production builds omit it. ChatDebug gains optional controlled open, onOpenChange, defaultDock and launcher=none so the sidenav can drive it without duplicating its dock logic. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
blove
enabled auto-merge
November 17, 2026 23:57
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Angular
<chat-sidenav>shows a footer "Devtools" button (streaming dot, opensChatDebugdocked bottom) when[agent]is set,debugis true and dev mode is on (chat-sidenav.component.ts,CHAT_DEBUG_INCLUDED). ReactChatSidenavhad no equivalent.ChatSidenavgains an opt-indevtoolsprop:{ session, render, label?, buttonLabel? }. Without it nothing changes.data-streaming) whilesessionstatus isrunning, hides its label when collapsed, and on first press mountsrender(panel)(so apps can lazy-load@threadplane/react/debug).panelis spread ontoChatDebug.ChatDebuggains optionalopen,onOpenChange,defaultDockandlauncher="none", so the sidenav drives it instead of duplicating dock logic. Existing behavior is unchanged when they are omitted.process.env.NODE_ENV === 'production') omit the button, mirroring Angular's dev-mode gate.Verification
npx nx run-many -t test lint type-tests -p react: lint 0 errors; type-tests pass; 1523 tests pass. 8 unrelated specs timed out at 5s under load, and all 353 tests in those files plus the sidenav and debug files pass when rerun with--testTimeout 60000.node --test scripts/react-parity/verify-packages.spec.mjs: 103 pass.node scripts/react-parity/inventory.mjs --check --drift warn: valid.apps/websitenpx vitest run: docs-content-rules passes; the remaining failures (ingest route, e2e-ownership, generate-api-docs, several react-*-preview specs) are in files this PR does not touch and look environmental in a fresh worktree; not confirmed on main.🤖 Generated with Claude Code