UI synchronization and stale data issue

Description

When editing an existing Config Profile and changing the port(s) of one or more Xray inbounds, the updated configuration is applied successfully across the system. However, some UI components continue to display the previous inbound port values.

Steps to Reproduce

  1. Navigate to Config Profiles.

  2. Create a new Xray configuration containing one or more inbounds (for example, ports 8081 and 8082).

  3. Save the configuration.

  4. Go to Users → Internal Squads and create or edit a squad.

    • Verify that the available inbounds are listed with ports 8081 and 8082.
  5. Go to Nodes → Nodes, edit an existing node, and open the Core Configuration section.

    • Verify that the same inbound ports are displayed.
  6. Return to Config Profiles and edit the JSON configuration.

  7. Change the inbound ports from 8081/8082 to 8088/8089.

  8. Save and apply the changes.

Expected Behavior

All parts of the panel that reference Config Profile inbounds should immediately reflect the updated ports (8088 and 8089).

This includes:

  • Users → Internal Squads (Inbound selection list)

  • Nodes → Edit Node → Core Configuration (Inbound list)

Actual Behavior

The configuration itself is updated correctly and the node continues to function normally using the new ports. However, the UI still displays the previous inbound ports (8081 and 8082) in:

  • Users → Internal Squads (Edit sidebar)

  • Nodes → Edit Node → Core Configuration

As a result, the displayed inbound information becomes inconsistent with the actual Config Profile.

Additional Notes

  • This appears to be a UI synchronization or stale data issue rather than a backend configuration problem.

  • The underlying Xray configuration is updated successfully, and no runtime issues occur.

  • Refreshing the page and reopening these sections does not update the displayed port values (if applicable). The old values remain visible until the related entities are recreated.