A cliffhanger is a literary device that ends a chapter or scene abruptly, often at a moment of high suspense or excitement, leaving the reader eager to find out what happens next. The thief's identity being withheld right before the chapter's end creates a strong sense of anticipation and compels the reader to continue reading to see the resolution.