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.
Disable the abort binding unless the prompt was opened for it.
Makes the disabled state first-class: when allow_abort is False the
a key is not bound to anything (it passes through) rather than firing
a no-op action.
Dismiss with switch.
Dismiss with stay.
Dismiss with abort to skip the resume, when the prompt allows it.
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.