@khalilgharbaoui/opencode-claude-code-plugin 0.9.1 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2583,7 +2583,7 @@ function isAskUserQuestionTool(name) {
2583
2583
  const n = name.toLowerCase();
2584
2584
  return n === "askuserquestion" || n === "ask_user_question";
2585
2585
  }
2586
- var ASK_USER_QUESTION_DENY_MESSAGE = "Your question and its options have already been presented to the operator verbatim. Stop now: end your turn without calling any more tools and without answering the question yourself. Wait for the operator's reply, which arrives as the next user message. Do not guess, assume, or proceed on their behalf.";
2586
+ var ASK_USER_QUESTION_DENY_MESSAGE = "Your question and its options have already been presented to the operator verbatim. This is NOT a cancellation or a refusal \u2014 the operator simply has not answered yet. Stop now: end your turn without calling any more tools and without answering the question yourself. Do not say the question was cancelled, skipped, or declined, and do not guess, assume, or proceed on their behalf. Wait for the operator's reply, which arrives as the next user message.";
2587
2587
  function denyMessageForTool(toolName, configuredDenyMessage) {
2588
2588
  if (isAskUserQuestionTool(toolName)) return ASK_USER_QUESTION_DENY_MESSAGE;
2589
2589
  return configuredDenyMessage ?? `Denied by opencode-claude-code policy for tool ${toolName}`;
@@ -2659,6 +2659,7 @@ function shouldAutoContinueIncompleteTurn(state, snapshot) {
2659
2659
  if (state.enabled === false) return { continue: false, reason: "disabled" };
2660
2660
  if (snapshot.isError) return { continue: false, reason: "error" };
2661
2661
  if (state.aborted) return { continue: false, reason: "aborted" };
2662
+ if (state.sawAskUserQuestion) return { continue: false, reason: "question" };
2662
2663
  if (snapshot.stopReason) {
2663
2664
  return {
2664
2665
  continue: false,
@@ -4114,6 +4115,7 @@ ${plan}
4114
4115
  } catch {
4115
4116
  }
4116
4117
  if (isAskUserQuestionTool(tc.name)) {
4118
+ autoContinueState.sawAskUserQuestion = true;
4117
4119
  const askId = startTextBlock();
4118
4120
  controller.enqueue({
4119
4121
  type: "text-delta",