[feat] canvas: render model-generated interactive HTML with a controlled action bridge
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 18/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- css, html, javascript, typescript
Línea de trabajo
The request centers on a sandboxed iframe that renders model-generated HTML on the canvas node, plus a controlled postMessage-style bridge to the host; the payload names no specific files, so start by locating the existing HTML canvas node and the project asset storage in the TypeScript codebase. Done means a generated page renders in isolation, a submitted interaction is validated and saved to project state, and it persists after reopening. The protocol itself is still open for discussion, so confirm the design with maintainers before writing code.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
中文总结:支持文本模型生成通用交互式 HTML,在画布内隔离运行,并通过受控接口保存交互结果或填入对话草稿。
Request
Allow text models to generate interactive HTML/CSS/JS and render the result directly in an HTML canvas node, rather than opening it in an external browser.
This should support general interactions—forms, candidate selection, sliders, quizzes, interactive charts, and custom interfaces—not a fixed card layout.
Proposed scope
- Store generated HTML as a project asset and render it in a sandboxed iframe with configurable dimensions.
- Allow page-local JavaScript interactions. Block network access and direct access to the filesystem, CLI, and host APIs.
- Provide a controlled bridge for submitting structured interaction results to the host, for example:
await opendirector.request({
action: "submit",
payload: { selectedIds: ["candidate-b"], values: { durationSeconds: 15 } }
});
The host validates the source, allowed action, target scope, and payload, executes supported project operations, and returns success or failure. The API above is illustrative; the exact protocol is open for discussion.
Initial milestone
Generate an interactive HTML interface, use it on the canvas, and save its submitted results to project state or populate a visible assistant draft. Persist submitted state across reopening.
Candidate adoption and generation can be added later as explicitly authorized actions through existing business services.
- Lenguaje dominante
- TypeScript
- Estrellas
- 119
- Forks
- 16
- Merge medio
- 16 h 13 min
- PR fusionados (30 d)
- 195
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ThinkFlowLab/OpenDirector
-
area:provider
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ThinkFlowLab/OpenDirector#477 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:ci
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
ThinkFlowLab/OpenDirector#411 ·
Los mantenedores suelen responder en 1 día
-
[bug] agent: 长素材名在对话气泡中溢出,遮挡正文与素材栏Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea:agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
ThinkFlowLab/OpenDirector#348 ·
Los mantenedores suelen responder en 1 día
-
area:provider
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ThinkFlowLab/OpenDirector#311 ·
Los mantenedores suelen responder en 1 día
-
area:desktop area:install help wanted
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
ThinkFlowLab/OpenDirector#475 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ThinkFlowLab/OpenDirector
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
primer/primitives#1426 ·
-
Sign-in-only setup dialog describes API-key verificationPosiblemente ocupada @roboclaw-bot la tomó hoy. Abiertoclawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
openclaw/openclaw#204323 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
virtue-initiative/virtue-initiative#953 ·
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
fumicode/bublys-org#261 ·
Los mantenedores suelen responder en 12 días