Skip to content

refactor(tui): remove deprecated commands and replace AuthAlertModal with toast#545

Merged
echobt merged 1 commit intomasterfrom
refactor/tui-cleanup-1769996225
Feb 2, 2026
Merged

refactor(tui): remove deprecated commands and replace AuthAlertModal with toast#545
echobt merged 1 commit intomasterfrom
refactor/tui-cleanup-1769996225

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Feb 2, 2026

Summary

Refactoring of the TUI to clean up deprecated commands and improve the alert notification system.

Changes

Commands Removed (8 deprecated)

  • provider - Not implemented
  • providers - Not implemented
  • mcp-tools - Not implemented
  • mcp-auth - Not implemented
  • mcp-reload - Not implemented
  • mcp-logs - Not implemented
  • crash - Debug only, not needed
  • eval - Not implemented

Alert System Improvements

  • Replaced AuthAlertModal with ephemeral toast notifications
  • Changed toast position from TopRight to BottomLeft for better UX
  • Deleted alert.rs module (no longer needed)

Files Changed

  • src/cortex-tui/src/app/state.rs - Toast position update
  • src/cortex-tui/src/commands/registry/builtin.rs - Removed deprecated commands
  • src/cortex-tui/src/modal/alert.rs - Deleted
  • src/cortex-tui/src/modal/mod.rs - Removed alert module
  • src/cortex-tui/src/runner/event_loop/modal.rs - Use toast instead of AuthAlertModal
  • src/cortex-tui/src/runner/event_loop/streaming.rs - Use toast instead of AuthAlertModal

Testing

  • cargo check -p cortex-tui passes

…with toast

- Remove 8 deprecated commands: provider, providers, mcp-tools, mcp-auth,
  mcp-reload, mcp-logs, crash, eval
- Change toast position from TopRight to BottomLeft
- Replace AuthAlertModal with toast notifications for authentication
- Delete alert.rs module (no longer needed)
@echobt echobt merged commit 6a4d543 into master Feb 2, 2026
2 of 4 checks passed
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

Comments