Skip to content

fix: system prompt and identity handling, and config form hydration#1045

Open
dongtran16092006 wants to merge 1 commit intoRightNow-AI:mainfrom
dongtran16092006:fix-mcp-system-prompt
Open

fix: system prompt and identity handling, and config form hydration#1045
dongtran16092006 wants to merge 1 commit intoRightNow-AI:mainfrom
dongtran16092006:fix-mcp-system-prompt

Conversation

@dongtran16092006
Copy link
Copy Markdown

Summary

Fix issues where system_prompt and identity fields were not properly returned from the agent detail API or correctly populated in the UI when editing an agent.

Changes

  • Expose system_prompt and full identity fields in the agent detail API response (routes.rs)
  • Ensure agent detail modal fetches the full agent payload before rendering
  • Hydrate the config form using the full agent detail (including system_prompt and identity metadata)
  • Add helper (buildConfigForm) to consistently populate form fields from agent data

Result

  • system_prompt is now correctly loaded and editable in the UI
  • Identity fields (emoji, color, archetype, vibe, etc.) are properly populated
  • Editing an agent no longer shows incomplete or stale data

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.

1 participant