diff --git a/cli/cmd/ao/agent_bundle.go b/cli/cmd/ao/agent_bundle.go index ddd67ae44..fec06439a 100644 --- a/cli/cmd/ao/agent_bundle.go +++ b/cli/cmd/ao/agent_bundle.go @@ -106,7 +106,7 @@ func buildCodexNTMBundle(skills []string) agentBundle { Runtime: "codex-ntm", Instructions: stitchInstructions(skills), Skills: skills, - Bootstrap: "ao session bootstrap && ao inject --bead \"$BEAD\"", + Bootstrap: "ao session bootstrap && ao inject --bead \"$BEAD\"", Reference: "skills-codex/agent-native", } } diff --git a/cli/cmd/ao/agent_bundle_test.go b/cli/cmd/ao/agent_bundle_test.go index b1a78d9de..bfd86599e 100644 --- a/cli/cmd/ao/agent_bundle_test.go +++ b/cli/cmd/ao/agent_bundle_test.go @@ -91,6 +91,11 @@ func TestBuildAgentBundle_CodexNTM(t *testing.T) { if b.Runtime != "codex-ntm" { t.Errorf("Runtime = %q, want codex-ntm", b.Runtime) } + // Exact Bootstrap value — guards the codex-ntm struct literal against + // silent edits/drift (the field was the site of an unformatted-source fix). + if want := `ao session bootstrap && ao inject --bead "$BEAD"`; b.Bootstrap != want { + t.Errorf("codex-ntm Bootstrap = %q, want exactly %q", b.Bootstrap, want) + } if !strings.Contains(b.Bootstrap, "ao session bootstrap") { t.Errorf("codex-ntm Bootstrap must run `ao session bootstrap`, got %q", b.Bootstrap) }