Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 2.06 KB

File metadata and controls

59 lines (44 loc) · 2.06 KB

SENTINEL Startup Fixes Summary

Issues Fixed:

1. DEBUG message "fuzzy_correction already loaded"

File: bash_modules.d/fuzzy_correction.module Fix: Added check for SENTINEL_DEBUG environment variable - message only shows when SENTINEL_DEBUG=1

2. ERROR "sentinel_log_info not loaded in command_chains"

File: bash_modules.d/command_chains.module Fix:

  • Added check for SENTINEL_DEBUG before displaying error messages
  • Added fallback empty functions when logging module is not available
  • Both debug and error messages now only show when SENTINEL_DEBUG=1

3. Python package warnings suppression

Files:

  • bash_modules.d/sentinel_ml_enhanced.module
  • bash_modules.d/sentinel_markov.module
  • bash_modules.d/sentinel_ml.module
  • bash_modules.d/python_integration.module

Fix: Added checks for SENTINEL_VERBOSE or SENTINEL_DEBUG environment variables before displaying warnings about missing Python packages or module loading messages

4. Background job notifications "[18]- Done"

Files:

  • bash_modules.d/sentinel_ml_enhanced.module
  • bash_modules.d/command_chains.module
  • bash_modules.d/sentinel_context.module

Fix: Wrapped background jobs in subshells with stderr redirection: ( command & ) 2>/dev/null

Environment Variables for Control:

  • SENTINEL_DEBUG=1 - Shows debug messages including module loading
  • SENTINEL_VERBOSE=1 - Shows verbose output including Python package warnings
  • SENTINEL_QUIET_MODE=1 - Suppresses most module messages (already implemented)
  • SENTINEL_SUPPRESS_MODULE_MESSAGES=1 - Suppresses module loading messages (already implemented)

To Enable Debug/Verbose Mode:

# For one session
export SENTINEL_DEBUG=1
export SENTINEL_VERBOSE=1

# Or permanently in .bashrc
echo "export SENTINEL_DEBUG=0" >> ~/.bashrc
echo "export SENTINEL_VERBOSE=0" >> ~/.bashrc

Testing:

To test the fixes, open a new terminal or run:

source ~/.bashrc

The startup should now be clean without debug messages, Python warnings, or background job notifications unless explicitly enabled.