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
+2
View File
@@ -67,6 +67,7 @@ type Chat struct {
endedTurns map[string]string
usage map[string]usageSnapshot
usageOrder uint64
modes map[string]string
}
type pendingForm struct {
@@ -407,6 +408,7 @@ func (c *Chat) PromptWithMessageIDModelFiles(ctx context.Context, id, text, mess
if model != "" {
params["model"] = model
}
c.applyMode(id, params)
c.mu.Lock()
if c.starting == nil {
c.starting = map[string]bool{}