ProjectAlita / projectalita.github.io

Langing
GNU Affero General Public License v3.0
1 stars 1 forks source link

[BUG] Renamed ELITEA Agent is incorrectly displayed on the Agent View Wizard #481

Closed epamLDadayan closed 1 month ago

epamLDadayan commented 1 month ago

Steps to reproduce:

  1. Create an agent.
  2. Share the link to the agent with someone. (E.g., Some Weird Assistant).
  3. Rename the agent and save changes.
  4. If you open the previously shared link:
    1. The agent will open, because it is found by index 3 in the URL resource path.
    2. The General section contains the correct new name of the agent.

Expected Result:

The header contains the updated agent's name.

Actual Result:

But the header remains unchanged: Agents / Some Weird Assistant.

Image

Observations: The reason is that the page header apparently gets its value from the name input parameter of the GET request (supplied by the user), instead of the same source as the Title text box under the General section: alita_ui/agents/all/3?viewMode=owner&name=Some+Weird+Assistant If you remove the name from the GET params in the URL, the header will be rendered as even more confusing label:

Image

The issue may be relevant to other ELITEA entities that support renaming, but I didn't check.

HawkQing1 commented 1 month ago

@epamLDadayan I can not reproduce it. Could you please verify it on main?

epamLDadayan commented 1 month ago

Fixed, tested on MAIN env. Ready for next Release.