Field Requirements and Error Guide
Send the minimum required fields first, then read the first-stage errors directly from the local response file.
The minimum first working request should include the target file path and the current source code. When the request fails, inspect last_response.json first and fix the missing field before retrying.
{
"task": "Generate a local implementation suggestion",
"target_file": "app/example.py",
"goal": "Show a real API response in local preview",
"source_code": "print('hello world')"
}
Minimum required fields
target_file and source_code should be present in the first working local request.Most common first error
If the API returns
missing_source_code, add source_code to the payload and run the local bridge again.When the page still shows old data
The latest request usually failed before
last_response.json was replaced. Rerun the local bridge, inspect the file directly, and refresh the browser with Ctrl + F5.