Skip to content

Normalize repository profile lookup#27

Merged
steipete merged 2 commits intoopenclaw:mainfrom
xthunder0:codex/profile-lookup-normalization-fork
May 2, 2026
Merged

Normalize repository profile lookup#27
steipete merged 2 commits intoopenclaw:mainfrom
xthunder0:codex/profile-lookup-normalization-fork

Conversation

@xthunder0
Copy link
Copy Markdown
Contributor

Summary

  • Normalize each configured targetRepo during repositoryProfileFor() lookup so mixed-case profile entries match normalized input.
  • Add regression coverage for mixed-case caller input and mixed-case configured profile entries.

Context

This routes the downstream stop-gap from cloverthe-ai/clover-sweeper#16 upstream for cloverthe-ai/clover-sweeper#15. The latent bug is that lookup normalized only the caller input, then compared it against raw candidate.targetRepo, so a mixed-case profile entry could fail to match itself and produce an unsupported-repo error that listed the same repo as known.

Once this lands upstream, the downstream patch can be retired on the next clover-sweeper re-vendor cycle.

Verification

  • pnpm run build && node --test test/repository-profiles.test.ts
  • pnpm run check

Note: both checks ran on this machine with Node v22.22.1, which emits the repo's existing >=24 engine warning. No live sweep/apply/close commands were run.

cloverthe-ai and others added 2 commits May 2, 2026 11:02
Co-Authored-By: Teddy CML <xthunder0@users.noreply.github.com>
Co-authored-by: Teddy CML <xthunder0@users.noreply.github.com>
@steipete steipete force-pushed the codex/profile-lookup-normalization-fork branch from 3a6fd71 to 01c6097 Compare May 2, 2026 10:03
@steipete steipete merged commit 62e607c into openclaw:main May 2, 2026
4 checks passed
@steipete
Copy link
Copy Markdown
Contributor

steipete commented May 2, 2026

Landed via temp rebase onto main.

Thanks @xthunder0!

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.

3 participants