Skip to content

Handle corrupt kata progress#3472

Open
amcasey wants to merge 4 commits into
mainfrom
amcasey/ProgressParse
Open

Handle corrupt kata progress#3472
amcasey wants to merge 4 commits into
mainfrom
amcasey/ProgressParse

Conversation

@amcasey

@amcasey amcasey commented Jul 15, 2026

Copy link
Copy Markdown
Member

From #3242

When qdk-learning.json is invalid, we need to do something about it before the user can actually use the katas. Enrich the error messages and give the agent instructions for how to handle errors. It now does a pretty good job of making simple repairs to the file.

@amcasey
amcasey requested review from billti and idavis as code owners July 15, 2026 17:09
Comment thread source/vscode/ai/qdk-learning.agent.md Outdated
### Error Handling

When you call `get-state`, you may receive an error indicating a problem loading the user's progress. When this occurs, you have two options:
1. **Preferred** Read the error message and the contents of `qdk-learning.json`. Together, they should indicate what's wrong. Explain to the user what's wrong and offer to fix the problem.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Telling it to read the file was the secret sauce. Before that, it would give up on interpreting the error and immediately try to delete the file.

@amcasey
amcasey force-pushed the amcasey/ProgressParse branch from 8e955a3 to 6c50487 Compare July 15, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant