Files
ClaudeDo/src/ClaudeDo.Data/Models/PermissionModeRegistry.cs
mika kuns 5308ba3136 refactor(config): consolidate permission modes into PermissionModeRegistry
Also fixes WorkerHub.UpdateAppSettings falling back to "bypassPermissions"
when AppSettingsEntity and the runtime default are "auto". The fallback
now matches the entity default.
2026-05-19 08:59:16 +02:00

12 lines
274 B
C#

namespace ClaudeDo.Data.Models;
public static class PermissionModeRegistry
{
public static readonly IReadOnlyList<string> Modes = new[]
{
"auto", "bypassPermissions", "acceptEdits", "plan", "default",
};
public const string DefaultMode = "auto";
}