()
| 7 | } from './replFocusedInputDialog.js' |
| 8 | |
| 9 | function baseState(): Parameters<typeof resolveReplFocusedInputDialog>[0] { |
| 10 | return { |
| 11 | isExiting: false, |
| 12 | exitFlow: null, |
| 13 | isMessageSelectorVisible: false, |
| 14 | isPromptInputActive: false, |
| 15 | sandboxPermissionRequest: null, |
| 16 | toolJSX: null, |
| 17 | toolJSXShouldContinueAnimation: undefined, |
| 18 | toolUseConfirmRequest: null, |
| 19 | promptRequest: null, |
| 20 | workerSandboxPermissionRequest: null, |
| 21 | elicitationRequest: null, |
| 22 | showingCostDialog: false, |
| 23 | idleReturnPending: null, |
| 24 | ultraplanEnabled: false, |
| 25 | isLoading: true, |
| 26 | ultraplanPendingChoice: null, |
| 27 | ultraplanLaunchPending: null, |
| 28 | showIdeOnboarding: false, |
| 29 | isAntUser: false, |
| 30 | showModelSwitchCallout: false, |
| 31 | showUndercoverCallout: false, |
| 32 | showEffortCallout: false, |
| 33 | showRemoteCallout: false, |
| 34 | lspRecommendation: null, |
| 35 | hintRecommendation: null, |
| 36 | showDesktopUpsellStartup: false, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | describe('resolveReplFocusedInputDialog', () => { |
| 41 | test('preserves exit and message-selector precedence', () => { |
no outgoing calls
no test coverage detected