From 6ce85cbd5267b09ef375613bbcd62bcd76d7d9b2 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 2 Nov 2026 19:41:03 -0800 Subject: [PATCH] test: align mobile chat return with saved permission intent (#37645) --- .../use-mobile-structured-agent-options.chat-return.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/src/session/use-mobile-structured-agent-options.chat-return.test.ts b/mobile/src/session/use-mobile-structured-agent-options.chat-return.test.ts index a4b44c87686..0aa3feb9be5 100644 --- a/mobile/src/session/use-mobile-structured-agent-options.chat-return.test.ts +++ b/mobile/src/session/use-mobile-structured-agent-options.chat-return.test.ts @@ -86,8 +86,8 @@ it("shows a chat's last answer on return, without its reports, until its new rea expect(currentValueOf(shown.optionSnapshot, 'effort')).toBe('low') expect(shown.conversationCommands).toEqual([COMMAND]) expect(shown.acceptsImages).toBe(true) - // The process restarted and another device may have moved the chat while it was away. - expect(currentValueOf(shown.optionSnapshot, 'permissionMode')).toBeUndefined() + // Saved permission intent survives a restart independently of runtime reports. + expect(currentValueOf(shown.optionSnapshot, 'permissionMode')).toBe('own') expect(shown.sendSelection()).toEqual({ selection: {} }) await act(async () => { @@ -100,7 +100,7 @@ it("shows a chat's last answer on return, without its reports, until its new rea await settle() const answered = harness.current() expect(currentValueOf(answered.optionSnapshot, 'model')).toBe('gpt-live') - expect(currentValueOf(answered.optionSnapshot, 'permissionMode')).toBe('ask') + expect(currentValueOf(answered.optionSnapshot, 'permissionMode')).toBe('own') expect(answered.conversationCommands).toEqual([]) expect(answered.sendSelection()).toEqual({ selection: { model: 'gpt-live', effort: 'low' } }) await harness.unmount()