Skip to content

An open-source, faster Devin alternative

TypeScript

docs(agent-sessions): consistency pass — webhook payload = Event; qualify durability card

Igor Zalutski3d7cecdfd14c
diff --git a/docs/agent-sessions/messaging.mdx b/docs/agent-sessions/messaging.mdx
index 64031809..c8069b15 100644
--- a/docs/agent-sessions/messaging.mdx
+++ b/docs/agent-sessions/messaging.mdx
@@ -42,6 +42,6 @@ Every inbound and outbound message normalizes to this shape. The core fields are
- **`refs`** — structured context the agent shouldn't have to infer from prose. Blessed keys: `repo`, `branch`, `commit`, `ref`, `issue`, `pr` (plus your own). Pass them on the initial `input` so a coding agent knows its target.
- **`raw`** — untouched original payload; optional, never read by the core.
-To get a session's output **out**, register a webhook destination — see [Webhooks](/agent-sessions/webhooks).
+To get a session's output **out**, register a webhook destination. Deliveries carry the full [Event](/agent-sessions/events) (a message event's `body` is this envelope) — see [Webhooks](/agent-sessions/webhooks).
<Note>Inbound channels (Slack, GitHub, Jira, email) are coming soon — they map onto this same envelope; today you steer in via the API.</Note>
diff --git a/docs/agent-sessions/overview.mdx b/docs/agent-sessions/overview.mdx
index 2820abf7..e8d51fc1 100644
--- a/docs/agent-sessions/overview.mdx
+++ b/docs/agent-sessions/overview.mdx
@@ -10,7 +10,7 @@ Give an agent a prompt and a task; OpenComputer runs it on a managed runtime and
<CardGroup cols={2}>
<Card title="Self-healing, managed runtime" icon="heart-pulse">
- Crash → **auto-restart**, picks up where it was
- - Idle → hibernate (≈ free); **session survives sandbox loss**
+ - Idle → hibernate (≈ free); an **idle** session survives sandbox loss
- You never restart anything — [details](/agent-sessions/durability)
</Card>
<Card title="Brain / hands isolation" icon="shield-halved">
diff --git a/docs/agent-sessions/sessions.mdx b/docs/agent-sessions/sessions.mdx
index 986da9fa..1c55c6a7 100644
--- a/docs/agent-sessions/sessions.mdx
+++ b/docs/agent-sessions/sessions.mdx
@@ -44,7 +44,7 @@ Cap a session at create (or default it on the [agent](/agent-sessions/agents)) w
## Stop a session
-`POST /sessions/:id/cancel` **requests** a cooperative stop: the turn ends at its next checkpoint, so an in-flight model call may run to its timeout — billing for that turn stops when it actually exits, not the instant you call. `POST /sessions/:id/archive` cancels any active turn, then closes the session read-only.
+`POST /sessions/:id/cancel` **requests** a cooperative stop: the turn ends at its next checkpoint with a `turn.completed` (`yield_reason: "canceled"`), so an in-flight model call may run to its timeout — billing for that turn stops when it actually exits, not the instant you call. `POST /sessions/:id/archive` cancels any active turn, then closes the session read-only.
**`archive` is not delete** — the session's log is retained, just read-only. Hard delete (`DELETE /sessions/:id`) and export are coming soon.
diff --git a/docs/agent-sessions/webhooks.mdx b/docs/agent-sessions/webhooks.mdx
index ecd72aa9..2bee053d 100644
--- a/docs/agent-sessions/webhooks.mdx
+++ b/docs/agent-sessions/webhooks.mdx
@@ -3,7 +3,7 @@ title: "Webhooks"
description: "Deliver a session's output, and control deliveries"
---
-Register a **destination** and a session's outbound messages are delivered to it over the shared [envelope](/agent-sessions/messaging#the-envelope) — at-least-once, signed, and retried. Filter what you receive so you're not spammed with internal chatter.
+Register a **destination** and a session's [events](/agent-sessions/events) are delivered to it as **`Event` objects — the same shape the [SSE stream](/agent-sessions/events) emits** — at-least-once, signed, and retried. (Webhooks carry every event `type` — `turn.completed`, `exec.completed`, messages, … — not just messages.) Filter what you receive so you're not spammed with internal chatter.
## Destinations
@@ -16,7 +16,7 @@ curl https://api.opencomputer.dev/v3/sessions/$ID/destinations \
"include_raw": false }'
```
-`level` is the visibility threshold (`user` default, or `progress`); `types` is an optional event-type allow-list (default: all — which **includes the terminal `turn.completed`**); `include_raw: false` strips `raw` from the delivered envelope. To get only completions, set `types: ["turn.completed"]`.
+`level` is the visibility threshold (`user` default, or `progress`); `types` is an optional event-type allow-list (default: all — which **includes the terminal `turn.completed`**); `include_raw: false` strips `body.raw` from the delivered Event. To get only completions, set `types: ["turn.completed"]`.
| Method · Path | Purpose |
| --- | --- |