feat(app): default new chat prompt to off
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user