Skip to content

Comments

Fix release progress panel truncating failed commands#7

Merged
mavam merged 4 commits intomainfrom
topic/fix-step-truncation
Feb 15, 2026
Merged

Fix release progress panel truncating failed commands#7
mavam merged 4 commits intomainfrom
topic/fix-step-truncation

Conversation

@mavam
Copy link
Member

@mavam mavam commented Feb 15, 2026

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 full gh release create/edit command now replaces the abbreviated ... placeholder via tracker.update_command("publish", shlex.join(command)).

  • Enhanced _render_release_progress() output: When a step fails, the full command is printed below the Rich panel with soft_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

mavam and others added 4 commits February 15, 2026 11:28
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>
@mavam mavam merged commit aa38229 into main Feb 15, 2026
7 checks passed
@mavam mavam deleted the topic/fix-step-truncation branch February 15, 2026 10:39
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