Skip to content

Commit 5c8055b

Browse files
authored
fix: remove handoff confirmation from embedded command (#3674)
1 parent a2b3b7c commit 5c8055b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

internal/templates/commands/bodies/handoff.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ User's handoff message (if any): $ARGUMENTS
44

55
Execute these steps in order:
66

7-
1. Ask the user: "Ready to hand off? This will restart the session. (y/N)"
8-
- If the user says no or doesn't confirm, stop here. Do NOT run gt handoff.
9-
- Only proceed if the user explicitly confirms with 'y' or 'yes'.
10-
11-
2. If user provided a message, run the handoff command with a subject and message:
7+
1. If user provided a message, run the handoff command with a subject and message:
128
`gt handoff -y -s "HANDOFF: Session cycling" -m "USER_MESSAGE_HERE"`
139

14-
3. If no message was provided, run the handoff command:
10+
2. If no message was provided, run the handoff command:
1511
`gt handoff -y`
1612

1713
Note: The new session will auto-prime via the SessionStart hook and find your handoff mail.

internal/templates/commands/provision_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ func TestBuildCommand_Claude(t *testing.T) {
3131
if !strings.Contains(content, "$ARGUMENTS") {
3232
t.Error("missing $ARGUMENTS in body")
3333
}
34+
if strings.Contains(content, "Ready to hand off?") {
35+
t.Error("Claude handoff command should not require an interactive confirmation prompt")
36+
}
37+
if !strings.Contains(content, "gt handoff -y") {
38+
t.Error("Claude handoff command should use gt handoff -y")
39+
}
3440
}
3541

3642
func TestBuildCommand_OpenCode(t *testing.T) {

0 commit comments

Comments
 (0)