abandon_session
Abandon the project's parked AI session so a git push becomes visible in the editor. Projects that have used AI sessions keep their working-tree HEAD parked on a session/* branch forever; a git push lands in the mirror and fast-forwards main, but the editor still reads the months-old session baseline. Call this right after pushing to hand the HEAD back to the default branch: the session tip plus any dirty files are frozen into a backup ref first (recoverable), then the working tree is hard-reset to the default branch and the editor reloads. Failure modes keep the session active and retryable and come back as reason= discriminators: no_active_session (no parked session row), head_kept (another live session is still using the workspace).
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": {
"project_id": "<project_id>"
},
"name": "abandon_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |