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
41 changes: 41 additions & 0 deletions apps/ade-cli/src/cli.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2489,6 +2489,47 @@ describe("ADE CLI", () => {
expect(value.input).not.toHaveProperty("title");
});

it("prints a non-billing Claude Opus 5 launch plan with effort and fast mode", () => {
const staticPlan = expectStaticPlan(buildCliPlan([
"chat",
"create",
"--lane",
"lane-1",
"--provider",
"claude",
"--model",
"anthropic/claude-opus-5",
"--reasoning-effort",
"high",
"--fast",
"--dry-run",
]));
const value = staticPlan.value as {
input: Record<string, unknown>;
resolved: Record<string, unknown>;
};

expect(value).toMatchObject({
ok: true,
dryRun: true,
action: "chat.createSession",
});
expect(value.input).toMatchObject({
laneId: "lane-1",
provider: "claude",
model: "anthropic/claude-opus-5",
modelId: "anthropic/claude-opus-5",
reasoningEffort: "high",
fastMode: true,
});
expect(value.resolved).toMatchObject({
provider: "claude",
model: "anthropic/claude-opus-5",
reasoningEffort: "high",
fastMode: true,
});
});

describe("chat create parent lineage", () => {
const savedParentEnv = process.env.ADE_CHAT_SESSION_ID;
afterEach(() => {
Expand Down
10 changes: 5 additions & 5 deletions apps/ade-cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ const HELP_BY_COMMAND: Record<string, string> = {
$ ade new chat --mode chat --lane <lane> --provider codex --model openai/gpt-5.6-sol --reasoning-effort xhigh --permissions full-auto --no-fast --prompt "Fix the tests"
$ ade new chat --mode cli --lane <lane> --provider codex --model openai/gpt-5.6-sol --reasoning-effort xhigh --permissions full-auto --no-fast --prompt "Fix the tests"
$ ade new chat --mode chat --auto-create-lane --prompt "Fix login"
$ ade new cli --lane <lane> --provider claude --model anthropic/claude-opus-4-8 --effort ultracode --prompt "Review the diff"
$ ade new cli --lane <lane> --provider claude --model anthropic/claude-opus-5 --effort high --prompt "Review the diff"

Flags:
--mode <chat|cli> Select a persistent ADE chat or tracked provider CLI session.
Expand Down Expand Up @@ -1654,7 +1654,7 @@ const HELP_BY_COMMAND: Record<string, string> = {
$ ade chat list --include-automation --no-archived --text
$ ade chat create --lane <lane> --provider codex --model openai/gpt-5.6-sol --reasoning-effort xhigh --no-fast --permissions full-auto
$ ade chat create --personal --provider codex --model openai/gpt-5.6-sol --prompt "Plan my trip"
$ ade chat create --lane <lane> --provider claude --model anthropic/claude-opus-4-8 --prompt "fix the tests"
$ ade chat create --lane <lane> --provider claude --model anthropic/claude-opus-5 --prompt "fix the tests"
$ ade chat create --from-linear-issue ENG-431 Start a chat with an attached issue + kickoff (alias: --linear-issue-json)
$ ade chat send <session> --text "next step" Send a message; steers automatically if the turn is active
$ ade chat note "running e2e shard 2/4" Update this session's Work sidebar status line
Expand Down Expand Up @@ -1744,8 +1744,8 @@ const HELP_BY_COMMAND: Record<string, string> = {
Create a persistent ADE Work chat session with provider/model/runtime settings.

$ ade chat create --lane <lane> --provider codex --model openai/gpt-5.6-sol --reasoning-effort xhigh --no-fast --permissions full-auto
$ ade chat create --lane <lane> --provider claude --model anthropic/claude-opus-4-8 --effort high --permissions plan
$ ade chat create --lane <lane> --provider claude --model anthropic/claude-opus-4-8 --effort ultracode --prompt "fix"
$ ade chat create --lane <lane> --provider claude --model anthropic/claude-opus-5 --effort high --permissions plan
$ ade chat create --lane <lane> --provider claude --model anthropic/claude-opus-5 --effort max --prompt "fix"
$ ade chat create --lane <lane> --provider cursor --model cursor/<model> --standard --print-config --json
$ ade chat create --from-linear-issue ENG-431 --provider codex --model openai/gpt-5.6-sol --prompt "Work this issue"

Expand Down Expand Up @@ -1839,7 +1839,7 @@ const HELP_BY_COMMAND: Record<string, string> = {
reasoning/fast launch settings. This command does not support reasoning effort.

$ ade agent spawn --lane <lane> --provider codex --model openai/gpt-5.6-sol --permissions full-auto --prompt "Fix the failing test"
$ ade agent spawn --lane <lane> --provider claude --model claude-opus-4-8 --permissions plan --prompt "Review the diff"
$ ade agent spawn --lane <lane> --provider claude --model claude-opus-5 --permissions plan --prompt "Review the diff"

Flags:
--lane <lane> Required lane/worktree.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,15 @@ describe("buildModelPickerLayout", () => {
focusedIndex: 0,
searchMode: false,
});
expect(layout.entries.length).toBeGreaterThan(0);
expect(layout.entries.map((entry) => entry.modelId)).toEqual([
"anthropic/claude-fable-5",
"anthropic/claude-opus-5",
"anthropic/claude-sonnet-5",
"anthropic/claude-haiku-4-5",
"anthropic/claude-opus-4-8",
"anthropic/claude-opus-4-7-1m",
]);
expect(layout.entries.every((entry) => entry.family === "claude")).toBe(true);
expect(layout.entries.some((entry) => entry.displayName.includes("Claude"))).toBe(true);
});

it("normalizes catalog provider aliases like anthropic into the Anthropic rail", () => {
Expand Down
Loading