fix(app): keep chat attachment send analysis clean
Remove the redundant dart:typed_data import so integrated analysis is clean, restore immediate composer focus on send, and cover operation-id reuse for refused attachment retries plus duplicate-name removal.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
import 'dart:async';
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -130,6 +129,8 @@ class _ChatComposerBarState extends State<ChatComposerBar> {
|
||||
setState(() => _attachmentError = error.message);
|
||||
return;
|
||||
}
|
||||
// Keep the caret in the field while the prompt is in flight, as before.
|
||||
_focus.requestFocus();
|
||||
final accepted = await composer.send(attachments: parts);
|
||||
if (!mounted) return;
|
||||
if (accepted) {
|
||||
@@ -138,7 +139,6 @@ class _ChatComposerBarState extends State<ChatComposerBar> {
|
||||
_attachmentError = null;
|
||||
});
|
||||
}
|
||||
_focus.requestFocus();
|
||||
}
|
||||
|
||||
/// Adds the operator's explicit selection through the host seam. A dismissed
|
||||
|
||||
Reference in New Issue
Block a user