janhq / jan

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer. Multiple engine support (llama.cpp, TensorRT-LLM)
https://jan.ai/
GNU Affero General Public License v3.0
22.1k stars 1.27k forks source link

bug: Default instruction from ~/jan/assistants/jan/assistant.json no longer work on linux #3515

Open eregnier opened 2 weeks ago

eregnier commented 2 weeks ago

Current behavior

default instructions are no longer read from the configuration file when launching a new thread on linux. I tried to remove the ~/jan file, remove my .AppImage file and install it from deb source (with today latest version) then fill again the "instructions" field in ~/jan/assistant/jan/assistant.json . Nothing work. I have to copy / paste my instructions from one thread to another instead of just spawning a new thread and go with my "all purpose for my needs" dev instructions.

Thank you for this tool, it is awesome.

By the way, this default assistant behavior is poorly documented (or I my searched does not match this feature documentation easily) , I had to search in github issues to find a way to do this basic (at least for me) thing.

Minimum reproduction step

do a fresh install under ubuntu by removing the ~/jan folder fill "instructions" field in the assistant.json file run jan -> no default instructions are displayed anymore

image

Expected behavior

instruction field is filled with the value I wrote in assistant.json file

Screenshots / Logs

image image

Jan version

0.5.3

In which operating systems have you tested?

Environment details

Ubuntu 24.04.1 LTS Intel I7 CPU gen 13 32Go Memory

Van-QA commented 2 weeks ago

The issue is reproducible, modifying Jan's Instructions does not save to the assistant.json, and vice vesa, value from assistant.json does not display to instruction. Need to confirm whether this is the expected behavior. ⚠️ Current behaviors: the instructions only saved into threads.json image