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:
2026-10-22 12:14:26 +01:00
parent 87bb518c33
commit c0eac5fc8b
2 changed files with 62 additions and 3 deletions
@@ -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