Skip to content

Commit 95791c2

Browse files
committed
docs(permissions): match grant-file help and load log
1 parent b125da5 commit 95791c2

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎docs/IMPLEMENTATION.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ Printed by `corbits --help` / `-h` from `CLI_HELP_TEXT` in `src/config/index.ts`
437437
| `resume --pick` / `--list` | — | Interactive session picker |
438438
| `--cwd <dir>` | `process.cwd()` | Working directory |
439439
| `--config <path>` | `~/.corbits/settings.json` | Active settings file for provider definitions and TUI persistence such as `/yolo`; composes with (does not exclude) home-level codex/xai OAuth credentials |
440-
| `--permissions <path>` | — | Process-only grant file. Its `approvals` replace user-global and provider-model grants for this process and are not merged with `~/.corbits/permissions.json`. Missing, unreadable, invalid JSON, or a wildcard-only pattern fails at start. |
440+
| `--permissions <path>` | — | Process-only grant file. Its `approvals` replace user-global and provider-model grants for this process and are not merged with `~/.corbits/permissions.json`. Session and project grants still apply; project entries still need trust confirmation. Missing, unreadable, invalid JSON, or a wildcard-only pattern fails at start. |
441441
| `--provider <name>` | from settings | Select a configured provider |
442442
| `--model <id>` | provider default | Select a model for the active provider |
443443
| `--profile <name>` | — | Settings profile |

‎src/permission/store.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,9 @@ export async function loadPermissionsFile(path: string): Promise<Approval[]> {
341341
throw new Error(`--permissions file must be a JSON object: ${path}`);
342342
}
343343
const approvals = (parsed as Record<string, unknown>).approvals;
344-
// Startup, seed, and every /permissions reseed funnel through here, so one
345-
// log line names the active grant source for the whole process lifetime.
344+
// loadConfig, seed, and /permissions list and reseed each call this loader
345+
// on their own, so every load logs. A single process-lifetime line would
346+
// hide a later read.
346347
const canonicalPath = await canonicalGrantFilePath(path);
347348
const list =
348349
approvals === undefined ? [] : parseApprovalList(approvals, path);

0 commit comments

Comments
 (0)