IBM / clai

Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
https://clai-home.mybluemix.net/
MIT License
475 stars 73 forks source link

Improve clai's performance when disconnected form the internet. #57

Open andrewcmhicks opened 4 years ago

andrewcmhicks commented 4 years ago

Feature description When using clai with suboptimal or no internet, clai could auto-detect via ping 8.8.8.8 that the connectivity state is poor or dead, and not try to connect to the clai server and hang the terminal for 3 seconds. Instead, clai could log commands issued during the outage and send them over once connectivity is re-established.

Acceptance criteria

  1. When internet access is disconnected, clai does not try to connect to the remote server.