(t *testing.T)
| 1095 | } |
| 1096 | |
| 1097 | func TestCmdDoWithFreshInjectsAfterBootstrap(t *testing.T) { |
| 1098 | setupFlowRoot(t) |
| 1099 | seedTask(t, "with-fresh") |
| 1100 | _, getScript := stubITerm(t) |
| 1101 | |
| 1102 | if rc := cmdDo([]string{"with-fresh", "--with", "check upstream PR"}); rc != 0 { |
| 1103 | t.Fatalf("rc=%d", rc) |
| 1104 | } |
| 1105 | script := getScript() |
| 1106 | if !strings.Contains(script, "claude --session-id ") { |
| 1107 | t.Errorf("fresh path should still use --session-id: %s", script) |
| 1108 | } |
| 1109 | if !strings.Contains(script, "execution session for flow task with-fresh") { |
| 1110 | t.Errorf("bootstrap prompt should be intact: %s", script) |
| 1111 | } |
nothing calls this directly
no test coverage detected