Files
codewhale/crates
Punkcan Yang 02c3579be1 feat(tui): ghost-text prompt suggestion after each turn
After each completed turn, a lightweight API call generates a short
follow-up question rendered as dimmed ghost text in the composer.
Tab accepts the suggestion; typing dismisses it.

- prompt_suggestion.rs: async suggestion generation via API
- app.rs: prompt_suggestion display field + suggestion_cell for
  cross-thread delivery (Arc<Mutex<Option<String>>> pattern)
- widgets/mod.rs: ghost text rendered with TEXT_HINT when
  input is empty and suggestion exists
- ui.rs: suggestion generation on TurnComplete, cleanup on
  TurnStarted, Tab acceptance in event loop

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-05 13:45:48 +08:00
..
2026-06-03 02:39:45 -07:00