Yes, fortune cookies have deep roots in Japanese culture and history, though they are not traditionally part of modern Chinese cuisine.
The Japanese Origins
Tsujiura Senbei: The concept originates from 19th-century (and earlier Edo-period) Japan, specifically around Kyoto and Osaka. Bakeries made a fortune cracker called tsujiura senbei.
How they differed: These traditional Japanese crackers were larger, darker in color, and flavored with sesame and miso rather than the sweet vanilla, butter, and sugar used today. Instead of having a hollow inside with a slip of paper dropped in, the fortune was typically pinched into the fold or tucked into the cracker itself.
Shrine traditions: They were connected to traditional Japanese fortune-telling practices (tsujiura, or "divination at a crossroads") and sold near shrines. [1, 2]
How They Became Associated With Chinese Restaurants
Bringing them to America: Japanese immigrants brought the recipe to California and Hawaii in the late 19th and early 20th centuries, with spots like the Japanese Tea Garden in San Francisco popularizing them
Sticking chopsticks vertically into a bowl of rice is a major cultural taboo in Japan.
Meaning
Names: It is known as tatebashi (standing chopsticks) or tsukitate-bashi (thrust-in chopsticks).
Funeral Association: This action mimics the bowl of rice with two vertical chopsticks or incense sticks that is placed as an offering to the deceased at a Buddhist funeral or home ancestral altar (toshi or makurameshi).
Superstition: Doing this at a normal dining table is viewed as a bad omen, a bringer of bad luck, and deeply disrespectful or jarring to anyone present.
What to Do Instead
Chopstick Rest: Always rest your chopsticks horizontally across a designated holder called a hashioki.
Alternate Placement: If a rest is not provided, lay the tips neatly across the edge of your individual plate or bowl rather than leaving them upright.