fix Codex hook trust detection

This commit is contained in:
thanhnv
2026-07-24 17:29:22 +07:00
parent 353d87b6ae
commit ee5d1f7af5
5 changed files with 427 additions and 12 deletions
+8
View File
@@ -216,6 +216,14 @@ casan doctor --client codex
casan doctor --client vscode-copilot
```
Với Codex, `doctor` đọc trạng thái hiệu lực bằng API `hooks/list` của chính
`codex app-server`. Nếu toàn bộ CASAN hook của project đang `trusted`, kết quả
là `READY` và không yêu cầu Allow lại. Action `/hooks` chỉ xuất hiện khi hook
thực sự `untrusted`/`modified`, bị tắt, hoặc máy hiện tại không thể xác minh
trust state. Hash toàn file `.codex/hooks.json` trong `init-manifest.json` là
checksum ownership phục vụ uninstall an toàn; nó không phải per-hook
`trusted_hash` mà Codex dùng để quyết định trust.
### Gỡ khỏi project
```bash