feat(chat): per-chat permission modes for Claude, Codex and OpenCode
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user