Skip to content
Merged
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
f026cd0
Less visually intense task completed message
brunobergher Sep 12, 2025
c74cae0
Typographic improvements in markdown messages
brunobergher Sep 12, 2025
f542f21
Aligns thinking block with the stlye of completed task blocks
brunobergher Sep 12, 2025
0cf7318
More subtle cost display in API Request messages
brunobergher Sep 12, 2025
2456f5d
Nicer typogrography and indentation on all messages which use codeblo…
brunobergher Sep 12, 2025
58cde98
Nicer typogrography and indentation on all messages which use codeblo…
brunobergher Sep 12, 2025
071e944
Visual improvements to browser action
brunobergher Sep 12, 2025
026f862
More markdown tweaks
brunobergher Sep 12, 2025
68eeb4d
Fix in reasoning block
brunobergher Sep 12, 2025
58ce2aa
Much de-emphasized API calls
brunobergher Sep 12, 2025
b710aff
Consolidates and simplifies Error messages, makes user messages more …
brunobergher Sep 12, 2025
3dc561b
Better alignment and icons for FollowUpSuggest
brunobergher Sep 12, 2025
dd70361
More markdown improvementS
brunobergher Sep 12, 2025
1a3967f
Disables word wrap in code blocks by default
brunobergher Sep 12, 2025
c602edc
Merge branch 'main' into bb/ux/message-feed
brunobergher Sep 15, 2025
debee6c
Removes unnecessary colons from tool use strings across all languages
brunobergher Sep 15, 2025
559eb65
Tweaks to file read tool block
brunobergher Sep 15, 2025
d912894
Different icon for mode switch
brunobergher Sep 15, 2025
8eb31c2
Fixes merge conflcit
brunobergher Sep 17, 2025
7ddf0a2
Tweaks to taskheader
brunobergher Sep 17, 2025
7036adc
Font doesn't have to be that light
brunobergher Sep 17, 2025
1c16fdf
More subtle reasoning timer
brunobergher Sep 17, 2025
d1d20c5
File read block tweaks
brunobergher Sep 17, 2025
07ff490
Clearer checkpoint markers
brunobergher Sep 17, 2025
c3cf35f
Better checkpoint styling
brunobergher Sep 18, 2025
c01f3cf
Fixes API request display
brunobergher Sep 18, 2025
de12943
More subtle <code> blocks in titles
brunobergher Sep 18, 2025
21b8340
Actually fix API loading state
brunobergher Sep 18, 2025
3e80eca
Merge main
brunobergher Sep 18, 2025
100b337
Missing translations
brunobergher Sep 18, 2025
9e05800
fix: Apply approved PR feedback
roomote Sep 18, 2025
fb3178d
Cleanup
mrubens Sep 18, 2025
4f38409
Back to Lightbulb, not bot
brunobergher Sep 19, 2025
0dd8890
Command chat row improvements
brunobergher Sep 19, 2025
bfe81f8
Fixes tests
brunobergher Sep 19, 2025
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
68 changes: 29 additions & 39 deletions webview-ui/src/components/chat/BrowserSessionRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { useExtensionState } from "@src/context/ExtensionStateContext"
import CodeBlock, { CODE_BLOCK_BG_COLOR } from "../common/CodeBlock"
import { ChatRowContent } from "./ChatRow"
import { ProgressIndicator } from "./ProgressIndicator"
import { Globe, Pointer, SquareTerminal } from "lucide-react"

interface BrowserSessionRowProps {
messages: ClineMessage[]
Expand Down Expand Up @@ -237,58 +238,50 @@ const BrowserSessionRow = memo((props: BrowserSessionRowProps) => {
const [browserSessionRow, { height: rowHeight }] = useSize(
<div style={{ padding: "10px 6px 10px 15px", marginBottom: -10 }}>
<div style={{ display: "flex", alignItems: "center", gap: "10px", marginBottom: "10px" }}>
{isBrowsing ? (
<ProgressIndicator />
) : (
<span
className={`codicon codicon-inspect`}
style={{ color: "var(--vscode-foreground)", marginBottom: "-1.5px" }}></span>
)}
{isBrowsing ? <ProgressIndicator /> : <Pointer className="w-4" />}
<span style={{ fontWeight: "bold" }}>
<>{t("chat:browser.rooWantsToUse")}</>
</span>
</div>
<div
className="ml-6 mb-4 border-border"
style={{
borderRadius: 3,
border: "1px solid var(--vscode-editorGroup-border)",
borderRadius: 6,
overflow: "hidden",
backgroundColor: CODE_BLOCK_BG_COLOR,
marginBottom: 10,
}}>
{/* URL Bar */}
<div
style={{
margin: "5px auto",
width: "calc(100% - 10px)",
margin: "0px auto",
width: "calc(100%)",
boxSizing: "border-box", // includes padding in width calculation
backgroundColor: "var(--vscode-input-background)",
border: "1px solid var(--vscode-input-border)",
borderRadius: "4px",
padding: "3px 5px",
borderRadius: "4px 4px 0 0",
padding: "5px",
display: "flex",
alignItems: "center",
justifyContent: "center",
color: displayState.url
? "var(--vscode-input-foreground)"
: "var(--vscode-descriptionForeground)",
color: "var(--vscode-descriptionForeground)",
fontSize: "12px",
}}>
<div
style={{
cursor: "default",
textOverflow: "ellipsis",
overflow: "hidden",
whiteSpace: "nowrap",
width: "100%",
textAlign: "center",
}}>
<Globe className="w-3 inline -mt-0.5 mr-2 opacity-50" />
{displayState.url || "http"}
</div>
</div>

{/* Screenshot Area */}
<div
data-testid="screenshot-container"
className="hover:opacity-90 transition-all"
style={{
width: "100%",
paddingBottom: `${aspectRatio}%`, // height/width ratio
Expand Down Expand Up @@ -341,27 +334,24 @@ const BrowserSessionRow = memo((props: BrowserSessionRowProps) => {
)}
</div>

<div style={{ width: "100%" }}>
<div
onClick={() => {
setConsoleLogsExpanded(!consoleLogsExpanded)
}}
style={{
display: "flex",
alignItems: "center",
gap: "4px",
width: "100%",
justifyContent: "flex-start",
cursor: "pointer",
padding: `9px 8px ${consoleLogsExpanded ? 0 : 8}px 8px`,
}}>
<span className={`codicon codicon-chevron-${consoleLogsExpanded ? "down" : "right"}`}></span>
<span style={{ fontSize: "0.8em" }}>{t("chat:browser.consoleLogs")}</span>
</div>
{consoleLogsExpanded && (
<CodeBlock source={displayState.consoleLogs || t("chat:browser.noNewLogs")} language="shell" />
)}
{/* Console Logs Accordion */}
<div
onClick={() => {
setConsoleLogsExpanded(!consoleLogsExpanded)
}}
className="flex items-center justify-between gap-2 text-vscode-editor-foreground/50 hover:text-vscode-editor-foreground transition-colors"
style={{
width: "100%",
cursor: "pointer",
padding: `9px 10px ${consoleLogsExpanded ? 0 : 8}px 10px`,
}}>
<SquareTerminal className="w-3" />
<span className="grow text-xs">{t("chat:browser.consoleLogs")}</span>
<span className={`codicon codicon-chevron-${consoleLogsExpanded ? "right" : "down"}`}></span>
</div>
{consoleLogsExpanded && (
<CodeBlock source={displayState.consoleLogs || t("chat:browser.noNewLogs")} language="shell" />
)}
</div>

{/* Action content with min height */}
Expand Down
Loading
Loading