TestBuildAutoBootstrapPrompt sanity-checks that the autonomous prompt tells the session it is headless, forbids interactive prompting, instructs self-closure via flow done, AND insists on persisting toward a closeable state (giving up only as a last resort).
(t *testing.T)
| 323 | // instructs self-closure via flow done, AND insists on persisting toward |
| 324 | // a closeable state (giving up only as a last resort). |
| 325 | func TestBuildAutoBootstrapPrompt(t *testing.T) { |
| 326 | p := buildAutoBootstrapPrompt("my-task", "regular", "") |
| 327 | for _, want := range []string{ |
| 328 | "my-task", "flow done", "AskUserQuestion", "autonomous", |
| 329 | "PERSIST", "LAST RESORT", "EXHAUST", |
| 330 | } { |
| 331 | if !strings.Contains(p, want) { |
| 332 | t.Errorf("auto prompt missing %q", want) |
| 333 | } |
| 334 | } |
| 335 | } |
nothing calls this directly
no test coverage detected