会话部分文本表达优化
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}
|
||||
|
||||
@@ -39,12 +39,13 @@ import {
|
||||
extractUserResourcesFromDraft,
|
||||
getPromptDraftDisplayText,
|
||||
} from "@/lib/prompt-draft"
|
||||
import type {
|
||||
AcpEvent,
|
||||
AgentType,
|
||||
ContentBlock,
|
||||
MessageTurn,
|
||||
PromptDraft,
|
||||
import {
|
||||
AGENT_LABELS,
|
||||
type AcpEvent,
|
||||
type AgentType,
|
||||
type ContentBlock,
|
||||
type MessageTurn,
|
||||
type PromptDraft,
|
||||
} from "@/lib/types"
|
||||
import {
|
||||
buildConversationDraftStorageKey,
|
||||
@@ -836,6 +837,7 @@ const ConversationTabView = memo(function ConversationTabView({
|
||||
status={connStatus}
|
||||
promptCapabilities={conn.promptCapabilities}
|
||||
defaultPath={workingDirForConnection}
|
||||
agentName={AGENT_LABELS[selectedAgent]}
|
||||
error={conn.error}
|
||||
pendingPermission={conn.pendingPermission}
|
||||
pendingQuestion={conn.pendingQuestion}
|
||||
@@ -910,6 +912,7 @@ const ConversationTabView = memo(function ConversationTabView({
|
||||
status={connStatus}
|
||||
promptCapabilities={conn.promptCapabilities}
|
||||
defaultPath={workingDirForConnection}
|
||||
agentName={AGENT_LABELS[selectedAgent]}
|
||||
onFocus={handleFocus}
|
||||
onSend={handleSend}
|
||||
onCancel={handleCancel}
|
||||
|
||||
Reference in New Issue
Block a user