fix(dashboard): retrying an older chat answer reruns the latest one

Open
#461 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
72/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
dart, flutter
Domain
frontend

Research direction

Start in registry_source/lib/src/dashboard/dashboard_demo_chat.dart and read _retry(), which restarts with the current _prompt and _scenario and keepMessage: true, then find where the Retry action is wired to each answer. Reproduce by sending two messages, letting both finish, and retrying the first reply. Done when retrying an older answer regenerates that reply and the latest answer is left unchanged. The issue also points to a generated copy under packages/fortal_site, so check whether it needs the same change.

Written by the indexing model from the issue text.

Description

In the dashboard demo's Agent chat (all presets; source registry_source/lib/src/dashboard/dashboard_demo_chat.dart), every answer, including earlier ones, offers Retry answer. Its callback is _retry(), which restarts with the current _prompt and _scenario and keepMessage: true.

Steps: send two messages and let both answers finish, then click Retry answer on the first reply.

Expected: the first reply is regenerated.

Actual: the latest answer is rerun and replaced; the selected reply does not change.

Fix options: bind each retry to its own turn (prompt and scenario), or show the retry action only on the latest answer.

Found by Codex review on btwld/mix-website#6, where the Fortal site embeds this dashboard (generated copy at packages/fortal_site/lib/ui/recipes/dashboard/dashboard_demo_chat.dart).

Dominant language
Dart
Stars
24
Forks
5
Avg merge
15h 29m
Merged PRs (30d)
144

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from btwld/remix

All issues in btwld/remix

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.