1package soy.iko.opencode.data.model
3import androidx.compose.runtime.Immutable
4import kotlinx.serialization.Serializable
6/** A session as returned by `GET /session` and `POST /session`. */
11 val parentID: String? = null,
12 val title: String? = null,
13 val version: String? = null,
14 val time: TimeInfo? = null,
16 val displayTitle: String get() = title?.takeIf { it.isNotBlank() } ?: "Untitled session"
19/** Body for `POST /session`. */
21data class CreateSessionRequest(
22 val parentID: String? = null,
23 val title: String? = null,
26/** Body for `PATCH /session/:id`. */
28data class UpdateSessionRequest(
29 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