Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/shared/WebviewMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export type AudioType = "notification" | "celebration" | "progress_loop"

export interface WebviewMessage {
type:
| "action"
| "apiConfiguration"
| "deleteMultipleTasksWithIds"
| "currentApiConfigName"
| "saveApiConfiguration"
Expand Down Expand Up @@ -131,6 +133,7 @@ export interface WebviewMessage {
| "toggleApiConfigPin"
| "setHistoryPreviewCollapsed"
text?: string
action?: "settingsButtonClicked" | "historyButtonClicked"
disabled?: boolean
askResponse?: ClineAskResponse
apiConfiguration?: ProviderSettings
Expand Down
2 changes: 1 addition & 1 deletion webview-ui/src/components/chat/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
customModes,
telemetrySetting,
hasSystemPromptOverride,
historyPreviewCollapsed, // Added historyPreviewCollapsed
historyPreviewCollapsed,
} = useExtensionState()

const { tasks } = useTaskSearch()
Expand Down
3 changes: 1 addition & 2 deletions webview-ui/src/components/history/CopyButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export const CopyButton = ({ itemTask }: CopyButtonProps) => {
size="icon"
title={t("history:copyPrompt")}
onClick={onCopy}
data-testid="copy-prompt-button"
className="opacity-50 hover:opacity-100">
data-testid="copy-prompt-button">
<span className={cn("codicon scale-80", { "codicon-check": isCopied, "codicon-copy": !isCopied })} />
</Button>
)
Expand Down
9 changes: 2 additions & 7 deletions webview-ui/src/components/history/HistoryPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import { useTaskSearch } from "./useTaskSearch"
import { Coins } from "lucide-react"

const HistoryPreview = () => {
const { tasks, showAllWorkspaces } = useTaskSearch()
// Force the hook to only return tasks from the current workspace
const { tasks } = useTaskSearch({ forceWorkspaceFilter: "current" })

return (
<>
Expand Down Expand Up @@ -49,12 +50,6 @@ const HistoryPreview = () => {
</span>
)}
</div>
{showAllWorkspaces && item.workspace && (
<div className="flex flex-row gap-1 text-vscode-descriptionForeground text-xs mt-1">
<span className="codicon codicon-folder scale-80" />
<span>{item.workspace}</span>
</div>
)}
</div>
</div>
))}
Expand Down
Loading
Loading