From 86794e896b05394bf9210d268d50eccf758f09e4 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Fri, 27 Nov 2026 00:13:26 -0500 Subject: [PATCH] Apply remaining changes --- .../components/message/PromptInput.composer.test.tsx | 3 +++ .../components/message/PromptInput.config.test.tsx | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/message/PromptInput.composer.test.tsx b/frontend/src/components/message/PromptInput.composer.test.tsx index 224437f7..e2703543 100644 --- a/frontend/src/components/message/PromptInput.composer.test.tsx +++ b/frontend/src/components/message/PromptInput.composer.test.tsx @@ -215,6 +215,9 @@ describe('PromptInput composer layout', () => { expect(keyButtons()).toHaveLength(1) expect(keysRow()).toContainElement(keyButtons()[0]) expect(inputRow()).not.toContainElement(keyButtons()[0]) + expect(screen.getByRole('button', { name: 'cmd /' })).toBeInTheDocument() + expect(screen.getByRole('button', { name: 'mention @' })).toBeInTheDocument() + expect(screen.getByRole('button', { name: 'bash !' })).toBeInTheDocument() expect(screen.getByRole('button', { name: /^Session config: .*Claude Sonnet 4\.5/ })).toBe(config) }) diff --git a/frontend/src/components/message/PromptInput.config.test.tsx b/frontend/src/components/message/PromptInput.config.test.tsx index 44ebb55b..26a8a4e5 100644 --- a/frontend/src/components/message/PromptInput.config.test.tsx +++ b/frontend/src/components/message/PromptInput.config.test.tsx @@ -86,7 +86,10 @@ describe.each([ const trigger = await configTrigger() expect(trigger).not.toHaveAttribute('data-active') - if (mobile) expect(trigger).not.toHaveClass('bg-highlight') + if (mobile) { + expect(trigger).not.toHaveClass('bg-highlight') + expect(trigger).toHaveClass('size-11', 'p-0') + } await openConfig(user) expect(await screen.findByRole('menuitemcheckbox', { name: /Accept all permissions/ })).toHaveAttribute('aria-checked', 'false') @@ -410,6 +413,13 @@ describe.each([ expect(screen.getByLabelText('Memory (GiB)')).toHaveValue(2) }) + it('prefills the dialog from the effective values without an override', async () => { + await openResources({ sandbox: { resources: null, effectiveResources: { cpus: 2, memoryMib: 4096 } } }) + + expect(screen.getByLabelText('CPUs')).toHaveValue(2) + expect(screen.getByLabelText('Memory (GiB)')).toHaveValue(4) + }) + it('saves the entered resources', async () => { const { fetchFake, user } = await openResources({ sandbox: { resources: null, effectiveResources: { cpus: 2, memoryMib: 4096 } },