Does coughing mean you can't eat even the slightest bit of spicy food?
Generally speaking, whether one can eat spicy food when coughing depends on the specific situation—it is not entirely prohibited. The details are as follows:

In cases of wind-heat cough accompanied by a sore and swollen throat and yellow phlegm, consuming a small amount of fresh chili peppers may help promote blood circulation and facilitate the dispersion of internal heat. The vitamin C in chilies can also provide nutritional support and enhance immunity. However, mild chilies should be chosen to avoid excessive irritation to the throat mucosa, and it's important to ensure good gastrointestinal function so that spicy foods do not cause discomfort.
For wind-cold cough or individuals with sensitive throats, spicy foods should be avoided. This type of cough is typically characterized by clear nasal discharge and white phlegm. Spicy ingredients may irritate the respiratory tract, worsening the cough. If one already has pharyngitis or bronchitis, spicy foods can exacerbate mucosal congestion and swelling, hindering the resolution of inflammation. In such cases, the diet should be mild and清淡 (light).
During a cough, drink plenty of warm water to keep the throat moist and maintain appropriate indoor humidity. Include fresh fruits and vegetables in the diet to ensure balanced nutrition. Get adequate rest, avoid overexertion, and adjust dietary habits according to the type of cough to support recovery.