Compare commits
No commits in common. "2c627ea095affd8dd07ca93b6df5a3455f3a5827" and "964226847be23933d9d165833d3075999e4eef57" have entirely different histories.
2c627ea095
...
964226847b
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* S-09 — multi-session CRUD routes.
|
||||
*
|
||||
* POST /sessions → { id, name, state, lastOutputAt }
|
||||
* POST /sessions → { id, name }
|
||||
* GET /sessions → [{ id, name, description, state, lastOutputAt }]
|
||||
* PATCH /sessions/:id → updates @description
|
||||
* DELETE /sessions/:id → kills tmux session, optionally clears buffer
|
||||
|
|
@ -110,9 +110,7 @@ async function handleCreate(
|
|||
|
||||
try {
|
||||
const id = await spawnSession({ name });
|
||||
// Include state + lastOutputAt to match the GET /sessions response shape
|
||||
// so iOS clients can decode the response with the same type.
|
||||
sendJson(res, 201, { id, name, state: "idle", lastOutputAt: "" });
|
||||
sendJson(res, 201, { id, name });
|
||||
} catch (err) {
|
||||
sendJson(res, 500, { error: "internal_error", message: String(err) });
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue