Skip to content

Commit 84526e8

Browse files
committed
Merge branch 'main' of https://github.com/continuedev/continue into bekah/agent-docs
2 parents 72753b7 + 20a8e6c commit 84526e8

File tree

6 files changed

+33
-23
lines changed

6 files changed

+33
-23
lines changed

core/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

extensions/cli/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ cn ls --json
4444
- `--resume`: Resume the last session for this terminal
4545
- `<prompt>`: Optional prompt to start with
4646

47+
## Environment Variables
48+
49+
- `CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE`: Disable adding the Continue commit signature to generated commit messages
50+
4751
## Commands
4852

4953
- `cn`: Start an interactive chat session

extensions/cli/src/systemMessage.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,12 +173,14 @@ export async function constructSystemMessage(
173173
systemMessage +=
174174
'\n<context name="planMode">You are operating in _Plan Mode_, which means that your goal is to help the user investigate their ideas and develop a plan before taking action. You only have access to read-only tools and should not attempt to circumvent them to write / delete / create files. For example, it is not acceptable to use the Bash tool to write to files.</context>\n';
175175
} else {
176-
// TODO - make including this coauthor commit configurable
177-
systemMessage += `\n<context name="commitSignature">When creating commits using any CLI or tool, include the following in the commit message:
176+
// Check if commit signature is disabled via environment variable
177+
if (!process.env.CONTINUE_CLI_DISABLE_COMMIT_SIGNATURE) {
178+
systemMessage += `\n<context name="commitSignature">When creating commits using any CLI or tool, include the following in the commit message:
178179
Generated with [Continue](https://continue.dev)
179180
180181
Co-Authored-By: Continue <[email protected]>
181182
</context>\n`;
183+
}
182184
}
183185

184186
// In headless mode, add instructions to be concise and only provide final answers

extensions/cli/src/tools/ToolCallTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function ToolCallTitle(props: { toolName: string; args?: any }) {
4343
}
4444

4545
return (
46-
<Text>
46+
<Text wrap="truncate">
4747
<Text bold>{displayName}</Text>({formattedValue})
4848
</Text>
4949
);

extensions/cli/src/ui/components/MemoizedMessage.tsx

Lines changed: 22 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -109,24 +109,28 @@ export const MemoizedMessage = memo<MemoizedMessageProps>(
109109
flexDirection="column"
110110
marginBottom={1}
111111
>
112-
<Box>
113-
<Text
114-
color={
115-
isErrored
116-
? "red"
117-
: isCompleted
118-
? "green"
119-
: toolState.status === "generated"
120-
? "yellow"
121-
: "white"
122-
}
123-
>
124-
{isCompleted || isErrored ? "●" : "○"}
125-
</Text>
126-
<Text color="white">
127-
{" "}
128-
<ToolCallTitle toolName={toolName} args={toolArgs} />
129-
</Text>
112+
<Box width="100%">
113+
<Box flexShrink={0}>
114+
<Text
115+
color={
116+
isErrored
117+
? "red"
118+
: isCompleted
119+
? "green"
120+
: toolState.status === "generated"
121+
? "yellow"
122+
: "white"
123+
}
124+
>
125+
{isCompleted || isErrored ? "●" : "○"}
126+
</Text>
127+
</Box>
128+
<Box flexGrow={1} flexShrink={1} minWidth={0}>
129+
<Text color="white">
130+
{" "}
131+
<ToolCallTitle toolName={toolName} args={toolArgs} />
132+
</Text>
133+
</Box>
130134
</Box>
131135

132136
{isErrored ? (

gui/src/pages/config/sections/ConfigsSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function ConfigsSection() {
7373
error.fatal
7474
? "text-error bg-error/10"
7575
: "bg-yellow-500/10 text-yellow-500"
76-
} rounded border border-solid border-transparent px-2 py-1 text-xs ${error.uri ? "cursor-pointer " + (error.fatal ? "hover:border-error" : "hover:border-yellow-500") : ""}`}
76+
} break-all rounded border border-solid border-transparent px-2 py-1 text-xs ${error.uri ? "cursor-pointer " + (error.fatal ? "hover:border-error" : "hover:border-yellow-500") : ""}`}
7777
>
7878
{error.message}
7979
</div>

0 commit comments

Comments
 (0)