a2ui-project / a2ui-project/a2ui

Agent is biased towards updating existing UIs rather than generating new UIs

Abierto
#1,858 0 comentarios 0 reacciones 0 asignados Ver en GitHub
component: genui P2
Lenguaje dominante
TypeScript
Estrellas
16.4k
Forks
1.3k
Merge medio
2 d 13 h
PR fusionados (30 d)
134

Descripción

_↴ Ported from [flutter/genui#715](https://github.com/flutter/genui/issues/715) — originally opened by [jacobsimionato](https://github.com/jacobsimionato) on 2026-02-13._
_Original labels: P1_

---

**Describe the bug**
The agent is updating existing surfaces in cases where it should create new surfaces in some instances. This makes the conversation flow feel weird and the layout look wrong, because sometimes a message ends with a colon, e.g. "Here are some ideas: ", but then the ideas don't follow.

**To Reproduce**
Steps to reproduce the behavior:
0. Run the travel app locally
1. Type "Where should I go next"
2. Agent shows some ideas in a travel carousel
3. Click on an idea like "Cultural excursion"

Expected: Agent adds new travel carousel with a range of cultural excursion destinations

Actual: Agent updates the existing carousel above with a range of excursion destinations

Image

---

### 2 comment(s) from the original issue

**[gspencergoog](https://github.com/gspencergoog)** commented on 2026-02-25:

This is true for the `travel_app` example, but for the other chat examples, the prompt includes a statement to not delete previous surfaces, and to create new ones, so it doesn't seem to favor updating existing UIs in that case. Is this bias just the result of prompt engineering?

---

**[brianegan](https://github.com/brianegan)** commented on 2026-03-18:

My two cents: Working on the demo for Google Cloud Next using A2UI 0.9.0, we ran into the same thing. However, we wanted a specific flow from the LLM, updated the prompt, and it now flows much more the way we intend it do with fewer updates. IMO, this is a prompting issues, but could be a good candidate for documentation.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.