CwdSwitchPromptScreen(
self,
*,
current_cwd: str,
thread_cwd: str,
project_settings_change_detected: bool ModalScreen[CwdSwitchChoice]Modal asking whether to switch cwd before resuming a thread.
Compose the confirmation dialog.
Focus the modal so screen bindings work after nested modal flows.
Dismiss with switch.
Dismiss with stay.
Treat cancellation as staying in the current cwd.
Delegate Ctrl+C to the app-level quit/interrupt handler.
Delegate Ctrl+D to the app-level quit handler.