Skip to content

refactor(next): remove unused thread state module - #1393

Draft
vercel-gh-bot-3[bot] wants to merge 1 commit into
mainfrom
e0/c17f335e-45b0-41d2-943e-dde55bf0dca5
Draft

refactor(next): remove unused thread state module#1393
vercel-gh-bot-3[bot] wants to merge 1 commit into
mainfrom
e0/c17f335e-45b0-41d2-943e-dde55bf0dca5

Conversation

@vercel-gh-bot-3

Copy link
Copy Markdown
Contributor

Delete 286 lines of unused code from the Next.js framework example.

Why

A calibrated Knip scan reported app/_chat/thread-state.ts after package exports, framework entry points, generated files, tests, and runtime plugins were configured as controls. Repository and history searches found no importer or runtime registration. The file has remained disconnected since its initial commit.

Next.js does not treat this underscore-prefixed module as a route. A production build confirmed that no route or bundle depends on it.

Approach

Because the app reaches chat state through explicit imports, deleting the disconnected module should leave behavior unchanged. This also removes ChatSessionCursor and ThreadState, which had no remaining references.

Verification

  • pnpm --filter framework-next typecheck
  • pnpm --filter framework-next build:next
  • pnpm lint
  • pnpm guard:invariants
  • calibrated Knip file scan
  • repository, history, and open pull request overlap searches
  • independent correctness and architecture review

pnpm --filter framework-next lint cannot start because eslint-plugin-react@7.37.5 calls an API removed in eslint@10.4.0. The failure occurs on unchanged agent/agent.ts before this diff is linted.

Requested by: rui.lealsalvadorconti

Co-authored-by: ruiconti <1834568+ruiconti@users.noreply.github.com>
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
eve-docs Ready Ready Preview Jul 30, 2026 3:14am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
eve-docs-4759 Skipped Skipped Jul 30, 2026 3:14am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants