Fix release progress panel truncating failed commands#7
Merged
Conversation
The release progress panel could truncate long commands due to panel width constraints. Now the full failed command is printed below the panel using soft_wrap=True for user reference and retry purposes. Changes: - Add update_command() method to StepTracker to update command strings after initial registration - In publish_release(), update the "publish" step with the full gh command using shlex.join() after it's fully constructed - In _render_release_progress(), print the full failed command below the panel with soft_wrap=True to prevent truncation Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR improves the release workflow's error recovery by ensuring failed command instructions are never truncated by terminal width constraints.
When a release step fails, users now see the complete command they need to run for manual recovery, making it easier to diagnose and fix issues without needing to reconstruct the command from logs.
Changes
Added
StepTracker.update_command()method: Allows updating a step's command string after initial registration, enabling us to replace abbreviated placeholders with the full command.Updated
publish_release()function: The fullgh release create/editcommand now replaces the abbreviated...placeholder viatracker.update_command("publish", shlex.join(command)).Enhanced
_render_release_progress()output: When a step fails, the full command is printed below the Rich panel withsoft_wrap=True, ensuring it's never truncated by terminal width and remains copy-pasteable for manual recovery.Testing
The changes maintain backward compatibility with existing step tracking behavior. Failed steps now display actionable recovery instructions that can be directly executed without modification.
🤖 Generated with Claude Code