(janitor/dead-code): remove orphaned cloud-agent-next demo-session components - #6880
Merged
Merged
Conversation
Delete DemoSessionModal, DemoSessionCTA, and their demo-config module. The config is imported only by these two components, and neither component is imported, rendered, or referenced anywhere else in the repo, so the whole cluster is unreachable from every entry point.
Contributor
Author
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryVerified deletion of three unreachable Files Reviewed (3 files)
Verification notes: repo-wide search finds no reference to Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
pandemicsyn
approved these changes
Sep 29, 2026
kilo-code-bot
Bot
deleted the
janitor/dead-code/cloud-agent-next-demo
branch
September 29, 2026 21:49
This was referenced Sep 30, 2026
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.
What was deleted
Three files from
apps/web/src/components/cloud-agent-next/:DemoSessionModal.tsxDemoSessionCTA.tsxdemo-config.tsThese form the leftover "demo session" UI. The two components are the only importers of the module, and nothing imports either component, so the whole cluster is unreachable.
Evidence it was unreachable
DemoSessionModalandDemoSessionCTAappear only in their own definition files. A repo-wide search (all file types, excludingnode_modules) finds no import, re-export, or other reference.demo-config.tsis imported only by those two components (import { DEMO_SOURCE_REPO, type DemoConfig } from './demo-config'). Its other exports (DEMO_CONFIGS,templatePrompt) have zero references anywhere, including within the dead components.demo session/demoSession/DEMO_CONFIGS/templatePromptyields only the deleted files (the unrelatedsales-demo-sort.tsmatches "sales demo", not session demo).apps/web/src/components/cloud-agent/demo-config.tsstill exportsDEMO_SOURCE_OWNER/DEMO_SOURCE_REPO_NAMEand remains used bylib/cloud-agent/github-integration-helpers.ts; it is untouched.Dynamic and configured entry points checked
page/layout/route/loading/error/not-found/instrumentation); plain components incomponents/.cloud-agent-next/re-exports them (export *), and no parent barrel references them.import()orrequire()resolves to them; no string-based module construction references the filenames.TodoWriteToolCard, not the demo components), Storybook stories, MDX, scripts, CI workflows, or Wrangler/Cloudflare config.git log --followshows these files date to the initial "Cloud Agent Next" commits and have only been moved since; they were never wired into the current rendering path.Contract and compatibility considerations
apps/weband not exported from any published package or SDK. No public or package contract is affected.Validation performed
git diff --check— clean.tsgo --noEmit -p apps/web/tsconfig.json— passes (exit 0).oxlint --config .oxlintrc.json apps/web/src/components/cloud-agent-next— 0 warnings, 0 errors.Not run (resource-limited sandbox, no Postgres/Redis): full repo
pnpm validate, Jest unit suites, and any DB-dependent tests.