Resume a DSH session
dsh_resume_sessionResume a persisted inactive DSH session through ACP after validating its canonical cwd, ownership, and desktop release; continues the session without replaying prior transcript messages.
Instructions
Restore a persisted inactive DSH session via ACP session/resume, validating canonical cwd and session ownership first. Resume only restores a persisted inactive session and continues it; it does not replay prior transcript messages. WARNING: DSH ACP cannot see sessions held by another process (the desktop app), so session/list also lists sessions the desktop may still be running. Resuming is NOT read-only: it activates the session and writes to the same persisted log, which can conflict with the desktop. Requires acknowledge_released=true, and switching desktop tabs does not count as releasing.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"cwd": "<cwd>",
"acknowledge_released": "<acknowledge_released>"
},
"name": "dsh_resume_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Absolute working directory; must match the session canonical cwd. | |
| session_id | Yes | Explicit persisted session id. | |
| permission_policy | No | Validated for compatibility but NOT inherited: pass permission_policy explicitly on each dsh_send_message. | deny |
| acknowledge_released | Yes | Must be true. Confirms the session is not in use by the desktop app (closed there, not merely a background tab). |