Skip to content

An open-source, faster Devin alternative

TypeScript

Schema: Session.aside optional (absent: false); the hosted API always sends it

Igor Zalutski via Computer72e835da53ed
diff --git a/computer/schema/computer-api.v1.json b/computer/schema/computer-api.v1.json
index 748f5a9e..bd0d696c 100644
--- a/computer/schema/computer-api.v1.json
+++ b/computer/schema/computer-api.v1.json
@@ -2840,7 +2840,6 @@
"title",
"status",
"archived",
- "aside",
"owner",
"origin",
"settings",
diff --git a/computer/src/api/schema-objects.ts b/computer/src/api/schema-objects.ts
index 882acad8..c1284698 100644
--- a/computer/src/api/schema-objects.ts
+++ b/computer/src/api/schema-objects.ts
@@ -197,8 +197,11 @@ export const Session = Schema.Struct({
title: Schema.String,
status: SessionStatus,
archived: Schema.Boolean,
- /** Set aside by its owner in triage, until something newer needs them. The server's; a computer's own fold says false. */
- aside: Schema.Boolean,
+ /**
+ * Set aside by its owner in triage, until something newer needs them. The hosted API's (a column of
+ * its session row): it always sends it. Absent means false, as from a computer older than set-aside.
+ */
+ aside: Schema.optionalKey(Schema.Boolean),
owner: Person,
origin: Origin,
settings: Settings,
diff --git a/docs/reference/api-schema.mdx b/docs/reference/api-schema.mdx
index 27f79f0d..71cea3d9 100644
--- a/docs/reference/api-schema.mdx
+++ b/docs/reference/api-schema.mdx
@@ -144,7 +144,7 @@ Sent only on a WebSocket attached with `deltas: true`; see [Events](/api/events#
| Object | Fields |
| --- | --- |
-| Session | `id` (`cs_` and 16 characters), `title`, `status` (`starting`, `running`, `waiting`, `idle`, `suspended`), `archived`, `aside`, `owner` (Person), `origin` (Origin), `settings` (`model`, `effort`, `mode`, `speed`), `metadata`, `activeTurnId`, `queued` (Turn list), `asks` (Ask list), `subagents` (Subagent list), `lastTurn` (TurnSummary or null), `lastText`, `context` (`usedTokens`, `windowTokens`), `lastSeq`, `logEpoch`, `epochStartSeq`, `createdAt`, `lastActiveAt`, `syncedAt`, `urls.dashboard` |
+| Session | `id` (`cs_` and 16 characters), `title`, `status` (`starting`, `running`, `waiting`, `idle`, `suspended`), `archived`, `aside?` (absent: false), `owner` (Person), `origin` (Origin), `settings` (`model`, `effort`, `mode`, `speed`), `metadata`, `activeTurnId`, `queued` (Turn list), `asks` (Ask list), `subagents` (Subagent list), `lastTurn` (TurnSummary or null), `lastText`, `context` (`usedTokens`, `windowTokens`), `lastSeq`, `logEpoch`, `epochStartSeq`, `createdAt`, `lastActiveAt`, `syncedAt`, `urls.dashboard` |
| Person | `id`, `name`, `email` |
| Origin | `type` (`slack`, `opc`, `dashboard`, `api`), `client`, `slack` (`teamId`, `channelId`, `channelName`, `threadTs`, `url`) or null |
| Actor | `id`, `name`, `via` (`slack`, `opc`, `dashboard`, `api`), `client` |
diff --git a/services/managed-agents/src/computer/api-types.ts b/services/managed-agents/src/computer/api-types.ts
index 5e8fcdc0..1a3e0127 100644
--- a/services/managed-agents/src/computer/api-types.ts
+++ b/services/managed-agents/src/computer/api-types.ts
@@ -164,8 +164,11 @@ export interface Session {
title: string;
status: SessionStatus;
archived: boolean;
- /** Set aside by its owner from triage: true while the stored ref is the oldest open ask's id. */
- aside: boolean;
+ /**
+ * Set aside by its owner from triage: true while the stored ref is the oldest open ask's id. Optional
+ * in the published schema (absent: false); this service always sends it.
+ */
+ aside?: boolean;
owner: Person;
origin: Origin;
settings: SessionSettings;