Elffuss BraidHub

kikocis/continue public

Merge pull request #7466 from continuedev/nate/fix-on-prem-proxy

feat: use on prem proxy in CLI
Changeset73fdb55f859d361280bea371da9cb44a5a22ee21d50f061ceafca7c510b41d52
AuthorNate Sesti <33237525+sestinj@users.noreply.github.com> · 2025-08-28 15:11 -07:00
CommitterGitHub <noreply@github.com> · 2025-08-28 15:11 -07:00
Parents479a2e9464e7, 509642819b9d

Browse the files at this changeset

3 files changed

modified extensions/cli/src/configLoader.ts +1 −1
@@ -353,7 +353,7 @@
353353 }
354354
355355 // Unroll locally if not logged in
356- if (!(apiClient as any).configuration.apiKey) {
356+ if (!(apiClient as any).configuration.accessToken) {
357357 return await unrollAssistantWithConfig(
358358 {
359359 uriType: "slug",
modified extensions/cli/src/services/ModelService.ts +2 −2
@@ -102,7 +102,7 @@
102102 env: {
103103 apiKeyLocation: (selectedModel as any).apiKeyLocation,
104104 orgScopeId: organizationId,
105- proxyUrl: undefined,
105+ proxyUrl: (selectedModel as any).onPremProxyUrl ?? undefined,
106106 },
107107 }
108108 : {
@@ -301,7 +301,7 @@
301301 env: {
302302 apiKeyLocation: (selectedModel as any).apiKeyLocation,
303303 orgScopeId: organizationId,
304- proxyUrl: undefined,
304+ proxyUrl: (selectedModel as any).onPremProxyUrl ?? undefined,
305305 },
306306 }
307307 : {
modified extensions/cli/src/ui/ToolResultSummary.tsx +10 −6
@@ -8,6 +8,8 @@
88 import { ColoredDiff } from "./ColoredDiff.js";
99 import { ChecklistDisplay } from "./components/ChecklistDisplay.js";
1010
11+const MAX_BASH_OUTPUT_LINES = 4;
12+
1113 interface ToolResultSummaryProps {
1214 toolName?: string;
1315 content: string;
@@ -74,8 +76,8 @@
7476 const actualOutput = isStderr ? content.slice(7).trim() : content;
7577 const outputLines = actualOutput.split("\n");
7678
77- if (outputLines.length <= 16) {
78- // Show actual output for 16 lines or fewer
79+ if (outputLines.length <= MAX_BASH_OUTPUT_LINES) {
80+ // Show actual output for MAX_BASH_OUTPUT_LINES lines or fewer
7981 return (
8082 <Box flexDirection="column">
8183 <Box>
@@ -88,8 +90,8 @@
8890 </Box>
8991 );
9092 } else {
91- // Show first 16 lines with ellipsis for more than 16 lines
92- const first16Lines = outputLines.slice(0, 16).join("\n");
93+ // Show first MAX_BASH_OUTPUT_LINES lines with ellipsis for more lines
94+ const firstLines = outputLines.slice(0, MAX_BASH_OUTPUT_LINES).join("\n");
9395 return (
9496 <Box flexDirection="column">
9597 <Box>
@@ -97,10 +99,12 @@
9799 <Text color="gray"> Terminal output:</Text>
98100 </Box>
99101 <Box paddingLeft={2}>
100- <Text color={isStderr ? "red" : "white"}>{first16Lines}</Text>
102+ <Text color={isStderr ? "red" : "white"}>{firstLines}</Text>
101103 </Box>
102104 <Box paddingLeft={2}>
103- <Text color="gray">...</Text>
105+ <Text color="gray">
106+ ... +{outputLines.length - MAX_BASH_OUTPUT_LINES} lines
107+ </Text>
104108 </Box>
105109 </Box>
106110 );