Skip to content

Commit c621f49

Browse files
authored
Merge branch 'staging' into chore/bump-polymarket-trader-v0.40.0-rc6
2 parents fd18b19 + 91e854c commit c621f49

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

frontend/config/agents.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ export const AGENT_CONFIG: {
256256
[AgentMap.PettAi]: {
257257
isAgentEnabled: true,
258258
isAddingNewBlocked: true,
259+
isPhasedOut: true,
259260
requiresSetup: false,
260261
isX402Enabled: X402_ENABLED_FLAGS[AgentMap.PettAi],
261262
name: 'Pett.ai',

frontend/tests/components/SetupPage/AgentOnboarding/FundingRequirementStep.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ describe('FundingRequirementStep — maintenance alert copy', () => {
4848
});
4949

5050
it('keeps the "existing agents continue to run" line for a blocked-but-not-phased-out agent', () => {
51-
// PettAi blocks new instances (isAddingNewBlocked) but is not phased out —
51+
// Optimus blocks new instances (isAddingNewBlocked) but is not phased out —
5252
// so existing instances still run.
53-
render(<FundingRequirementStep agentType={AgentMap.PettAi} />);
53+
render(<FundingRequirementStep agentType={AgentMap.Optimus} />);
5454

5555
expect(
5656
screen.getByText(/cannot be created at this time/),

frontend/tests/config/agents.test.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,21 @@ describe('AVAILABLE_FOR_ADDING_AGENTS', () => {
104104
});
105105
});
106106

107-
describe('PettAi creation blocking and deprecation', () => {
108-
it('has isAddingNewBlocked set to true', () => {
107+
describe('PettAi phase-out', () => {
108+
it('is marked phased out', () => {
109+
expect(AGENT_CONFIG[AgentMap.PettAi].isPhasedOut).toBe(true);
110+
});
111+
112+
it('still blocks creation of new instances', () => {
109113
expect(AGENT_CONFIG[AgentMap.PettAi].isAddingNewBlocked).toBe(true);
110114
});
111115

112-
it('has no shutdownDate (deprecation banner removed)', () => {
116+
it('has no shutdownDate (superseded by phase-out)', () => {
113117
expect(AGENT_CONFIG[AgentMap.PettAi].shutdownDate).toBeUndefined();
114118
});
115119

116-
it('PettAi still appears in ACTIVE_AGENTS', () => {
120+
it('stays enabled and listed so the sidebar entry and withdraw flow remain reachable', () => {
121+
expect(AGENT_CONFIG[AgentMap.PettAi].isAgentEnabled).toBe(true);
117122
const pettAiEntry = ACTIVE_AGENTS.find(
118123
([agentType]) => agentType === AgentMap.PettAi,
119124
);

0 commit comments

Comments
 (0)