21 lines
697 B
Go
21 lines
697 B
Go
package protocol
|
|
|
|
// ChatOpenWorkspaceEntry is the server-owned part of one workspace pane. Layout
|
|
// geometry and pane ids deliberately do not cross the wire.
|
|
type ChatOpenWorkspaceEntry struct {
|
|
SessionID string `json:"session_id"`
|
|
Floating bool `json:"floating,omitempty"`
|
|
}
|
|
|
|
type ChatOpenWorkspaceRequest struct {
|
|
Entries []ChatOpenWorkspaceEntry `json:"entries"`
|
|
// Seed is honored only when the server has no saved workspace yet. It makes
|
|
// migration from the old device-local snapshot race-safe.
|
|
Seed bool `json:"seed,omitempty"`
|
|
}
|
|
|
|
type ChatOpenWorkspaceSnapshot struct {
|
|
Revision int64 `json:"revision"`
|
|
Entries []ChatOpenWorkspaceEntry `json:"entries"`
|
|
}
|