mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-03 02:11:48 +00:00
fix(profiles): preserve skills on dashboard profile creation
This commit is contained in:
parent
ae11a31058
commit
469e4df3c2
5 changed files with 81 additions and 3 deletions
|
|
@ -2214,6 +2214,13 @@ async def create_profile_endpoint(body: ProfileCreate):
|
|||
clone_from="default" if body.clone_from_default else None,
|
||||
clone_config=body.clone_from_default,
|
||||
)
|
||||
# Match the CLI's profile-create flow: fresh named profiles get the
|
||||
# bundled skills installed. When cloning from default, create_profile()
|
||||
# has already copied the source profile's skills, including any
|
||||
# user-installed skills.
|
||||
if not body.clone_from_default:
|
||||
profiles_mod.seed_profile_skills(path, quiet=True)
|
||||
|
||||
# Match the CLI's profile-create flow: named profiles should get a
|
||||
# wrapper in ~/.local/bin when the alias is safe to create.
|
||||
collision = profiles_mod.check_alias_collision(body.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue