Skip to content

Show loading status while preparing custom command prompts#5733

Open
ileadall42 wants to merge 2 commits into
jesseduffield:masterfrom
ileadall42:codex/prompt-loading-text
Open

Show loading status while preparing custom command prompts#5733
ileadall42 wants to merge 2 commits into
jesseduffield:masterfrom
ileadall42:codex/prompt-loading-text

Conversation

@ileadall42

Copy link
Copy Markdown

Summary

  • Add loadingText support to custom command prompts while resolving slow prompt values, loading suggestions, and generating menuFromCommand options.
  • Add output: commitMessagePanel, which sends custom command stdout into Lazygit's native commit message panel as the initial commit message.
  • Update docs, config validation, generated schema, and integration coverage.

Motivation

Custom commands can use slow commands to generate prompt values or commit messages. Before this change, users had no visible feedback while those prompt-generation commands were running, and custom commands could not hand generated commit text back to Lazygit's native commit summary/body UI.

This keeps the flow inside Lazygit and reuses the existing commit panel and commit logic instead of introducing a separate commit UI.

Validation

  • go test -count=1 ./pkg/gui/services/custom_commands ./pkg/config
  • go test pkg/integration/clients/*.go -run 'TestIntegration/custom_commands/'
  • env -u NO_COLOR TERM=xterm-256color go test ./... -short
  • ./scripts/golangci-lint-shim.sh run

evan added 2 commits June 27, 2026 08:48
Prompt templates can run user commands before the final custom command starts. When those commands are slow, lazygit previously looked idle because the existing command-level loading text only covered the final command execution. Wrap prompt resolution, suggestion loading, and menuFromCommand generation with the prompt's loading text so users get progress feedback during each synchronous prompt preparation step.
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.

1 participant