Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions src/handlers/project/create/create.screen.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ describe("project create wizard", () => {

// Type step: harness is the preselected default.
await waitForText(r.lastFrame, "what should the project be built around?");
expect(r.lastFrame()).toContain("● harness (recommended)");
const typeStep = r.lastFrame()!;
expect(typeStep).toContain("○ agent code");
expect(typeStep).toContain("● harness");
expect(typeStep).not.toContain("harness (recommended)");
expect(typeStep.indexOf("○ agent code")).toBeLessThan(typeStep.indexOf("● harness"));
await r.press("return");

// Model step: providers and the selected provider's fields share one page.
Expand Down Expand Up @@ -275,7 +279,7 @@ describe("project create wizard", () => {
await r.press("return");

await waitForText(r.lastFrame, "what should the project be built around?");
await r.press("down"); // agent code
await r.press("up"); // agent code
await waitForText(r.lastFrame, "● agent code");
await r.press("return");

Expand Down Expand Up @@ -324,7 +328,7 @@ describe("project create wizard", () => {
await r.write("HelloApp");
await r.press("return");
await waitForText(r.lastFrame, "what should the project be built around?");
await r.press("down");
await r.press("up");
await r.press("return");
await waitForText(r.lastFrame, "choose a template");
await r.press("down"); // agent-python-strands-container
Expand Down Expand Up @@ -359,7 +363,7 @@ describe("project create wizard", () => {
await r.write("EmptyApp");
await r.press("return");
await waitForText(r.lastFrame, "what should the project be built around?");
await r.press("down");
await r.press("up");
await r.press("return");
await waitForText(r.lastFrame, "choose a template");
// empty is the last option in the list.
Expand Down
10 changes: 5 additions & 5 deletions src/handlers/project/create/screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,16 @@ function emptyCreateProjectForm(): CreateProjectFormValues {
}

const PROJECT_KIND_OPTIONS: { kind: ProjectKind; label: string; description: string }[] = [
{
kind: "harness",
label: "harness (recommended)",
description: "a managed agent configured by spec — no agent-loop code to maintain",
},
{
kind: "agent",
label: "agent code",
description: "generate runnable agent code from a template",
},
{
kind: "harness",
label: "harness",
description: "a managed agent configured by spec — no agent-loop code to maintain",
},
];

const TEMPLATE_OPTIONS: {
Expand Down
Loading