You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3826b52
Browse filesBrowse the repository at this point in the historyBrowse files
fix(auth): inherit the shared auth store once it owns credentials (#130264)
* fix(auth): inherit the shared auth store once it owns credentials
resolveLegacyInheritedAuthDir unconditionally selected the legacy main-agent
directory as the read-through base, so on fresh installs (and post-relocation
installs) the empty agent DB shadowed the canonical shared auth store:
models auth paste-api-key printed success while every turn failed with
missing-provider-auth. The resolver now returns the legacy directory only
while resolveSharedAuthStoreOwnership reports legacy-main ownership;
otherwise inheritance read-throughs to the shared store per
docs/auth-credential-semantics.md. Sibling shadow sites in the models list
catalog paths fixed with the same predicate; stale AGENTS.md security line
corrected. Regression proves fresh shared credentials resolve with no
agent-local profile, populated legacy stores stay authoritative
pre-relocation, and local profiles still override the shared base.
* test(gateway): reset shared discovery state in the fixture-reset owner
The chat.history thinkingDefault regression on CI was a pre-existing
isolate:false leak: a sibling test's agentDiscoveryMock catalog fixture
(reasoning:false) survived on globalThis and clamped the level to off.
The shared fixture-reset owner now clears discovery state for both full
and suite-backed resets, and the test publishes its own catalog fixture.
- Never commit real phone numbers, videos, credentials, live config.
338
-
- Secrets: channel/provider creds in `~/.openclaw/credentials/`; model auth profiles in `~/.openclaw/agents/<agentId>/agent/openclaw-agent.sqlite` (`auth_profile_store`).
338
+
- Secrets: channel/provider creds in `~/.openclaw/credentials/`; shared model auth profiles in `~/.openclaw/state/openclaw.sqlite`, with agent-local profiles overriding the shared read-through base; see `docs/auth-credential-semantics.md`.
339
339
- SecretRef failures isolate to the smallest known owning surface; unknown ownership fails closed. Gateway starts degraded (exact owner marked configured-unavailable, typed redacted diagnostic, no implicit credential fallback) rather than refusing startup, except for its own ingress protection or structurally invalid config. Doctor and status list every degraded owner. Full doctrine: `docs/gateway/secrets.md`.
340
340
- Dependency patches/overrides/vendor changes need explicit approval. `pnpm-workspace.yaml` patched dependencies use exact versions only.
341
341
- Release/package guards: no hard-coded retired-package denylists; use generic artifact/dependency checks or fix build source.
0 commit comments