Skip to content

Commit 9903be5

Browse files
committed
temp fix: allow confirm on contract read to present_proposal
1 parent 90c7ac2 commit 9903be5

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

apps/web/src/lib/server/decide-turn-policy.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,23 @@ export function decideTurnPolicy(input: DecideTurnPolicyInput): TurnPolicyDecisi
7777
}
7878

7979
return {
80-
action: "ask_clarification",
81-
reason: "Confirmation language without one recoverable proposal should ask which proposal to apply.",
82-
requiresWrite: false,
83-
requiresConfirmation: false,
80+
action: "present_proposal",
81+
reason: "Confirmation language arrived for a ready consent-gated write, but no recoverable proposal exists yet; present proposal now.",
82+
requiresWrite: true,
83+
requiresConfirmation: true,
8484
useMutationPipeline: false,
85-
clarificationSlots: ["proposal"],
85+
clarificationSlots: [],
8686
committedSlots: commitResult.committedSlots
8787
};
88+
// return {
89+
// action: "ask_clarification",
90+
// reason: "Confirmation language without one recoverable proposal should ask which proposal to apply.",
91+
// requiresWrite: false,
92+
// requiresConfirmation: false,
93+
// useMutationPipeline: false,
94+
// clarificationSlots: ["proposal"],
95+
// committedSlots: commitResult.committedSlots
96+
// };
8897
case "clarification_answer":
8998
case "planning_request":
9099
case "edit_request":

0 commit comments

Comments
 (0)