Skip to content

Commit 6074923

Browse files
committed
Merge remote-tracking branch 'origin/main' into r1-display-reason
2 parents c660706 + af4161d commit 6074923

File tree

5 files changed

+44
-5
lines changed

5 files changed

+44
-5
lines changed

.changeset/healthy-oranges-drum.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Add a dropdown to select the API configuration for a mode in the Prompts tab

.changeset/new-keys-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
Fix bug where always allow wasn't showing up for MCP tools

webview-ui/src/components/chat/Announcement.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ interface AnnouncementProps {
1212
You must update the latestAnnouncementId in ClineProvider for new announcements to show to users. This new id will be compared with whats in state for the 'last announcement shown', and if it's different then the announcement will render. As soon as an announcement is shown, the id will be updated in state. This ensures that announcements are not shown more than once, even if the user doesn't close it themselves.
1313
*/
1414
const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
15-
const minorVersion = version.split(".").slice(0, 2).join(".") // 2.0.0 -> 2.0
1615
return (
1716
<div
1817
style={{
@@ -29,9 +28,7 @@ const Announcement = ({ version, hideAnnouncement }: AnnouncementProps) => {
2928
style={{ position: "absolute", top: "8px", right: "8px" }}>
3029
<span className="codicon codicon-close"></span>
3130
</VSCodeButton>
32-
<h2 style={{ margin: "0 0 8px" }}>
33-
🎉{" "}Introducing Roo Code {minorVersion}
34-
</h2>
31+
<h2 style={{ margin: "0 0 8px" }}>🎉{" "}Introducing Roo Code 3.2</h2>
3532

3633
<p style={{ margin: "5px 0px" }}>
3734
Our biggest update yet is here - we're officially changing our name from Roo Cline to Roo Code! After

webview-ui/src/components/chat/ChatRow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const ChatRowContent = ({
7979
isLast,
8080
isStreaming,
8181
}: ChatRowContentProps) => {
82-
const { mcpServers } = useExtensionState()
82+
const { mcpServers, alwaysAllowMcp } = useExtensionState()
8383
const [reasoningCollapsed, setReasoningCollapsed] = useState(false)
8484

8585
// Auto-collapse reasoning when new messages arrive
@@ -888,6 +888,7 @@ export const ChatRowContent = ({
888888
)?.alwaysAllow || false,
889889
}}
890890
serverName={useMcpServer.serverName}
891+
alwaysAllowMcp={alwaysAllowMcp}
891892
/>
892893
</div>
893894
{useMcpServer.arguments && useMcpServer.arguments !== "{}" && (

webview-ui/src/components/prompts/PromptsView.tsx

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
4343
customModePrompts,
4444
customSupportPrompts,
4545
listApiConfigMeta,
46+
currentApiConfigName,
4647
enhancementApiConfigId,
4748
setEnhancementApiConfigId,
4849
mode,
@@ -609,6 +610,36 @@ const PromptsView = ({ onDone }: PromptsViewProps) => {
609610
</div>
610611
{/* Mode settings */}
611612
<>
613+
<div style={{ marginBottom: "12px" }}>
614+
<div style={{ fontWeight: "bold", marginBottom: "4px" }}>API Configuration</div>
615+
<div style={{ marginBottom: "8px" }}>
616+
<VSCodeDropdown
617+
value={currentApiConfigName || ""}
618+
onChange={(e: any) => {
619+
const value = e.detail?.target?.value || e.target?.value
620+
vscode.postMessage({
621+
type: "loadApiConfiguration",
622+
text: value,
623+
})
624+
}}
625+
style={{ width: "100%" }}>
626+
{(listApiConfigMeta || []).map((config) => (
627+
<VSCodeOption key={config.id} value={config.name}>
628+
{config.name}
629+
</VSCodeOption>
630+
))}
631+
</VSCodeDropdown>
632+
<div
633+
style={{
634+
fontSize: "12px",
635+
marginTop: "5px",
636+
color: "var(--vscode-descriptionForeground)",
637+
}}>
638+
Select which API configuration to use for this mode
639+
</div>
640+
</div>
641+
</div>
642+
612643
{/* Show tools for all modes */}
613644
<div style={{ marginBottom: "16px" }}>
614645
<div

0 commit comments

Comments
 (0)