Apply remaining changes

This commit is contained in:
Chris Scott committed 2026-11-07 16:46:21 -05:00
1 parent 5846ee3c20
commit 8af2c189e9
33 files changed
+576 -130

No files matched your search

@@ -221,6 +221,20 @@ describe('useSessionPickerNavigation', () => {
expect(onClose).toHaveBeenCalledTimes(1)
})
it('returns to the home route when the open chat session is deleted', () => {
const { result, onClose, location } = renderPickerNavigation(
['/chats/20240102120000-aaaaaa/sessions/a?mobileTab=sessions'],
{ mode: 'push' },
)
act(() => {
result.current.onDeleteActiveSession()
})
expect(location()).toBe('/ PUSH')
expect(onClose).toHaveBeenCalledTimes(1)
})
it('closes the picker without navigating when the session is already open', () => {
const { result, onClose, location } = renderPickerNavigation(
['/repos/1/sessions/a?mobileTab=sessions'],