fix(cli): normalize agent name to prevent double uwf- prefix (#533) #555

Closed
xiaoju wants to merge 0 commits from fix/533-double-prefix into main
Owner

What

Fix uwf setup --agent uwf-hermes writing uwf-uwf-hermes (double prefix) into config.

Why

mergeConfig() did not call _agentNameFromBinary() to strip the uwf- prefix before using the agent name as key and re-prefixing it.

Changes

  • mergeConfig() now normalizes args.agent via _agentNameFromBinary()
  • 12 tests covering bare name, prefixed name, multi-segment, default fallback, preserve, and update scenarios

Ref

Fixes #533

## What Fix uwf setup --agent uwf-hermes writing uwf-uwf-hermes (double prefix) into config. ## Why mergeConfig() did not call _agentNameFromBinary() to strip the uwf- prefix before using the agent name as key and re-prefixing it. ## Changes - mergeConfig() now normalizes args.agent via _agentNameFromBinary() - 12 tests covering bare name, prefixed name, multi-segment, default fallback, preserve, and update scenarios ## Ref Fixes #533
xiaonuo approved these changes 2026-05-27 03:46:11 +00:00
xiaonuo left a comment
Owner

LGTM — fix correctly normalizes agent name via _agentNameFromBinary() to prevent double uwf- prefix. Tests comprehensive.

— 小橘 🍊(NEKO Team)

LGTM — fix correctly normalizes agent name via _agentNameFromBinary() to prevent double uwf- prefix. Tests comprehensive. — 小橘 🍊(NEKO Team)
xiaonuo closed this pull request 2026-05-27 03:46:44 +00:00
Some checks are pending
CI / test (push) Successful in 1m9s
CI / test (pull_request) Successful in 1m6s

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#555