Skip to content

Commit 0a53a04

Browse files
committed
Fix schedule update silently dropping --attach without --description
The attach-only fallback was gated on `!hasChanges`, so passing `--attach` alongside other flags like `--summary` would silently drop the attachment (summary sets hasChanges=true, skipping the fallback). Change the guard to `description == ""` so attachments are always processed when no description text is provided.
1 parent 2009404 commit 0a53a04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/commands/schedule.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,8 +677,8 @@ You can pass either an entry ID or a Basecamp URL:
677677
}
678678
}
679679

680-
// Handle attachments-only updates (no description text provided)
681-
if !hasChanges && len(attachFiles) > 0 {
680+
// Handle attachments when no description text provided
681+
if description == "" && len(attachFiles) > 0 {
682682
refs, attachErr := uploadAttachments(cmd, app, attachFiles)
683683
if attachErr != nil {
684684
return attachErr

0 commit comments

Comments
 (0)