Remove chat backend routes only the web chat used

The in-app Assistant chat window was retired in #3126. Several backend
routes existed only for it, and Pulse Mobile, the remaining chat client,
never called them: assistant surface-tools, workflow-prompt render,
question answers, and the session summarize, fork, undo, redo, steer,
diff, revert and unrevert sub-resources. This removes them along with
the handlers, service and session-store methods, the persisted redo
stack, session compaction, mid-turn steering and the question-answer
wait behind them.

The question tool needed more than a route removal. Interactive chat
still offered pulse_question, and Pulse Mobile has no way to answer it,
so a Mobile turn that called it waited until the request ended. No
profile offers it now. The agentic loop answers any call with a refusal
that tells the model to ask in its reply text, the path Patrol runs
already took, and the chat prompt drops its clarification-tool advice.
The capabilities manifest's Assistant surface stops declaring
interactive questions, so the generated docs and fallback governance
names follow it.

/api/ai/chat and the session list, create, rename, delete, messages and
abort routes Pulse Mobile uses are unchanged, as is /api/ai/status. Old
session files load as before and drop the redo stack and steered flag
on their next write. docs/API.md lists the remaining chat routes, and
the subsystem contracts record the removal.
This commit is contained in:
rcourtman
2026-10-23 14:07:20 +01:00
parent 3b5d789aeb
commit dcbfd2d86d
51 changed files with 428 additions and 4265 deletions

View File

@@ -1548,25 +1548,20 @@ Runs an AI request which may return tool calls, findings, or suggested actions.
### Execute (Streaming)
`POST /api/ai/execute/stream`
Streaming variant of execute (used by the UI for incremental responses).
Streaming variant of execute.
### Assistant Chat & Sessions
- `GET /api/ai/status`
### Chat Sessions (Pulse Mobile)
The web chat window is retired; these routes serve Pulse Mobile chat until
the app retires on 31 March 2027. To ask about your infrastructure from an
agent, connect an MCP client through `pulse-mcp` instead.
- `GET /api/ai/status` reports whether the chat service is running
- `POST /api/ai/chat` (streaming)
- `GET /api/ai/sessions` returns session summaries; scoped Assistant handoffs may include a safe `handoff_summary` marker without model-only context text or command payloads.
- `GET /api/ai/sessions` returns session summaries; scoped handoffs may include a safe `handoff_summary` marker without model-only context text or command payloads.
- `POST /api/ai/sessions`
- `PATCH /api/ai/sessions/{id}` (rename)
- `DELETE /api/ai/sessions/{id}`
- `GET /api/ai/sessions/{id}/messages`
- `POST /api/ai/sessions/{id}/abort`
- `POST /api/ai/sessions/{id}/summarize`
- `POST /api/ai/sessions/{id}/fork`
- Legacy OpenCode-style file-change routes (`GET /api/ai/sessions/{id}/diff`,
`POST /api/ai/sessions/{id}/revert`, `POST /api/ai/sessions/{id}/unrevert`)
return `501 Not Implemented`; Pulse Assistant sessions do not own file diffs
or file-level revert.
### Question Answers
- `POST /api/ai/question/{id}/answer`
### Kubernetes AI Analysis (Compatibility)
`POST /api/ai/kubernetes/analyze`