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
Press `v` from the sidebar to open a read-only view of the session's conversation history. The view polls the opencode database and renders messages, markdown, syntax-highlighted code blocks, and tool call status.
72
74
73
-
| Key | Action |
74
-
|----------|-----------------------|
75
-
|`j`| Scroll down |
76
-
|`k`| Scroll up |
77
-
|`G`| Jump to end |
78
-
|`g`| Jump to top |
79
-
|`Ctrl-u`| Page up |
80
-
|`Ctrl-d`| Page down |
81
-
|`v`| Close conversation view |
82
-
|`Esc`| Close conversation view |
75
+
| Key | Action |
76
+
|----------|---------------------------|
77
+
|`j` / `Down`| Scroll down |
78
+
|`k` / `Up`| Scroll up |
79
+
|`G`| Jump to end |
80
+
|`g`| Jump to top |
81
+
|`Ctrl-u`| Page up |
82
+
|`Ctrl-d`| Page down |
83
+
|`/`| Search conversation |
84
+
|`n`| Next search match |
85
+
|`N`| Previous search match |
86
+
|`q` / `v` / `Esc`| Close view |
87
+
88
+
Mouse scroll is supported in the conversation view. Search is incremental — type to filter and `Enter` to confirm.
89
+
90
+
### Diff view
91
+
92
+
Press `d` from the sidebar to open a read-only view of the session's git diff. The view shows both tracked and untracked changes, preferring the opencode serve API when available and falling back to `git diff` otherwise.
93
+
94
+
| Key | Action |
95
+
|----------|---------------------------|
96
+
|`j` / `Down`| Scroll down |
97
+
|`k` / `Up`| Scroll up |
98
+
|`G`| Jump to end |
99
+
|`g`| Jump to top |
100
+
|`Ctrl-u`| Page up |
101
+
|`Ctrl-d`| Page down |
102
+
|`/`| Search diff |
103
+
|`n`| Next search match |
104
+
|`N`| Previous search match |
105
+
|`q` / `d` / `Esc`| Close view |
106
+
107
+
Mouse scroll is supported in the diff view. Search is incremental — type to filter and `Enter` to confirm.
83
108
84
109
## Advanced workflows
85
110
86
111
-**Inspect conversation output** — press `v` on any session (including child sessions) to watch the agent's progress in real-time without attaching to the PTY
87
-
-**Inspect changed files** — press `f` to see which files a session has created or modified
112
+
-**Inspect changed files** — press `d` to open a diff view of all changes made by a session (tracked and untracked)
113
+
-**Inspect changed files (list)** — press `f` to see which files a session has created or modified
88
114
-**Drop into a shell** — press `!` to open a shell in the selected session's working directory
89
115
-**Commit session changes** — press `c` to review and commit/push all files modified by the session
90
116
-**Search and attach** — press `/` to search across all opencode sessions and attach to one
@@ -105,16 +131,19 @@ Keybindings and sidebar width are configurable via `~/.config/ocmux/config.json`
105
131
"worktree": "t",
106
132
"quit": "q",
107
133
"view": "v",
108
-
"files": "f"
134
+
"files": "f",
135
+
"diff": "d"
109
136
}
110
137
}
111
138
```
112
139
113
-
Keybinding values are single characters. Default `sidebar_width` is `30`. Only the keys listed above are configurable; other bindings (`Enter`, `Tab`, `/`, `s`, `r`, `!`, `c`, `Ctrl-4`, arrows) are fixed.
140
+
Keybinding values are single characters. Default `sidebar_width` is `30`. Only the keys listed above are configurable; other bindings (`Enter`, `Tab`, `/`, `s`, `Ctrl-h`, `r`, `!`, `c`, `Ctrl-4`, arrows) are fixed.
114
141
115
142
## Notes
116
143
117
144
-`Ctrl-4` is the actual focus toggle binding (hold `Ctrl` and press `4`)
145
+
-`s` collapses the sidebar to a narrow width; `Ctrl-h` hides it entirely for maximum terminal space
146
+
-`q` prompts for confirmation before quitting (`y` confirm, `n`/`Esc` cancel)
118
147
- Child sessions are expandable and selectable in the sidebar, but `Enter` attach is not yet supported for child rows — use `v` to view their conversation instead
119
148
-`c` and `!` operate on top-level sessions only
120
149
-`c` prompts for a commit message and then commits and pushes immediately
0 commit comments