Skip to content

fix(bot): preserve agent profile on worker create#37

Merged
RussellLuo merged 1 commit into
OpenCSGs:mainfrom
jialudev:fix/bot-agent-profile-create
May 8, 2026
Merged

fix(bot): preserve agent profile on worker create#37
RussellLuo merged 1 commit into
OpenCSGs:mainfrom
jialudev:fix/bot-agent-profile-create

Conversation

@jialudev
Copy link
Copy Markdown
Collaborator

@jialudev jialudev commented May 8, 2026

Summary

  • Preserve image and agent_profile fields when workers are created through the bot API.
  • Forward the full bot create profile into agent.CreateWorker instead of only passing the legacy model_id.
  • Add bot service and API coverage proving /api/v1/bots creation keeps csghub_lite provider/model values in the created Agent.

Test

make sync-agent-runtimes
env GOCACHE=/Users/jared/opencsg-workspace/csgclaw-workspace/csgclaw-agent-profile-fix/.gocache go test ./internal/bot ./internal/api

Fixes #36

@RussellLuo RussellLuo merged commit cf0d008 into OpenCSGs:main May 8, 2026
wanghaojie124 pushed a commit to wanghaojie124/csgclaw that referenced this pull request May 9, 2026
@jialudev jialudev deleted the fix/bot-agent-profile-create branch May 14, 2026 03:05
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.

Agent provider/model selection is lost when creating workers through bot API

2 participants