fix(tui): gate background shortcut by capability (#32837)

This commit is contained in:
Aiden Cline
2026-06-18 14:54:26 +02:00
committed by GitHub
parent 62c746f2e8
commit 2892e97c57
8 changed files with 148 additions and 20 deletions
@@ -578,6 +578,12 @@ const scenarios: Scenario[] = [
.get("/experimental/session", "experimental.session.list")
.at((ctx) => ({ path: "/experimental/session?roots=false&archived=false", headers: ctx.headers() }))
.json(200, array),
http.protected
.get("/experimental/capabilities", "experimental.capabilities.get")
.json(200, (body) => {
check(typeof body === "object" && body !== null, "capabilities should be an object")
check("backgroundSubagents" in body, "capabilities should report background subagents")
}),
http.protected
.post("/experimental/session/{sessionID}/background", "experimental.session.background")
.mutating()