Skip to content

fix(pixel): teach preview runtime constraints before writes - #6587

Merged
Lightheartdevs merged 1 commit into
mainfrom
fix/pixel-preview-runtime-guidance
Sep 24, 2026
Merged

Lightheartdevs merged 1 commit into
mainfrom
fix/pixel-preview-runtime-guidance

Conversation

@Lightheartdevs

Copy link
Copy Markdown
Collaborator

Pixel generated date editors using prompt(), which the Dashboard preview sandbox blocks. The pre-write contracts explained opaque-origin storage but omitted modal-dialog and external-resource restrictions.

Share the actual preview runtime boundary across full, lean and small-context prompts, workspace/verification guides, and the publication tool description. Direct generated apps to use inline DOM controls, including date inputs, and bundled relative assets. The iframe sandbox, CSP and historical prompt core remain unchanged. The workspace guide cap increases from 2,600 to 2,800 characters to accommodate the explicit runtime boundary; the compact prompt stays below 3,800.

Validation: 56 focused tests passed (prompt_contract.test.mjs, agent-skills.test.mjs, workspace_preview.test.mjs); git diff --check passed. Route tests verify the guidance arrives before tool discovery on sandbox and native gateway execution. This is guidance delivery evidence, not fresh fleet/model behavior acceptance; that remains in the qualification loop.

@Lightheartdevs
Lightheartdevs merged commit ff26ddc into main Sep 24, 2026
51 checks passed
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