anthropics / anthropics/claude-code

Session opens in Auto Mode despite permissions.defaultMode: "default" set globally in ~/.claude/settings.json

Ouverte
#92,731 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
area:permissions bug
Langage dominant
Python
Étoiles
145k
Forks
23.1k
Métriques de merge des PR
Métriques de PR en attente

Description

**Description:**
`~/.claude/settings.json` has `permissions.defaultMode` set to `"default"` globally (all projects/categories), set specifically to disable the auto-mode classifier after it repeatedly blocked approved actions with no way to grant permission conversationally (writing to a `.env` file, `systemctl restart`, `git push`, etc.).

Despite this, new sessions have opened in Auto Mode on multiple occasions (most recently 2026-09-07). Re-confirming/re-switching the setting from within an already-running session does not change that session's mode — it appears the mode is fixed at session start and the settings.json value isn't re-read afterward, but I have no way to confirm the exact mechanism.

**Expected:** Sessions should consistently start in `default` mode per the global setting, with no unexplained reversion to Auto Mode.

**Actual:** Auto Mode has activated on sessions after the global override was set, and there's no in-session action available to correct it once a session has already started that way.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Start by reproducing the session-start behavior with permissions.defaultMode set to "default" in ~/.claude/settings.json, comparing new sessions with sessions where the setting is changed afterward. Trace how that file is loaded during session initialization and identify why Auto Mode can override the global value. Done means new sessions consistently honor the configured mode and a regression test covers the setting.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
python
Domaine
authorization, cli
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Active
Clarté
À clarifier
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.