Merge pull request #9423 from continuedev/fix/intro-message-copy-reimplement
fix: change 'Agent:' to 'Config:' in intro message and update tests
This commit is contained in:
commit
e60003fd34
3 changed files with 4 additions and 4 deletions
|
|
@ -53,12 +53,12 @@ describe("IntroMessage", () => {
|
|||
expect(lastFrame()).not.toContain("Mocked TipsDisplay");
|
||||
});
|
||||
|
||||
it("renders agent name when config is provided", () => {
|
||||
it("renders config name when config is provided", () => {
|
||||
const config = { name: "Test Agent", version: "1.0.0", rules: [] };
|
||||
|
||||
const { lastFrame } = render(<IntroMessage config={config} />);
|
||||
|
||||
expect(lastFrame()).toContain("Agent:");
|
||||
expect(lastFrame()).toContain("Config:");
|
||||
expect(lastFrame()).toContain("Test Agent");
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ const IntroMessage: React.FC<IntroMessageProps> = ({
|
|||
{/* Agent name */}
|
||||
{config && (
|
||||
<Text color="blue">
|
||||
<Text bold>Agent:</Text> <Text color="white">{config.name}</Text>
|
||||
<Text bold>Config:</Text> <Text color="white">{config.name}</Text>
|
||||
</Text>
|
||||
)}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const ServiceDebugger: React.FC<ServiceDebuggerProps> = ({
|
|||
? `User: ${service.authConfig.email || "unknown"}`
|
||||
: "No auth config";
|
||||
case "config":
|
||||
return service?.config ? `Agent: ${service.config.name}` : "No config";
|
||||
return service?.config ? `Config: ${service.config.name}` : "No config";
|
||||
case "model":
|
||||
return service?.model ? `Model: ${service.model.name}` : "No model";
|
||||
case "mcp":
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue