feat(memory): add exec approval config lessons, daily notes, ACP decisions
- shared/long-term/lessons: OpenClaw exec 批准授权系统完整配置经验 - daily/2026-03-16: CLI安装、exec配置、待办记录 - daily/2026-03-15: 之前未提交的日志 - shared/long-term/decisions/acp-agents-integration.md - agents/openclaw-main: claude-switch/mcp 相关记录
This commit is contained in:
25
daily/2026-03-16.md
Normal file
25
daily/2026-03-16.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# 2026-03-16 Daily Notes
|
||||
|
||||
## OpenClaw + ACP + Coding Agent 环境配置
|
||||
|
||||
### 完成事项
|
||||
1. **mac-5 CLI 安装**:opencode-ai (1.2.27), @google/gemini-cli (0.33.1), acpx (0.3.0)
|
||||
2. **mac-5 配置文件创建**:
|
||||
- `~/.acpx/config.json` (defaultAgent=opencode, approve-reads, ttl=300, timeout=120)
|
||||
- `~/.config/opencode/opencode.json` (edit=ask, bash=ask)
|
||||
- `~/.openclaw/openclaw.json` 添加了 `acp` 配置块 (enabled=true, backend=acpx, allowedAgents=[opencode,gemini])
|
||||
3. **mac-6/mac-7 CLI 安装**:同上三个包
|
||||
4. **Exec 批准授权系统配置**:
|
||||
- mac-5 `openclaw.json` 添加 `tools.exec.security:"full"` + `ask:"off"` + `approvals.exec.enabled:false`
|
||||
- mac-6/mac-7 `exec-approvals.json` 统一为 defaults+agents.main 全部 `full/off/full`
|
||||
5. **经验沉淀**:写入 `shared/long-term/lessons/openclawd-ops-lessons.md`
|
||||
|
||||
### 待办
|
||||
- [ ] opencode/gemini CLI API key 配置(opencode 需要 provider 凭据,gemini 需要 GEMINI_API_KEY)
|
||||
- [ ] mac-6/mac-7 上创建 `~/.acpx/config.json` 和 `~/.config/opencode/opencode.json`
|
||||
- [ ] ACP 调用链路端到端测试
|
||||
|
||||
### 关键发现
|
||||
- OpenClaw exec 审批有**两个配置面**:gateway 侧 `openclaw.json` 的 `tools.exec.*` 和 node 侧 `exec-approvals.json`
|
||||
- `tools.exec.ask` 不显式写时默认 `"on-miss"`,不会继承 node 侧设置——这是弹窗根因
|
||||
- 详见 lessons 文件
|
||||
Reference in New Issue
Block a user