Fix a configuration error
Resolve a warning pi shows at session start about mistral-native.json. You need this when a config file is malformed or fails validation.
Prerequisites
Section titled “Prerequisites”- The warning message (it names the exact file and key)
-
Read the warning — it names the file path, the key and the valid options:
failed to parse ~/.pi/agent/mistral-native.json: Expected double-quoted property name in JSON at position 16 -
Open the named file and fix the named problem:
failed to parse …— the file is not valid JSON. Remove comments (JSON has none), fix quotes and commas. Copyable examples on this site are strict JSON for exactly this reason.unknown field …— a typo in a key name; the message lists the known fields.must be one of: …— an invalid value; the message lists the allowed ones.must not be null—nullis not “unset”; omit the key instead.
-
Verify the fix:
/mistralThe warning is gone and the values show their provenance.
See Configuration error messages · Configuration keys · Config file locations and precedence