Skip to content

Commit 4281175

Browse files
authored
fix: replace --default flag with --conversation default (#74)
1 parent 61fd995 commit 4281175

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/tests/transport-args.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,12 @@ describe("buildCliArgs — conversation and agent routing", () => {
9696
expect(args).not.toContain("--default");
9797
});
9898

99-
test("agentId + defaultConversation → --agent + --default", () => {
99+
test("agentId + defaultConversation → --agent + --conversation default", () => {
100100
const args = buildCliArgs({ agentId: "agent-1", defaultConversation: true });
101101
expect(args).toContain("--agent");
102-
expect(args).toContain("--default");
102+
const idx = args.indexOf("--conversation");
103+
expect(idx).toBeGreaterThan(-1);
104+
expect(args[idx + 1]).toBe("default");
103105
expect(args).not.toContain("--new");
104106
});
105107

src/transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function buildCliArgs(options: InternalSessionOptions): string[] {
3535
if (options.newConversation) {
3636
args.push("--new");
3737
} else if (options.defaultConversation) {
38-
args.push("--default");
38+
args.push("--conversation", "default");
3939
}
4040
} else if (options.createOnly) {
4141
args.push("--new-agent");

0 commit comments

Comments
 (0)