[loop-generated] [refactor] Break up _handle_tool_confirmation() — 74 lines in cli.py #592

Closed
opened 2026-03-20 16:05:01 +00:00 by Timmy · 0 comments
Owner

Problem

_handle_tool_confirmation() in src/timmy/cli.py is 74 lines handling tool call display and user confirmation.

Proposed Fix

Extract into helpers:

  • _format_tool_call(call) — format a single tool call for display
  • _prompt_user_confirmation(calls) — handle the interactive Y/N flow

Files

  • src/timmy/cli.py

Acceptance

  • Each helper < 30 lines
  • tox -e unit passes
  • No net increase in LOC
## Problem `_handle_tool_confirmation()` in `src/timmy/cli.py` is 74 lines handling tool call display and user confirmation. ## Proposed Fix Extract into helpers: - `_format_tool_call(call)` — format a single tool call for display - `_prompt_user_confirmation(calls)` — handle the interactive Y/N flow ## Files - `src/timmy/cli.py` ## Acceptance - Each helper < 30 lines - `tox -e unit` passes - No net increase in LOC
Timmy self-assigned this 2026-03-20 16:23:12 +00:00
Timmy closed this issue 2026-03-20 16:32:26 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#592