Skip to content

Commit a117200

Browse files
dnywhcursoragent
andcommitted
improve chat error logging
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 84435b7 commit a117200

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/components/ChatWindow/chatWindowController.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ export async function ensureChatThread({
7979
}>
8080
> {
8181
if (!listing.id || !listing.owner_id) {
82+
console.error(
83+
"Unexpected chat operation error: missing listing identifiers",
84+
{
85+
hasListingId: Boolean(listing.id),
86+
hasListingOwnerId: Boolean(listing.owner_id),
87+
}
88+
);
8289
return {
8390
success: false,
8491
error: chatErrorCodes.unexpected,

0 commit comments

Comments
 (0)