Context
Context Panel has reset-primer settings/planning/state plumbing, but automatic primer execution is intentionally disabled for now.
During local testing, a Code CLI primer-equivalent command returned ok, but reported high reasoning and used thousands of tokens even when low/minimal effort overrides were supplied. Code also supports multiple auth accounts in auth_accounts.json, while the CLI does not currently expose a safe, documented way to run a primer against one specific account without mutating active auth state.
Goal
Implement reset priming only when it is safe, cheap, and account-selectable.
Acceptance criteria
- Provider-specific priming strategy is explicit; unsupported providers are shown as unsupported instead of silently executing placeholder commands.
- OpenAI/Code priming can target each account deterministically, or remains disabled.
- Primer command/API uses the cheapest viable model/mode and verifies that the requested model/reasoning settings are honored.
- Background priming never silently spends a high-reasoning/high-cost turn.
- Failures are recorded in
reset-primer-runs.json and surfaced in the app without blocking normal refresh.
- Sandbox/App Store constraints are validated from
/Applications/Context Panel.app, not a DerivedData build.
- Tests cover supported, unsupported, missing-command, failed-command, and multi-account cases.
Notes
Current behavior is safe-by-default: planner/settings/state exist, but execution skips providers until a proven implementation exists.
Context
Context Panel has reset-primer settings/planning/state plumbing, but automatic primer execution is intentionally disabled for now.
During local testing, a Code CLI primer-equivalent command returned
ok, but reported high reasoning and used thousands of tokens even when low/minimal effort overrides were supplied. Code also supports multiple auth accounts inauth_accounts.json, while the CLI does not currently expose a safe, documented way to run a primer against one specific account without mutating active auth state.Goal
Implement reset priming only when it is safe, cheap, and account-selectable.
Acceptance criteria
reset-primer-runs.jsonand surfaced in the app without blocking normal refresh./Applications/Context Panel.app, not a DerivedData build.Notes
Current behavior is safe-by-default: planner/settings/state exist, but execution skips providers until a proven implementation exists.