trading_agent.terminal.screens.checkpoints_screen
¶
The Checkpoints page: snapshots of a desk's own files, with restore.
It copies the web page's CheckpointsPage.tsx. Restoring puts the desk's Memory.md, memory/ and notes/ back as they were; the gateway first takes a checkpoint of the present state, so a restore can be undone. The newest checkpoint is the present state and cannot be restored.
Typical usage example:
app.push_screen(CheckpointsScreen('general'))
CheckpointsScreen
¶
Bases: PageScreen
The Checkpoints page.
Creates the page.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
desk_name
|
str
|
The desk the chat shows. |
required |
Source code in src/trading_agent/terminal/screens/checkpoints_screen.py
compose_page
¶
Builds the checkpoints table.
Yields:
| Type | Description |
|---|---|
Widget
|
The note and the table. |
Source code in src/trading_agent/terminal/screens/checkpoints_screen.py
on_mount
¶
refresh_page
async
¶
Reads the desk's checkpoints.
Source code in src/trading_agent/terminal/screens/checkpoints_screen.py
action_restore
¶
Asks for a reason, then restores the highlighted checkpoint.