Skip to content

[Request] Improve what happens if settings.json is invalid #4448

Description

@jerkstorecaller

What would you like to be added?

$ qwen --version
0.16.0

I forgot to put quotes around a key in ~/.qwen/settings.json, then launched Qwen Code.

  1. QC launches normally, without showing an error. It shows the first-time setup dialog with 'Connect a provider.'
  2. ~/.qwen/settings.json is silently renamed to settings.json.corrupted.1779494483790.

I feel this isn't very user-friendly because a user who's not paying attention won't notice all their settings disappeared, they might think it's just time to re-authenticate. In fact they have lost all their settings.

My advice is to show a message when qwen is launched: Your ~/.qwen/settings.json has errors. Launching with brand new configuration. Your old configuration file has been renamed to settings.json.corrupted.

Why is this needed?

User-friendliness

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions