# CwdSwitchPromptScreen

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen)

Modal asking whether to switch cwd when resuming or switching to a thread.

## Signature

```python
CwdSwitchPromptScreen(
    self,
    *,
    current_cwd: str,
    thread_cwd: str,
    project_settings_change_detected: bool = False,
    abort: CwdSwitchAbortMode | None = None,
)
```

## Extends

- `ModalScreen[CwdSwitchChoice]`

## Constructors

```python
__init__(
    self,
    *,
    current_cwd: str,
    thread_cwd: str,
    project_settings_change_detected: bool = False,
    abort: CwdSwitchAbortMode | None = None,
) -> None
```

| Name | Type |
|------|------|
| `current_cwd` | `str` |
| `thread_cwd` | `str` |
| `project_settings_change_detected` | `bool` |
| `abort` | `CwdSwitchAbortMode \| None` |


## Properties

- `can_focus`
- `can_focus_children`
- `BINDINGS`
- `CSS`

## Methods

- [`compose()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/compose)
- [`on_mount()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/on_mount)
- [`check_action()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/check_action)
- [`action_switch()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/action_switch)
- [`action_stay()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/action_stay)
- [`action_abort()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/action_abort)
- [`action_cancel()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/action_cancel)
- [`action_quit_or_interrupt()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/action_quit_or_interrupt)
- [`action_quit_app()`](https://reference.langchain.com/python/deepagents-code/tui/widgets/cwd_switch/CwdSwitchPromptScreen/action_quit_app)

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/7794b61a6e76230e8c7a49bdce808b3728305914/libs/code/deepagents_code/tui/widgets/cwd_switch.py#L41)