Skip to content

Conversation

@davenpi
Copy link
Collaborator

@davenpi davenpi commented Aug 2, 2025

What changed?

Renamed RequestContext to MessageContext across both client and server sides. This includes updating the class names, file names (request_context.pymessage_context.py), all imports, type signatures, and test references.

Closes #44

Why?

The original name RequestContext was misleading since the context is used for both requests AND notifications. The class contains general client/server state and communication helpers, not request-specific data.

Impact

  • More honest and accurate naming that reflects actual usage
  • No breaking changes to public APIs - this is purely internal refactoring
  • Improved code clarity for future developers

Testing

  • All existing tests updated and passing
  • No functional changes, only naming updates
  • Verified comprehensive coverage with grep searches

Review notes

This is a pure rename with no logic changes. The context object provides the same functionality, just with a name that accurately describes its purpose across all message types.

Checklist

  • All new and old tests pass
  • Code follows our style guidelines
  • Documentation updated if needed
  • Breaking changes documented in commit messages

@davenpi davenpi merged commit 6e63dcb into main Aug 2, 2025
6 checks passed
@davenpi davenpi deleted the chore/rename-request-context branch August 2, 2025 19:05
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.

[Bug]: Rename RequestContext to MessageContext

2 participants