Skip to content

refactor: remove redundant workout tracking tools#105

Merged
QueryPlanner merged 1 commit into
mainfrom
cleanup/remove-redundant-workout-tools
Jun 7, 2026
Merged

refactor: remove redundant workout tracking tools#105
QueryPlanner merged 1 commit into
mainfrom
cleanup/remove-redundant-workout-tools

Conversation

@QueryPlanner
Copy link
Copy Markdown
Owner

What

Removes the list_recent_workouts and get_exercise_progress tools and their associated storage methods and models.

Why

Following the addition of the new periodized training program tools, get_training_history provides the combined functionality of both removed tools. Reducing redundancy saves registry tokens and prevents agent confusion.

How

  • Removed list_recent_workouts and get_exercise_progress from src/blacki/workouts/tools.py.
  • Removed WorkoutSessionSummary and ExerciseHistoryEntry Pydantic models.
  • Removed get_recent_sessions and get_exercise_history from SQLite storage.
  • Updated src/blacki/registry.py to stop registering these tools.
  • Removed and updated related unit tests to ensure 100% test coverage is maintained.

Tests

  • Run uv run pytest --cov=src (100% coverage)
  • Run uv run ruff format and uv run ruff check
  • Run uv run mypy .

- Remove get_exercise_progress and list_recent_workouts tools
- Remove unused Pydantic models ExerciseHistoryEntry and WorkoutSummary
- Remove storage methods get_exercise_history and get_recent_sessions
- Update tool registry and tests to reflect removed features
@QueryPlanner QueryPlanner added the enhancement New feature or request label Jun 7, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the get_exercise_progress and list_recent_workouts tools from the workout service. This includes deleting their corresponding storage methods (get_exercise_history and get_recent_sessions), Pydantic models (WorkoutSessionSummary and ExerciseHistoryEntry), registry entries, and associated unit tests. I have no feedback to provide as there are no review comments.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@QueryPlanner QueryPlanner merged commit 7320714 into main Jun 7, 2026
1 check passed
@QueryPlanner QueryPlanner deleted the cleanup/remove-redundant-workout-tools branch June 7, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant