Provide interactive menu for commit generation #1

Open
opened 2025-07-06 15:34:06 +00:00 by glenux · 0 comments
Owner

Provide a concise, user-friendly menu that appears after generating a commit message, allowing immediate interaction.

Proposed solution

  • First display the generated message with used parameters for generation.
  • Provide short commands (c, e, r, t, m, q, ?) for immediate actions (commit, edit, regenerate, etc.).
  • Implement simple, clear help text when the user presses “?”.

Example

== Generating new commit message from diff
-- Files:
   llm_commit.py
-- Options: model=openai/gpt-4.1 temperature=0.8 tokens=200 style=semantic
-- Message:
   feat: Add functions to describe commit style and build prompt

   - Added function to retrieve style description based on commit style
   - Added function to build prompt string using style description, code diff,
   	 and constraints

Choose an action [c|e|r|t|m|q|?]?

When user types '?', the following menu is displayed:

c - Commit message (you can enter a number after the 'c' to select a specific
    version).
e - Edit message with $EDITOR (you can enter a number after the 'e' to select a
    specific version).
r - Regenerate the message.
t - Change token limit and regenerate.
m - Change model and regenerate
q - I'm bodred; quit please.
? - Display this help.
Provide a concise, user-friendly menu that appears after generating a commit message, allowing immediate interaction. ## Proposed solution * First display the generated message with used parameters for generation. * Provide short commands (c, e, r, t, m, q, ?) for immediate actions (commit, edit, regenerate, etc.). * Implement simple, clear help text when the user presses “?”. ## Example ``` == Generating new commit message from diff -- Files: llm_commit.py -- Options: model=openai/gpt-4.1 temperature=0.8 tokens=200 style=semantic -- Message: feat: Add functions to describe commit style and build prompt - Added function to retrieve style description based on commit style - Added function to build prompt string using style description, code diff, and constraints Choose an action [c|e|r|t|m|q|?]? ``` When user types '?', the following menu is displayed: ``` c - Commit message (you can enter a number after the 'c' to select a specific version). e - Edit message with $EDITOR (you can enter a number after the 'e' to select a specific version). r - Regenerate the message. t - Change token limit and regenerate. m - Change model and regenerate q - I'm bodred; quit please. ? - Display this help. ```
glenux added this to the Default project 2025-07-06 15:52:48 +00:00
glenux changed title from [feature] Provide interactive menu for commit generation to Provide interactive menu for commit generation 2025-07-06 16:16:44 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: glenux/llm-commit-gen#1
No description provided.