From: Anderson A. Giacomolli Date: Fri, 6 Nov 2026 17:12:51 +0000 (-0300) Subject: Read the data directory and the configuration X-Git-Url: https://git.giacomolli.uk/onechat/commitdiff_plain/8e8da466ded3b39188862e4b46f40220d65f316e?hp=8e8da466ded3b39188862e4b46f40220d65f316e Read the data directory and the configuration OneChat finds its data directory in ONECHAT_DIR, then in an absolute XDG_DATA_HOME, then in ~/.local/share/onechat, and creates it with mode 0700. config.json in that directory selects the model endpoint and the compactor model and effort. A missing file or field takes the default, and an unknown field or an invalid value is an error, so a typo never becomes a silent default. The endpoint is a name, chatgpt or api, not a URL, so the configuration cannot send a token to another host. Issue: b14d537 ---