Cosmo dies. Tails is the one who has to fire the cannon that kills her, and he does it because there's no other choice.
The Japanese version adds a wrinkle, though. When Sonic returns to the Typhoon and hands Tails the seed, Tails says something close to "It's not true. A second ago this was Cosmo." So if you follow the original Japanese cut, she wasn't simply lost — she was transformed into that seed.