khoj-ai / khoj

Your AI second brain. Self-hostable. Get answers from the web or your docs. Build custom agents, schedule automations, do deep research. Turn any online or local LLM into your personal, autonomous AI (e.g gpt, claude, gemini, llama, qwen, mistral).
https://khoj.dev
GNU Affero General Public License v3.0
14.21k stars 705 forks source link

Emacs: continuously polling for the server #567

Closed agzam closed 11 months ago

agzam commented 11 months ago

Is it possible to implement a configurable max amount of attempts counter after which khoj.el stops polling for the server? When the server is not available, it still keeps trying, polluting the *Messages* buffer with errors such as:

error in process filter: url-http-activate-callback: Wrong type argument: integer-or-marker-p, " "
error in process filter: Wrong type argument: integer-or-marker-p, " "
error in process filter: url-http-activate-callback: Wrong type argument: integer-or-marker-p, " "
error in process filter: Wrong type argument: integer-or-marker-p, " "
error in process filter: url-http-activate-callback: Wrong type argument: integer-or-marker-p, " "
error in process filter: Wrong type argument: integer-or-marker-p, " "

The message also keeps popping up in the echo area, and that's quite distracting.

debanjum commented 11 months ago

Hey @agzam, thanks for creating an issue for this!

Hope that resolves your concerns? Otherwise feel free to re-open this issue