The second possibility: I am pessimistic, have no information or express dissatisfaction with something, and I am not sure whether I can achieve what I imagined, so I really mean "I hope" or "I hope"
The third possibility: optimism means that you are in a good mood and things are developing towards your wishes, which means that you see hope.
Not all or none.
Writing down such vague meaning may give others a vague impression.