fix(openclaw): correct misleading consolidation guidance, narrow field type, enforce ID length limit - #52
Merged
KHAEntertainment merged 2 commits intoMar 23, 2026
Conversation
5 tasks
…ype narrowing, ID length enforcement, doc code block language specifiers Co-authored-by: KHAEntertainment <43256680+KHAEntertainment@users.noreply.github.com> Agent-Logs-Url: https://github.com/KHAEntertainment/clawvault/sessions/f266caee-ba37-485d-a8a9-765045dabc0e
Copilot
AI
changed the title
[WIP] [WIP] Address feedback on auto-migration implementation in OpenClaw PR
fix(openclaw): correct misleading consolidation guidance, narrow field type, enforce ID length limit
Mar 23, 2026
KHAEntertainment
marked this pull request as ready for review
March 23, 2026 03:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
discoverAuthStorePaths()only scans per-agentagents/*/agent/auth-profiles.json— never the main store — soagentsWithNoUniqueProfilesmeans "all profiles duplicated within scanned agents", not "available from main". Cleanup output was incorrectly advising users to delete local auth files and inherit from main without verifying main has those secrets.src/cli/commands/openclaw-cleanup.ts--apply,--audit, and--consolidateoutput with accurate descriptions (e.g. "These agents only have profiles that are duplicated across other scanned agents", "Review if these agents still need their own auth-profiles.json")src/openclaw/plan.tsMigratableSecret.field: narrowed fromstring→'key' | 'token'; existing constructions inmigrate.tsalready use the literal values so no call-site changes neededbuildExecProviderId: added truncation to guarantee the returned ID never exceeds 256 chars. Available budget = 256 −"providers/".length(10) − 1 (separator) = 245; split as⌈245/2⌉= 123 for provider,⌊245/2⌋= 122 for field:docs/MIGRATION.mdtextlanguage specifier to two unlabelled fenced code blocks (example CLI output ~line 65, ID mapping ~line 232)📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.