1package soy.iko.opencode.data.model
3import kotlinx.serialization.Serializable
5/** A session as returned by `GET /session` and `POST /session`. */
9 val parentID: String? = null,
10 val title: String? = null,
11 val version: String? = null,
12 val time: TimeInfo? = null,
14 val displayTitle: String get() = title?.takeIf { it.isNotBlank() } ?: "Untitled session"
17/** Body for `POST /session`. */
19data class CreateSessionRequest(
20 val parentID: String? = null,
21 val title: String? = null,
24/** Body for `PATCH /session/:id`. */
26data class UpdateSessionRequest(
27 val title: String? = null,
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list