Skip to content

refactor: review fixes - TUI routes via MCP, unified SQLite, CLI dedup#2

Merged
TIANQIAN1238 merged 1 commit into
mainfrom
refactor/review-fixes
Feb 15, 2026
Merged

refactor: review fixes - TUI routes via MCP, unified SQLite, CLI dedup#2
TIANQIAN1238 merged 1 commit into
mainfrom
refactor/review-fixes

Conversation

@TIANQIAN1238

Copy link
Copy Markdown
Member

Changes

Bug Fixes

  • fix: TUI routes use McpBridge — post/search/trending/notifications were importing non-existent api/ modules, now use McpBridge
  • fix: model.tsx — replaced undefined fetchAllModels() with AIProvider.available()

Refactoring

  • refactor: TUI routes use useTheme() — replaced hardcoded color values with theme context
  • refactor: unified SQLite connection — chat.ts now reuses Database singleton instead of open/close per operation
  • refactor: extract mcpPrint helper — deduplicated 10 CLI command handlers
  • refactor: register all TUI routes in app.tsx Switch (post/search/trending/notifications)

Made with Cursor

- fix: TUI routes (post/search/trending/notifications) use McpBridge instead of missing api/ modules
- fix: model.tsx use AIProvider.available() instead of undefined fetchAllModels()
- fix: register all TUI routes in app.tsx Switch
- refactor: TUI routes use useTheme() instead of hardcoded colors
- refactor: chat.ts reuse Database singleton instead of open/close per operation
- refactor: extract mcpPrint helper, deduplicate 10 CLI command handlers

Co-authored-by: Cursor <cursoragent@cursor.com>
@TIANQIAN1238
TIANQIAN1238 merged commit 7830b3e into main Feb 15, 2026
0 of 4 checks passed
@TIANQIAN1238
TIANQIAN1238 deleted the refactor/review-fixes branch February 15, 2026 14:55
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