Skip to content

feat: implement ModeManager with observer pattern (#15)#45

Merged
sahoo-tech merged 3 commits into
sahoo-tech:mainfrom
sudiptom619:feature/mode-manager
May 14, 2026
Merged

feat: implement ModeManager with observer pattern (#15)#45
sahoo-tech merged 3 commits into
sahoo-tech:mainfrom
sudiptom619:feature/mode-manager

Conversation

@sudiptom619
Copy link
Copy Markdown
Contributor

Closes #15

What was built:

  • ModeManager class in core/hybrid/mode_manager.py
  • switch_mode() with validation and ValueError for invalid modes
  • get_current_mode() returns mode + description
  • on_mode_change() registers observer callbacks
  • _notify_observers() triggers all callbacks on mode change
  • 7 unit tests covering all methods

Note: mode_manager instance is exported for use in api/routes/mode.py

@sudiptom619
Copy link
Copy Markdown
Contributor Author

sudiptom619 commented May 11, 2026

Hi @sahoo-tech , I'm aware GSSoC contributions officially start May 15th. This PR is ready for review whenever the window opens.

@sahoo-tech sahoo-tech merged commit a9965f7 into sahoo-tech:main May 14, 2026
1 check passed
@sudiptom619
Copy link
Copy Markdown
Contributor Author

@sahoo-tech can you please add the gssoc label to this?

@sudiptom619
Copy link
Copy Markdown
Contributor Author

@sahoo-tech please add gssoc label to this so points get updated in the profile.

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.

Implement mode_manager.py — Interaction Mode Controller

2 participants