Skip to content
Merged
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
23 changes: 14 additions & 9 deletions webview-ui/src/components/chat/ChatView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
return true
} else {
const lastApiReqStarted = findLast(modifiedMessages, (message) => message.say === "api_req_started")
if (lastApiReqStarted && lastApiReqStarted.text != null && lastApiReqStarted.say === "api_req_started") {

Check warning on line 290 in webview-ui/src/components/chat/ChatView.tsx

View workflow job for this annotation

GitHub Actions / unit-test

Expected '!==' and instead saw '!='

Check warning on line 290 in webview-ui/src/components/chat/ChatView.tsx

View workflow job for this annotation

GitHub Actions / compile

Expected '!==' and instead saw '!='
const cost = JSON.parse(lastApiReqStarted.text).cost
if (cost === undefined) {
// api request has not finished yet
Expand Down Expand Up @@ -730,9 +730,9 @@
if (message.say === "api_req_started") {
// get last api_req_started in currentGroup to check if it's cancelled. If it is then this api req is not part of the current browser session
const lastApiReqStarted = [...currentGroup].reverse().find((m) => m.say === "api_req_started")
if (lastApiReqStarted?.text != null) {

Check warning on line 733 in webview-ui/src/components/chat/ChatView.tsx

View workflow job for this annotation

GitHub Actions / unit-test

Expected '!==' and instead saw '!='

Check warning on line 733 in webview-ui/src/components/chat/ChatView.tsx

View workflow job for this annotation

GitHub Actions / compile

Expected '!==' and instead saw '!='
const info = JSON.parse(lastApiReqStarted.text)
const isCancelled = info.cancelReason != null

Check warning on line 735 in webview-ui/src/components/chat/ChatView.tsx

View workflow job for this annotation

GitHub Actions / unit-test

Expected '!==' and instead saw '!='

Check warning on line 735 in webview-ui/src/components/chat/ChatView.tsx

View workflow job for this annotation

GitHub Actions / compile

Expected '!==' and instead saw '!='
if (isCancelled) {
endBrowserSession()
result.push(message)
Expand Down Expand Up @@ -1008,26 +1008,31 @@
{showAnnouncement && <Announcement version={version} hideAnnouncement={hideAnnouncement} />}
{messages.length === 0 && (
<>
<div className="max-w-2xl mx-auto w-full h-[calc(100vh-270px)] text-center flex flex-col justify-center">
<div className="w-full text-center flex flex-col items-center justify-center relative gap-5">
<img src={splashIcon} alt="..." />
<div className="w-[300px] flex-col justify-start items-start gap-5 inline-flex">
<div className="absolute top-0 left-0 my-1 w-full h-[calc(100vh-210px)] text-center flex flex-col justify-center">
<div className="w-full h-[700px] text-center flex flex-col items-center justify-center relative gap-5">
<div className="flex-1 flex absolute bottom-[260px] items-center justify-center">
<img src={splashIcon} alt="..." />
</div>
<div className="w-[300px] h-[240px] absolute bottom-0 overflow-hidden flex-col justify-start items-start gap-5 inline-flex">
<div className="flex flex-col text-left">
<div className="text-2xl">PearAI Coding Agent</div>
<div className="h-[18px] opacity-50 text-xs leading-[18px]">
Powered by Roo Code / Cline
</div>
</div>
</div>
<div className="w-[300px] text-left opacity-50 text-xs leading-[18px]">
Autonomous coding agent that has access to your development environment (with
your permission) for a feedback loop to add features, fix bugs, and more.
<div className="flex flex-col gap-5 h-[100px] overflow-hidden">
<div className="w-[300px] text-left opacity-50 text-xs leading-[18px]">
Autonomous coding agent that has access to your development environment
(with your permission) for a feedback loop to add features, fix bugs,
and more.
</div>
</div>
</div>
</div>
</div>
</>
)}
{taskHistory.length > 0 && <HistoryPreview showHistoryView={showHistoryView} />}
{/* {taskHistory.length > 0 && <HistoryPreview showHistoryView={showHistoryView} />} */}
</div>
)}

Expand Down
Loading