File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ func TestClaudeExecutorUsesTaskPrompt(t *testing.T) {
5252 fakeClaude := filepath .Join (dir , "claude" )
5353 // Script echoes the prompt argument (last arg) so we can verify it
5454 // Args: --print --allowedTools <tools> <prompt>
55- if err := os .WriteFile (fakeClaude , []byte ("#!/bin/sh\n echo \" ${@: -1} \" " ), 0o755 ); err != nil {
55+ if err := os .WriteFile (fakeClaude , []byte ("#!/bin/sh\n echo \" $@ \" " ), 0o755 ); err != nil {
5656 t .Fatal (err )
5757 }
5858 t .Setenv ("PATH" , dir )
@@ -79,7 +79,7 @@ func TestClaudeExecutorUsesTaskPrompt(t *testing.T) {
7979func TestClaudeExecutorFallsBackToBuildPrompt (t * testing.T ) {
8080 dir := t .TempDir ()
8181 fakeClaude := filepath .Join (dir , "claude" )
82- if err := os .WriteFile (fakeClaude , []byte ("#!/bin/sh\n echo \" ${@: -1} \" " ), 0o755 ); err != nil {
82+ if err := os .WriteFile (fakeClaude , []byte ("#!/bin/sh\n echo \" $@ \" " ), 0o755 ); err != nil {
8383 t .Fatal (err )
8484 }
8585 t .Setenv ("PATH" , dir )
You can’t perform that action at this time.
0 commit comments