feat: Add spinner when generating commit message

This commit is contained in:
Paul Gauthier (aider) 2025-05-09 18:07:00 -07:00
parent 3daf7d4df3
commit 49b3f85cc5

View file

@ -20,6 +20,7 @@ import pathspec
from aider import prompts, utils
from .waiting import WaitingSpinner
from .dump import dump # noqa: F401
ANY_GIT_ERROR += [
@ -342,6 +343,7 @@ class GitRepo:
]
commit_message = None
with WaitingSpinner("Generating commit message"):
for model in self.models:
num_tokens = model.token_count(messages)
max_tokens = model.info.get("max_input_tokens") or 0