Skip to content

feat(demo): add Reset CTA to clear persisted chat - #24

Merged
mayeedwin merged 1 commit into
mainfrom
feat/demo-reset-thread
Jul 29, 2026
Merged

feat(demo): add Reset CTA to clear persisted chat#24
mayeedwin merged 1 commit into
mainfrom
feat/demo-reset-thread

Conversation

@mayeedwin

Copy link
Copy Markdown
Owner

The demo persists its thread (parsed blocks + CTA status patches) to localStorage, so after completing tasks a visitor had no way back to a fresh state.

Adds a Reset control in the topbar — shown only when a thread exists — that drops the storage key and restores the welcome message, so the stateful-action demo can be replayed from scratch.

Verified

  • Reset appears once a reply exists, hides again at welcome-only
  • Clears the thread (no user turns / tables) and leaves localStorage holding just the welcome message, so reopening is fresh
  • Demo builds/typechecks clean

🤖 Generated with Claude Code

The demo persists its thread (including CTA statuses) to localStorage, so once a
visitor completes tasks there was no way to get back to a fresh state. Add a
"Reset" control in the topbar (shown only when a thread exists) that drops the
storage key and restores the welcome message, so the stateful-action demo can be
replayed from scratch.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@mayeedwin
mayeedwin merged commit a4e014f into main Jul 29, 2026
1 check passed
@mayeedwin
mayeedwin deleted the feat/demo-reset-thread branch July 29, 2026 13:30
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