会话部分文本表达优化
This commit is contained in:
@@ -17,6 +17,7 @@ interface ChatInputProps {
|
||||
status: ConnectionStatus | null
|
||||
promptCapabilities: PromptCapabilitiesInfo
|
||||
defaultPath?: string
|
||||
agentName?: string
|
||||
onFocus?: () => void
|
||||
onSend: (draft: PromptDraft, modeId?: string | null) => void
|
||||
onCancel: () => void
|
||||
@@ -48,6 +49,7 @@ export function ChatInput({
|
||||
status,
|
||||
promptCapabilities,
|
||||
defaultPath,
|
||||
agentName,
|
||||
onFocus,
|
||||
onSend,
|
||||
onCancel,
|
||||
@@ -123,7 +125,7 @@ export function ChatInput({
|
||||
isConnecting
|
||||
? t("connecting")
|
||||
: isPrompting
|
||||
? t("agentResponding")
|
||||
? t("agentResponding", { agent: agentName ?? "Agent" })
|
||||
: t("sendMessage")
|
||||
}
|
||||
className="min-h-28 max-h-60"
|
||||
|
||||
@@ -20,6 +20,7 @@ interface ConversationShellProps {
|
||||
status: ConnectionStatus | null
|
||||
promptCapabilities: PromptCapabilitiesInfo
|
||||
defaultPath?: string
|
||||
agentName?: string
|
||||
error: string | null
|
||||
pendingPermission: PendingPermission | null
|
||||
pendingQuestion: PendingQuestion | null
|
||||
@@ -58,6 +59,7 @@ export function ConversationShell({
|
||||
status,
|
||||
promptCapabilities,
|
||||
defaultPath,
|
||||
agentName,
|
||||
error,
|
||||
pendingPermission,
|
||||
pendingQuestion,
|
||||
@@ -107,6 +109,7 @@ export function ConversationShell({
|
||||
status={status}
|
||||
promptCapabilities={promptCapabilities}
|
||||
defaultPath={defaultPath}
|
||||
agentName={agentName}
|
||||
onFocus={onFocus}
|
||||
onSend={onSend}
|
||||
onCancel={onCancel}
|
||||
|
||||
Reference in New Issue
Block a user