Skip to content

Strip all leading system-reminder wrappers in conversation view#39

Open
FantWu2024 wants to merge 1 commit into
mainfrom
fix/dashboard-strip-all-system-reminders
Open

Strip all leading system-reminder wrappers in conversation view#39
FantWu2024 wants to merge 1 commit into
mainfrom
fix/dashboard-strip-all-system-reminders

Conversation

@FantWu2024

Copy link
Copy Markdown
Collaborator

Summary

  • Fix dashboard conversation view leaking later <system-reminder> blocks into the user-visible body when a message contains multiple consecutive wrappers.
  • The wrapper-extraction regex used a lazy *? and only stripped the first reminder; remaining ones rendered as plain text below the ⚙ SHOW REMINDER toggle.
  • Loop the match in both MessageBubble.tsx and TerminalView.tsx until no leading wrapper remains, so the toggle controls all of them.

Test plan

  • Open a stored session whose user message has multiple stacked <system-reminder> blocks (e.g. session 1d6e3caa); verify only the toggle is visible and clicking it reveals every reminder.
  • Confirm a message with no wrapper still renders normally.
  • Confirm a message with a single wrapper still behaves as before.

🤖 Generated with Claude Code

When a user message contains multiple consecutive system-reminder
blocks, the lazy regex only consumed the first one, leaving later
wrappers in the visible body. Loop until no leading wrapper remains
so the SHOW REMINDER toggle hides all of them.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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