Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/config/agents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ export const AGENT_CONFIG: {
[AgentMap.PettAi]: {
isAgentEnabled: true,
isAddingNewBlocked: true,
isPhasedOut: true,
requiresSetup: false,
isX402Enabled: X402_ENABLED_FLAGS[AgentMap.PettAi],
name: 'Pett.ai',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ describe('FundingRequirementStep — maintenance alert copy', () => {
});

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

expect(
screen.getByText(/cannot be created at this time/),
Expand Down
13 changes: 9 additions & 4 deletions frontend/tests/config/agents.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,21 @@ describe('AVAILABLE_FOR_ADDING_AGENTS', () => {
});
});

describe('PettAi creation blocking and deprecation', () => {
it('has isAddingNewBlocked set to true', () => {
describe('PettAi phase-out', () => {
it('is marked phased out', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].isPhasedOut).toBe(true);
});

it('still blocks creation of new instances', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].isAddingNewBlocked).toBe(true);
});

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

it('PettAi still appears in ACTIVE_AGENTS', () => {
it('stays enabled and listed so the sidebar entry and withdraw flow remain reachable', () => {
expect(AGENT_CONFIG[AgentMap.PettAi].isAgentEnabled).toBe(true);
const pettAiEntry = ACTIVE_AGENTS.find(
([agentType]) => agentType === AgentMap.PettAi,
);
Expand Down
Loading