Skip to content

Commit b8bf950

Browse files
committed
fix(examples): pass --yes on demo.sh's global setting writes
Global setting updates require explicit confirmation in non-interactive mode; demo.sh's enable_agent_proposals and the cleanup restore path were missing --yes and hard-failed the preflight. Pre-existing issue that surfaced now that more of the demo runs through this path. No other behavior change. Signed-off-by: Alexander Watson <zredlined@gmail.com>
1 parent d821a25 commit b8bf950

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • examples/agent-driven-policy-management

‎examples/agent-driven-policy-management/demo.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ cleanup() {
117117
# before this run.
118118
if [[ -n "${PRIOR_PROPOSALS_FLAG:-}" ]]; then
119119
if [[ "$PRIOR_PROPOSALS_FLAG" == "(unset)" ]]; then
120-
"$OPENSHELL_BIN" settings delete --global --key agent_policy_proposals_enabled \
120+
"$OPENSHELL_BIN" settings delete --global --key agent_policy_proposals_enabled --yes \
121121
>/dev/null 2>&1 || true
122122
else
123123
"$OPENSHELL_BIN" settings set --global --key agent_policy_proposals_enabled \
124-
--value "$PRIOR_PROPOSALS_FLAG" >/dev/null 2>&1 || true
124+
--value "$PRIOR_PROPOSALS_FLAG" --yes >/dev/null 2>&1 || true
125125
fi
126126
fi
127127

@@ -433,7 +433,7 @@ enable_agent_proposals() {
433433
| grep -o 'true\|false' | head -1)"
434434
PRIOR_PROPOSALS_FLAG="${prior:-(unset)}"
435435
"$OPENSHELL_BIN" settings set --global \
436-
--key agent_policy_proposals_enabled --value true >/dev/null \
436+
--key agent_policy_proposals_enabled --value true --yes >/dev/null \
437437
|| fail "could not enable agent_policy_proposals_enabled globally"
438438
}
439439

0 commit comments

Comments
 (0)