Chat: create an unnamed chat without a title; 24-hour Send later picker; capture fixtures
The repository refused a blank title before sending it, so clearing the Name failed with "Enter a chat name"; it now omits the title and only requires a directory. The Send later time picker uses the 24-hour clock of the Scheduled line. The capture fixture gains ?harnesses=1 (three harnesses, two folders) and ?tables=1 (wrapping, long-token and too-wide tables). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -200,12 +200,13 @@ class ChatRepository {
|
||||
String backend = 'opencode',
|
||||
String instructions = '',
|
||||
}) {
|
||||
if (title.trim().isEmpty || directory.trim().isEmpty) {
|
||||
throw ArgumentError('Enter a chat name and choose a directory.');
|
||||
if (directory.trim().isEmpty) {
|
||||
throw ArgumentError('Choose a directory.');
|
||||
}
|
||||
// A blank title leaves naming the chat to its harness.
|
||||
return gateway.call('chat_create', {
|
||||
'chat_create': {
|
||||
'title': title.trim(),
|
||||
if (title.trim().isNotEmpty) 'title': title.trim(),
|
||||
'directory': directory.trim(),
|
||||
'operation_id': operationId,
|
||||
if (backend.isNotEmpty && backend != 'opencode') 'backend': backend,
|
||||
|
||||
Reference in New Issue
Block a user