Skip to content

fix(import): consolidate per-agent auth profiles into global store (#439)#451

Merged
alexey-pelykh merged 1 commit intomainfrom
439-consolidate-auth-import
Mar 8, 2026
Merged

fix(import): consolidate per-agent auth profiles into global store (#439)#451
alexey-pelykh merged 1 commit intomainfrom
439-consolidate-auth-import

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

  • During OpenClaw import, per-agent auth-profiles.json files are now consolidated into a single global store at the target root instead of being copied into per-agent directories where they'd be silently unused after refactor(auth): relocate auth store from per-agent to global path #438's auth store relocation
  • Auth profile files are skipped during recursive directory copy to prevent stale per-agent copies
  • Conflict detection: warns when the same profile ID appears with different API keys across agent directories (first occurrence wins)

Test plan

  • Import with per-agent auth profiles → consolidated into single global auth-profiles.json
  • Import with auth profiles in multiple agent dirs → merged correctly
  • Profile ID conflict across agents → warning logged, first occurrence kept
  • Auth profiles NOT copied to per-agent directories
  • Existing import tests continue to pass (94 tests, all green)
  • Full test suite passes (8088 tests)

Closes #439

🤖 Generated with Claude Code

…ring OpenClaw import (#439)

After the auth store relocation (#438), imported auth-profiles.json files
were copied into per-agent directories where they would never be found.
This change:

- Adds discoverSourceAuthProfiles() to collect full credential data
- Skips auth-profiles.json during recursive directory copy
- Consolidates all discovered profiles into a single global store at
  the target root (auth-profiles.json)
- Warns when the same profile ID appears with different keys across
  agent directories (first occurrence wins)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh enabled auto-merge (squash) March 8, 2026 11:46
@alexey-pelykh alexey-pelykh merged commit 6dd1513 into main Mar 8, 2026
5 checks passed
@alexey-pelykh alexey-pelykh deleted the 439-consolidate-auth-import branch March 8, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(import): consolidate per-agent auth profiles into global store during OpenClaw import

1 participant