agent: Small improvement of the server's local state.