Yesterday, the prototyper started showing me proposing to start a new app in between development of an existing app, which i have been working on for over a week now. The prototyper for any prompt suggests starting a new app. i went through various threads on this issue, but they were till last month. Does this issue have any resolution. I want to continue developing with prototyper. Any help would be great. thanks.
Have you tried this?
thanks for your reply. i did read this thread, its on my mind to try this, if nothing works this is the best bet. probably a wiped out context and rebuilding context might actually work for the best. I will go for it then. I am hoping for a more robust and manageable system coming up in near future to tackle this.
This fix will work. It is inconvenient, but you can write a script to automate it.
Save this file first in your scripts/ folder.
prototyper-context-state.template
{
“currentProposalObject”: {
“appName”: “YourAppName”,
“coreFeatures”: [
{
“name”: “Existing Project Core”,
“description”: “Details to be determined by codebase scan.”,
“categories”: [“ui”]
}
],
“uiStyleGuidelines”: [
{
“category”: “layout”,
“description”: “Awaiting codebase scan for details.”
}
]
},
“agentHistories”: {
“app-prototyping-agent:proposal-agent”: ,
“app-prototyping-agent:edit-app-agent”: [
{
“role”: “model”,
“content”: [
{
“text”: “I’m ready to work on your project. Please let me know what you’d like to do.”
}
]
}
]
},
“currentState”: “edit-app”
}
Save this in your scripts folder.
Run chmod +x scripts/context-reset.sh
scripts/./context-reset.sh
context-reset.sh
#!/bin/bash
echo “
Creating backup…”
timestamp=$(date +%Y%m%d%H%M%S)
mkdir -p “/home/user/studio/context_backup/”
cp “/home/user/.idx/ai/prototyper-context-state.json” “/home/user/studio/context_backup/prototyper-context-state-$timestamp.json”
cp “/home/user/.idx/ai/prototyper-thread.json” “/home/user/studio/context_backup/prototyper-thread-$timestamp.json”
mv “/home/user/.idx/ai/threads/” “/home/user/studio/context_backup/threads/”
echo “
Backup complete.”
echo “
Creating zip for download…”
zip -r context-$timestamp.zip “/home/user/studio/context_backup”
echo “
Cleaning prototyper-context-state.json…”
cp “/home/user/studio/scripts/prototyper-context-state.template” “/home/user/.idx/ai/prototyper-context-state.json”
ls -la /home/user/.idx/ai/prototyper-context-state.json
echo “
Cleaned and replaced prototyper-context-state.json”
thanks i will try this asap. will post back updates.