The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
chore(desktop): backend contract v7 — blocking prompts are JSON-RPC server->client requests
teknium1d3a44784b1af
diff --git a/apps/desktop/src/store/updates.ts b/apps/desktop/src/store/updates.tsindex 44ec5241576..e2ff292f723 100644--- a/apps/desktop/src/store/updates.ts+++ b/apps/desktop/src/store/updates.ts@@ -102,7 +102,10 @@ function isUpdateToastSnoozed(): boolean {// v5: requires raised WebSocket frame size for large one-shot file.attach.// v6: requires key-addressed plugins.manage rows (keyless rows render// read-only in Capabilities → Plugins).-const REQUIRED_BACKEND_CONTRACT = 6+// v7: requires JSON-RPC server->client requests for every blocking prompt+// (approval/clarify/sudo/secret/vault/MCP setup); a v6 backend's+// `<kind>.request` notifications would never render a card.+const REQUIRED_BACKEND_CONTRACT = 7const SKEW_TOAST_ID = 'backend-contract-skew'// The contract check runs on every session.resume (applyRuntimeInfo), so// without a snooze the warning re-popped on every thread the user opened, evendiff --git a/tui_gateway/server.py b/tui_gateway/server.pyindex 019463899f6..4e013dc786d 100644--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@ -2019,8 +2019,10 @@ def _current_profile_name() -> str:# Monotonic GUI<->backend contract version: the desktop refuses a backend reporting less (or none) with a# one-click "update to align" prompt; bump whenever the desktop's backend contract changes. v2 file.attach;# v3 approvals.mode RPCs + session.info reconciliation; v4 session.create fast=false = explicit normal tier;-# v5 ws_max_size >16 MiB file.attach frames; v6 plugins.manage rows carry the canonical registry key.-DESKTOP_BACKEND_CONTRACT = 6+# v5 ws_max_size >16 MiB file.attach frames; v6 plugins.manage rows carry the canonical registry key;+# v7 blocking prompts are JSON-RPC server->client requests (`srq-<n>` frames, `open_requests` replay) — a v6+# backend still emits `<kind>.request` notifications the renderer no longer listens for.+DESKTOP_BACKEND_CONTRACT = 7def _session_usage_snapshot(session: dict | None) -> dict: