From 2dfe52b46099dfd420e65338147e785ff262ca18 Mon Sep 17 00:00:00 2001 From: Arach Tchoupani Date: Fri, 5 Jun 2026 14:01:52 -0400 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20Infer=20current-project=20ask?= =?UTF-8?q?=20target=20from=20harness/--new?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When `scout ask` gets only execution preferences (--harness, --session new, or --new) and no --to/--ref/--project, route to the current directory and request a one-time fresh project agent. Adds --session new / --new flags and rejects mixed/unsupported session preferences before routing. --- apps/desktop/src/cli/commands/ask.test.ts | 2 + apps/desktop/src/cli/commands/ask.ts | 8 +- apps/desktop/src/cli/help.test.ts | 1 + apps/desktop/src/cli/help.ts | 2 + apps/desktop/src/cli/options.test.ts | 44 +++++++ apps/desktop/src/cli/options.ts | 87 ++++++++++++- apps/desktop/src/core/broker/ask.ts | 20 ++- apps/desktop/src/core/broker/service.test.ts | 122 +++++++++++++++++++ apps/desktop/src/core/broker/service.ts | 5 + packages/cli/test/scout-wrapper.test.mjs | 29 +++++ 10 files changed, 316 insertions(+), 4 deletions(-) diff --git a/apps/desktop/src/cli/commands/ask.test.ts b/apps/desktop/src/cli/commands/ask.test.ts index 3bbf5024..eefa6f3b 100644 --- a/apps/desktop/src/cli/commands/ask.test.ts +++ b/apps/desktop/src/cli/commands/ask.test.ts @@ -13,6 +13,8 @@ describe("renderAskCommandHelp", () => { expect(help).toContain("--reply-mode notify"); expect(help).toContain("--label