dialogs
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ConfigScreen acptui.ui.screens.dialogs Session options (mode, model, ...) as the agent exposes them; returns a new value. |
||
| ConfirmScreen acptui.ui.screens.dialogs A yes / no question. |
||
| ForkScreen acptui.ui.screens.dialogs Choose where to fork: the whole session, or at one of the agent's cursors. |
||
| HelpScreen acptui.ui.screens.dialogs Keys and tips. |
||
| SessionListScreen acptui.ui.screens.dialogs Lists the agent's sessions for the working directory; returns the one to resume. |
||
| TextInputScreen acptui.ui.screens.dialogs Asks for one line of text. |
🛈 DocStrings¶
Small modal dialogs: session list, config options, choices, help.
ConfigChoice
module-attribute
¶
(config_id, value) chosen in the config dialog.
ConfigScreen
¶
Bases: ModalScreen[ConfigChoice | None]
Session options (mode, model, ...) as the agent exposes them; returns a new value.
Source code in src/acptui/ui/screens/dialogs.py
369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 | |
ConfirmScreen
¶
Bases: ModalScreen[bool]
A yes / no question.
Source code in src/acptui/ui/screens/dialogs.py
ForkScreen
¶
Bases: ModalScreen[tuple[str | None] | None]
Choose where to fork: the whole session, or at one of the agent's cursors.
Source code in src/acptui/ui/screens/dialogs.py
HelpScreen
¶
Bases: ModalScreen[None]
Keys and tips.
Source code in src/acptui/ui/screens/dialogs.py
SessionListScreen
¶
Bases: ModalScreen[str | None]
Lists the agent's sessions for the working directory; returns the one to resume.
d deletes, a archives / unarchives (when the agent supports it), h shows
archived sessions too.
Source code in src/acptui/ui/screens/dialogs.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
action_archive
¶
Archive or unarchive the highlighted session.
Source code in src/acptui/ui/screens/dialogs.py
action_delete
¶
Delete the highlighted session (after confirming).
Source code in src/acptui/ui/screens/dialogs.py
action_dismiss_none
¶
action_toggle_archived
¶
load
async
¶
Load (the next page of) sessions.
Source code in src/acptui/ui/screens/dialogs.py
TextInputScreen
¶
Bases: ModalScreen[str | None]
Asks for one line of text.
Source code in src/acptui/ui/screens/dialogs.py
describe_anchor
¶
describe_anchor(cursor: CursorState, state: SessionState) -> str
Where a cursor is, in words.
Source code in src/acptui/ui/screens/dialogs.py
next_select_value
¶
The value after the current one (wrapping around).
Source code in src/acptui/ui/screens/dialogs.py
option_value_label
¶
The display name of an option's current value.