// src/messages/web.ts
// Copyright (C) 2026 Robert Colbert <rob.colbert@openplatform.us>
// Licensed under the Apache License, Version 2.0

import { IChatSession } from "../interfaces/chat-session.ts";

/*
 * sessionUpdated
 * Sent from gadget-code:web to gadget-code:ide when a chat session property
 * has changed (e.g. auto-generated name). The IDE should merge these updates
 * into its local state.
 */

export type SessionUpdatedMessage = (
  updates: Partial<IChatSession>,
) => void;
