fix: address latest coderabbit review findings

This commit is contained in:
Cita
2026-03-23 15:24:00 +08:00
parent 426d9a538d
commit 764b9aa0e6
21 changed files with 472 additions and 46 deletions
@@ -126,6 +126,7 @@ export default function ConversationComposer({
<button
type="button"
onClick={() => onRemoveConversationFile(file.localId)}
aria-label={`移除附件 ${file.name || file.localId || '附件'}`}
style={{
border: 'none',
background: 'transparent',
@@ -148,6 +149,7 @@ export default function ConversationComposer({
value={input}
onChange={(event) => onInputChange(event.target.value)}
onKeyDown={(event) => {
if (event.nativeEvent.isComposing) return;
if (event.key === 'Enter' && !event.shiftKey) {
event.preventDefault();
if (sending) {
+1 -1
View File
@@ -15,7 +15,7 @@ type DebugPanelPresence = {
type DebugPanelProps = {
presence: DebugPanelPresence;
isMobile: boolean;
debugTimestamp: number | null;
debugTimestamp: string | null;
activeDebugTab: DebugTab;
onTabChange: (tab: DebugTab) => void;
debugTabContent: string;