You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -134,6 +134,7 @@ opencode-telegram config
134
134
|`/abort`| Abort the current task |
135
135
|`/detach`| Detach from the current session without stopping it |
136
136
|`/sessions`| Browse and switch between recent sessions |
137
+
|`/messages`| Browse user messages, revert or fork from a previous state |
137
138
|`/projects`| Switch between OpenCode projects |
138
139
|`/worktree`| Switch between existing git worktrees |
139
140
|`/open`| Add a project by browsing directories |
@@ -153,6 +154,14 @@ Any regular text message is sent as a prompt to the coding agent only when no bl
153
154
154
155
When the current project is a git repository, `/worktree` shows the existing worktrees for that repository. Status and pinned updates display the main project path with the active branch, and show a separate `Worktree` line when a linked worktree is selected.
155
156
157
+
## Message History, Revert, and Fork
158
+
159
+
The `/messages` command displays all user messages in the current session, sorted by time (newest first). Select a message to view its full text and access the **Revert** and **Fork** actions.
160
+
161
+
**Revert** rolls back the session state to the selected message, discarding all subsequent messages and agent responses. This is useful when you want to retry a different approach from a specific point in the conversation.
162
+
163
+
**Fork** creates a new session that branches from the selected message. The original session remains unchanged, and you can continue working in the new forked session. This is useful when you want to explore an alternative approach without losing the original conversation history.
164
+
156
165
## Scheduled Tasks
157
166
158
167
Scheduled tasks let you prepare prompts in advance and run them automatically later or on a recurring schedule. This is useful for periodic checks, routine code maintenance, or tasks you want OpenCode to execute while you are away from your computer. Use `/task` to create a scheduled task and `/tasklist` to review or delete existing ones.
@@ -210,6 +219,7 @@ When installed via npm, the configuration wizard handles the initial setup. The
210
219
|`OPENCODE_MODEL_ID`| Default model ID | Yes |`big-pickle`|
211
220
|`BOT_LOCALE`| Bot UI language (supported locale code, e.g. `en`, `de`, `es`, `fr`, `ru`, `zh`) | No |`en`|
212
221
|`SESSIONS_LIST_LIMIT`| Sessions per page in `/sessions`| No |`10`|
222
+
|`MESSAGES_LIST_LIMIT`| User messages per page in `/messages`| No |`10`|
213
223
|`PROJECTS_LIST_LIMIT`| Projects per page in `/projects`| No |`10`|
214
224
|`OPEN_BROWSER_ROOTS`| Comma-separated paths `/open` is allowed to browse (supports `~`) | No |`~` (home directory) |
215
225
|`COMMANDS_LIST_LIMIT`| Items per page in `/commands` and `/skills`| No |`10`|
0 commit comments