Skip to content

Commit 2a972be

Browse files
committed
refactor(contracts): steer rejection reuses the goal command parser
1 parent b6d25e1 commit 2a972be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/contracts/src/orchestrationV2.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1340,7 +1340,7 @@ export function orchestrationV2SteerRejectionReason(
13401340
? "Context compaction must run as a separate turn."
13411341
: "Signing out must run as a separate turn.";
13421342
}
1343-
if (message.attachments.length === 0 && /^\/goal(?:\s|$)/u.test(message.text.trim())) {
1343+
if (parseGoalCommand(message) !== null) {
13441344
return "Goal commands must run as a separate turn.";
13451345
}
13461346
return null;

0 commit comments

Comments
 (0)