feat(chat): per-chat permission modes for Claude, Codex and OpenCode

This commit is contained in:
2026-10-24 18:16:10 +01:00
parent ef575898f2
commit 6d430948a6
29 changed files with 1512 additions and 3 deletions
+4
View File
@@ -199,6 +199,7 @@ func (c *Connection) Call(ctx context.Context, method, path string, body any) ([
Prompt string `json:"prompt"`
Text string `json:"text"`
ID string `json:"id"`
Agent string `json:"agent"`
Format json.RawMessage `json:"format"`
Parts []struct {
Text string `json:"text"`
@@ -226,6 +227,9 @@ func (c *Connection) Call(ctx context.Context, method, path string, body any) ([
if request.ID != "" {
payload["id"] = request.ID
}
if request.Agent != "" {
payload["agent"] = request.Agent
}
if len(request.Format) > 0 {
supported, err := c.supportsFormat(ctx, request.Format)
if err != nil {