Skip to content

Model sometimes returns no SCAD code, causing empty output #181

@bellotero69

Description

@bellotero69

Some prompts do not produce valid OpenSCAD / .scad code in the model response. When this happens, the application has no geometry to render, so the preview/output appears empty.

For example, prompts such as:

Create a mobile phone stand

sometimes result in a natural-language explanation, an incomplete response, or content that does not contain any valid SCAD code. This issue is not limited to this specific prompt; it happens with many other modeling requests as well.

Expected behavior

The model should always return valid SCAD code that can be rendered, even for simple or ambiguous prompts.

For example, the response should contain something like:

// OpenSCAD code here
module phone_stand() {
// geometry
}

phone_stand();
Actual behavior

For some prompts, the model does not produce SCAD code at all, or the response cannot be parsed as SCAD. As a result, nothing is rendered in the viewer.

Impact

This creates a poor user experience because the user sees an empty result without understanding whether:

the model failed,
the prompt was unclear,
the generated code was invalid,
or the rendering pipeline failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions