mirror of
https://github.com/qwibitai/nanoclaw.git
synced 2026-07-03 18:45:07 +08:00
96f924f2ac
Add DEFAULT_AGENT_PROVIDER (.env-backed, default 'claude'): newly created agent groups are created on this provider; existing groups are never touched. Applied at a single chokepoint — ensureContainerConfig stamps a fresh config row with it (INSERT OR IGNORE, so existing rows stay frozen). Resolution is unchanged (session -> container_configs.provider -> 'claude'); per-group `ncl groups config update --provider` still overrides. - config: DEFAULT_AGENT_PROVIDER constant. - chokepoint: ensureContainerConfig defaults an absent provider to it, normalizing claude/casing to NULL/lowercase; every creation path (channel-approval, register, init scripts, ncl groups create afterCreate) inherits it without each having to remember. - subagents (create_agent) inherit the parent's effective provider, not the global, so a child never spawns on a runtime the parent can't reach. - setup persists the operator's pick to .env and pre-selects the current default in the picker so a re-run does not silently reset it. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>