Skip to content

♻️ refactor: clean up unused sessionStore selectors and slices#13738

Merged
arvinxx merged 1 commit into
canaryfrom
refactor/cleanup-session-store
Apr 11, 2026
Merged

♻️ refactor: clean up unused sessionStore selectors and slices#13738
arvinxx merged 1 commit into
canaryfrom
refactor/cleanup-session-store

Conversation

@arvinxx

@arvinxx arvinxx commented Apr 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Delete recent slice from sessionStore (already migrated to homeStore)
  • Delete homeInput slice from sessionStore (already migrated to homeStore)
  • Remove 7 unused selectors: currentSessionSafe, hasCustomAgents, defaultSessionsCount, defaultSessionsLimited, getSessionMetaById, currentGroupMeta, getDescription
  • Update store type, initialState, selectors export, and tests

Total: -879 lines of dead code removed.

Fixes LOBE-7018

Test plan

  • Type check passes (only pre-existing unrelated feishu error)
  • All session store selector tests pass (list.test.ts, meta.test.ts)
  • Reducer tests pass (reducers.test.ts, sessionGroup/reducer.test.ts)

🤖 Generated with Claude Code

Remove dead code from the legacy sessionStore:
- Delete `recent` slice (migrated to homeStore)
- Delete `homeInput` slice (migrated to homeStore)
- Remove unused selectors: currentSessionSafe, hasCustomAgents,
  defaultSessionsCount, defaultSessionsLimited, getSessionMetaById,
  currentGroupMeta, getDescription
- Update store type, initialState, and tests accordingly

Closes LOBE-7018

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Apr 11, 2026 2:27pm

Request Review

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've reviewed this pull request using the Sourcery rules engine

@codecov

codecov Bot commented Apr 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.56%. Comparing base (a8fee05) to head (3c3f492).
⚠️ Report is 1 commits behind head on canary.

Additional details and impacted files
@@            Coverage Diff             @@
##           canary   #13738      +/-   ##
==========================================
- Coverage   66.57%   66.56%   -0.01%     
==========================================
  Files        2024     2020       -4     
  Lines      171360   171152     -208     
  Branches    20695    20668      -27     
==========================================
- Hits       114081   113929     -152     
+ Misses      57155    57099      -56     
  Partials      124      124              
Flag Coverage Δ
app 58.61% <100.00%> (-0.03%) ⬇️
database 92.56% <ø> (ø)
packages/agent-runtime 79.72% <ø> (ø)
packages/context-engine 83.33% <ø> (ø)
packages/conversation-flow 92.36% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.86% <ø> (ø)
packages/model-runtime 84.30% <ø> (ø)
packages/prompts 69.24% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.14% <ø> (ø)
packages/web-crawler 88.66% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store 65.70% <100.00%> (-0.06%) ⬇️
Services 52.19% <ø> (ø)
Server 66.30% <ø> (+<0.01%) ⬆️
Libs 52.83% <ø> (ø)
Utils 91.01% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@arvinxx arvinxx merged commit 732a3ae into canary Apr 11, 2026
29 of 31 checks passed
@arvinxx arvinxx deleted the refactor/cleanup-session-store branch April 11, 2026 14:37
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.

1 participant