Skip to content

Conversation

@Kitenite
Copy link
Contributor

@Kitenite Kitenite commented Aug 12, 2025

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Release
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes


Important

Fix type checking for optional metadata in chat messages, ensuring safe access and initialization across components.

  • Type Checking:
    • Updated ChatMessageContent in message.ts to make metadata optional.
    • Added optional chaining for metadata access in user-message.tsx, conversation.ts, and index.ts.
    • Default empty array for snapshots and context when metadata is undefined in conversation.ts and index.ts.
  • Behavior:
    • Ensures metadata is initialized if undefined before modifying snapshots or context in conversation.ts and index.ts.

This description was created by Ellipsis for b3a5947. You can customize this summary. It will automatically update as commits are pushed.

@supabase
Copy link

supabase bot commented Aug 12, 2025

This pull request has been ignored for the connected project wowaemfasoptxrdjhilu because there are no changes detected in apps/backend/supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@vercel
Copy link

vercel bot commented Aug 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
docs 🔄 Building Preview Comment Aug 12, 2025 5:49pm
web 🔄 Building Preview Comment Aug 12, 2025 5:49pm

@Kitenite Kitenite merged commit 782fd74 into main Aug 12, 2025
3 of 5 checks passed
@Kitenite Kitenite deleted the feat/typecheck-snapshot branch August 12, 2025 17:49
Kitenite added a commit that referenced this pull request Aug 12, 2025
Kitenite added a commit that referenced this pull request Aug 12, 2025
* Revert "fix: typecheck snapshot (#2655)"

This reverts commit 782fd74.

* properly deprecate snapshot

* revert mastra for image viewing

* refactor helpers
zongkelong pushed a commit to zongkelong/ulook that referenced this pull request Aug 15, 2025
* 'main' of https://github.com/onlook-dev/onlook: (41 commits)
  feat: fix delete project (onlook-dev#2683)
  feat: reduce search latency (onlook-dev#2682)
  feat: revamp projects ux (onlook-dev#2672)
  Upload fix (onlook-dev#2677)
  feat: using firecrawl to screenshot (onlook-dev#2665)
  fix: file upload build error (onlook-dev#2674)
  feat: new project frames (onlook-dev#2673)
  feat: self hosting docs (onlook-dev#2671)
  fix: docs layout + troubleshoot section (onlook-dev#2670)
  fix(template): suppress hydration mismatch
  Feat/editor improvements (onlook-dev#2601)
  fix: make message content selectable (onlook-dev#2664)
  bugs: transient stream error (onlook-dev#2663)
  feat: update migration files (onlook-dev#2659)
  Start from Blank + Import buttons on the home page (onlook-dev#2653)
  fix: snapshot type conflict and mastra can't view image (onlook-dev#2656)
  fix: typecheck snapshot (onlook-dev#2655)
  feat: clean up mastra branch (onlook-dev#2654)
  feat: mastra no storage (onlook-dev#2650)
  feat: update ai packages (onlook-dev#2648)
  ...
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.

2 participants