File tree Expand file tree Collapse file tree
internal/templates/commands Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,14 +4,10 @@ User's handoff message (if any): $ARGUMENTS
44
55Execute 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
1713Note: The new session will auto-prime via the SessionStart hook and find your handoff mail.
Original file line number Diff line number Diff 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
3642func TestBuildCommand_OpenCode (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments