feat(app): default new chat prompt to off

This commit is contained in:
2026-10-25 21:42:02 +00:00
parent 96178570e5
commit f1e2270ed2
7 changed files with 44 additions and 11 deletions
@@ -91,7 +91,7 @@ class _CreateChatDialogState extends State<CreateChatDialog> {
bool _nameEdited = false;
/// Whether the new chat starts with the prompt below.
bool _sendPrompt = true;
bool _sendPrompt = false;
/// The remembered prompt fills in only until the operator types one.
bool _promptEdited = false;
@@ -170,7 +170,9 @@ class _CreateChatDialogState extends State<CreateChatDialog> {
if (!mounted || recall != _recall) return;
if (_promptEdited) return;
setState(() {
_sendPrompt = saved?.send ?? true;
// Prompt text can be recalled, but sending it always requires an
// explicit choice in this new-chat dialog.
_sendPrompt = false;
_instructions.text = saved?.text ?? chatDefaultSessionInstructions;
});
}
@@ -275,6 +277,7 @@ class _CreateChatDialogState extends State<CreateChatDialog> {
),
if (_sendPrompt) ...[
const SizedBox(height: 4),
const Text('Pre-filled prompt (editable)'),
if (cupertino)
CupertinoTextField(
key: const Key('chat-create-instructions'),