Skip to content

Commit ede414a

Browse files
committed
fix: preserve tool-selection failures and fixture cleanup
1 parent 9088fa9 commit ede414a

3 files changed

Lines changed: 440 additions & 198 deletions

File tree

‎packages/cli/src/cli/cmd/run.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ export const RunCommand = cmd({
12131213
invocation.phase("bootstrap")
12141214
if (args.attach) {
12151215
// This checkout has no receiver/capability contract that can enforce selection.
1216-
const configured = await Config.readToolSelection(process.cwd())
1216+
const configured = await invocation.guard(() => Config.readToolSelection(process.cwd()))
12171217
if (configured !== undefined) {
12181218
await fail(
12191219
"Work-tool selection is not supported with --attach: this client cannot verify server-side enforcement. Remove --tools and local tool_allowlist or run locally.",

0 commit comments

Comments
 (0)