From 9932a6b68ad29c02ae16fb6056a83a79269a302a Mon Sep 17 00:00:00 2001 From: Lily Shen <115414357+lilyshen0722@users.noreply.github.com> Date: Sat, 31 Oct 2026 20:35:06 -0700 Subject: [PATCH] feat(agents): put Wake first on agent settings (TASK-731) Follows the D215 artboard: Wake, then Identity & access (Key, Identity). The pinned order test now asserts the artboard order. Co-Authored-By: Claude Haiku 5.5 Co-authored-by: kite Agent-Model: claude/claude-haiku-5-5/default --- frontend/src/v2/__tests__/V2AgentSettingsPage.test.tsx | 5 +++-- frontend/src/v2/agents/V2AgentSettingsPage.tsx | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/v2/__tests__/V2AgentSettingsPage.test.tsx b/frontend/src/v2/__tests__/V2AgentSettingsPage.test.tsx index 4fa897751e..1612b48a1e 100644 --- a/frontend/src/v2/__tests__/V2AgentSettingsPage.test.tsx +++ b/frontend/src/v2/__tests__/V2AgentSettingsPage.test.tsx @@ -457,9 +457,10 @@ test('runtime editor writes environment controls through the shared settings hoo await screen.findByRole('heading', { name: 'Skills' }); const sections = Array.from(document.querySelectorAll('.v2-agent-settings h2')).map((node) => node.textContent); expect(sections).toEqual(expect.arrayContaining(['Identity', 'Policy', 'Skills'])); + // D215 artboard: Wake first, then Identity & access (Key, Identity). + expect(sections.indexOf('Wake')).toBeLessThan(sections.indexOf('Key')); expect(sections.indexOf('Key')).toBeLessThan(sections.indexOf('Identity')); - expect(sections.indexOf('Identity')).toBeLessThan(sections.indexOf('Wake')); - expect(sections.indexOf('Key')).toBeLessThan(sections.indexOf('How it runs')); + expect(sections.indexOf('Identity')).toBeLessThan(sections.indexOf('How it runs')); expect(sections.indexOf('Wake')).toBeLessThan(sections.indexOf('How it runs')); expect(sections.indexOf('How it runs')).toBeLessThan(sections.indexOf('Connector grants')); expect(sections.indexOf('Connector grants')).toBeLessThan(sections.indexOf('Policy')); diff --git a/frontend/src/v2/agents/V2AgentSettingsPage.tsx b/frontend/src/v2/agents/V2AgentSettingsPage.tsx index 6c9f9ed47c..8531a45cd0 100644 --- a/frontend/src/v2/agents/V2AgentSettingsPage.tsx +++ b/frontend/src/v2/agents/V2AgentSettingsPage.tsx @@ -261,6 +261,7 @@ const V2AgentSettingsPage: React.FC = () => { +

{t('agentSettings.key')}

@@ -301,7 +302,6 @@ const V2AgentSettingsPage: React.FC = () => { )}
{installation && } -