From 0dfb0084905fb5b5c08f8ff58e3bd5b162bffdac Mon Sep 17 00:00:00 2001 From: David Chen Date: Sun, 4 Jan 2026 11:35:22 -0800 Subject: [PATCH] migrate for opencode v1.1 --- opencode/opencode.json | 5 ----- zsh/functions/_op_common.zsh | 24 ------------------------ 2 files changed, 29 deletions(-) diff --git a/opencode/opencode.json b/opencode/opencode.json index 45174a6..9993c14 100644 --- a/opencode/opencode.json +++ b/opencode/opencode.json @@ -103,11 +103,6 @@ "edit": "deny", "bash": "deny", "webfetch": "deny" - }, - "tools": { - "edit": false, - "bash": false, - "webfetch": false } } } diff --git a/zsh/functions/_op_common.zsh b/zsh/functions/_op_common.zsh index 269a57e..b3de0a3 100644 --- a/zsh/functions/_op_common.zsh +++ b/zsh/functions/_op_common.zsh @@ -29,30 +29,6 @@ _op_run() { return 1 fi - # Merge project opencode.json if it exists - local project_config="" - local search_dir="$PWD" - while [ "$search_dir" != "/" ]; do - if [ -f "$search_dir/opencode.json" ]; then - project_config="$search_dir/opencode.json" - break - fi - if [ -d "$search_dir/.git" ]; then - break - fi - search_dir="${search_dir:h}" - done - - if [ -n "$project_config" ]; then - print -u2 "$tag: merging project config from $project_config" - local merged - if merged=$(jq -s '.[0] * .[1]' "$tmp_home/opencode.json" "$project_config" 2>/dev/null); then - printf '%s\n' "$merged" > "$tmp_home/opencode.json" - else - print -u2 "$tag: warning: failed to merge project config, using base only" - fi - fi - local base_agents="$base_home/AGENTS.md" if [ "$tag" = "se" ]; then local search_agents="$base_home/agent/search/AGENTS.md"