fix(tui): make prompt suggestion configurable (opt-in, default off)

- Add prompt_suggestion: Option<bool> config field with
  prompt_suggestion_enabled() accessor (defaults to false)
- Guard suggestion generation behind the config check
- Use config.default_model() (provider-aware) instead of hardcoded
  deepseek-v4-flash to avoid cross-provider data egress
- Document in config.example.toml

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Punkcan Yang
2026-06-06 17:57:20 +08:00
parent eb1d08b05e
commit e687b07bc6
3 changed files with 13 additions and 4 deletions
+1
View File
@@ -144,6 +144,7 @@ memory_path = "~/.codewhale/memory.md"
allow_shell = true
approval_policy = "on-request" # on-request | untrusted | never
sandbox_mode = "workspace-write" # read-only | workspace-write | danger-full-access | external-sandbox
# prompt_suggestion = true # opt-in: show ghost-text follow-up question in composer after each turn
# Typed permission rules live in a sibling `permissions.toml` file, not in
# config.toml. This schema slice is ask-only and is parsed for follow-up