mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
Add ui.prompt.suggest so CLI plugins can offer a complete next-message draft without private prompt access. Temporarily replace the empty composer placeholder with a wrapped suggestion; configurable Tab acceptance inserts text without submitting, and Escape, typing, navigation, and plugin cleanup discard the offer. Keep suggestion disposal identity-bound so stale callbacks cannot clear a newer offer. Re-measure native placeholder layout when suggestions change. Document the API and keyboard commands. Verified: root bun run check; full TUI suite (1462 pass, 2 skip); final focused TUI checks (64 pass); website typecheck, generated-contract check and build; live dev:live/termctrl checks for acceptance, draft preservation, dismissal, typing, stale disposal, plugin reload, narrow wrapping, light/dark themes and custom bindings. Session history remained empty after acceptance. |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| AGENTS.md | ||
| bunfig.toml | ||
| package.json | ||
| sst-env.d.ts | ||
| tsconfig.json | ||