-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix checkpoints not appearing in chat when metadata is invalid #5900
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Modified CheckpointSaved component to show fallback display when checkpoint metadata is missing or invalid - Added console warnings to help debug checkpoint metadata issues - Prevents checkpoints from being completely hidden due to schema validation failures - Fixes issue #5899 where users reported not seeing checkpoints despite having them enabled The component now: - Shows a fallback checkpoint display with default metadata when validation fails - Logs warnings to console for debugging purposes - Displays "metadata unavailable" indicator when using fallback data - Ensures CheckpointMenu still functions with fallback metadata
</span> | ||
{isCurrent && <span className="text-muted text-sm">{t("chat:checkpoint.current")}</span>} | ||
{!metadata && ( | ||
<span className="text-muted text-xs italic"> | ||
{t("chat:checkpoint.metadataUnavailable", "metadata unavailable")} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid providing an inline English fallback string in the translation call. Remove the second argument from t('chat:checkpoint.metadataUnavailable') and manage defaults via the translation JSON files.
{t("chat:checkpoint.metadataUnavailable", "metadata unavailable")} | |
{t("chat:checkpoint.metadataUnavailable")} |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
@roomote-agent use the switch_mode tool to switch to pr-fixer mode and address the comment left by ellipsis-bot on this PR, do not create a new PR |
👋 I've received your request and switched to pr-fixer mode. I can see the ellipsis-bot comment about removing the inline English fallback string from the translation call. I'll address this issue now. |
Fixes #5899
Problem
Users reported that checkpoints are not appearing in the chat despite having checkpoints enabled in settings. Investigation revealed that the
CheckpointSaved
component was returningnull
when checkpoint metadata failed schema validation, causing checkpoints to be completely hidden from the UI.Root Cause
The
CheckpointSaved
component was too strict in its validation - if the checkpoint metadata did not exactly match the expected schema, the entire checkpoint display would be hidden by returningnull
.Solution
Modified the
CheckpointSaved
component to:null
for invalid metadata, show a fallback displayChanges
webview-ui/src/components/chat/checkpoints/CheckpointSaved.tsx
:null
Testing
The fix ensures that:
This change prioritizes user experience by ensuring checkpoints are always visible, while providing debugging tools for developers to identify and fix underlying metadata issues.
Important
Fix
CheckpointSaved
to always display checkpoints with fallback data and log warnings for invalid metadata.CheckpointSaved
component now always displays checkpoints, even with invalid metadata, using fallback data.CheckpointSaved.tsx
to use fallback metadata when validation fails.CheckpointSaved.tsx
.This description was created by
for 1342a1e. You can customize this summary. It will automatically update as commits are pushed.