You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RPC service must be capable of restarting when environment variables change, while maintaining a stable port. The frontend must be notified when the service is restarting and when it has restarted, so it can perform specific actions. With this change active, the user should no longer need to close their project after configuration changes to Navie are made.
Requirements
Environment Change Detection:
Monitor environment variables for changes (e.g., user switches backend (Copilot, OpenAI API key, hosted), changes Copilot model, or modifies environment in settings).
Trigger a restart of the RPC service when a change is detected.
Stable Port Maintenance:
Ensure the RPC service restarts using the last known port.
Frontend Notification:
Notify the frontend when the RPC service is restarting.
Notify the frontend when the RPC service has restarted.
Behavior
Monitoring Environment Variables:
Continuously monitor the environment for changes.
Use a debounce mechanism, if needed, to avoid multiple rapid restarts.
Restarting the RPC Service:
When a change is detected, initiate the restart process.
Notify the frontend that the service is restarting.
Stop the current RPC service instance.
Start a new instance of the RPC service using the last known port.
If the port is unavailable, log an error and attempt to bind to a new port.
Notify the frontend that the service has restarted.
Frontend Interaction:
When the service restart first initiates, notify the frontend. The frontend should respond by calling onNavieRestarting() on the Vue app. Example
When the service comes back up (indicated by it logging the port its listening on), the frontend is notified. The frontend should respond by calling loadNavieConfig() on the Vue app. Example
The text was updated successfully, but these errors were encountered:
Overview
The RPC service must be capable of restarting when environment variables change, while maintaining a stable port. The frontend must be notified when the service is restarting and when it has restarted, so it can perform specific actions. With this change active, the user should no longer need to close their project after configuration changes to Navie are made.
Requirements
Environment Change Detection:
Stable Port Maintenance:
Frontend Notification:
Behavior
Monitoring Environment Variables:
Restarting the RPC Service:
Frontend Interaction:
onNavieRestarting()
on the Vue app. ExampleloadNavieConfig()
on the Vue app. ExampleThe text was updated successfully, but these errors were encountered: