Broad rearrangement of handlers

This commit is contained in:
2026-03-12 00:44:17 -04:00
parent 2e058035f3
commit d69fc4cd1e
98 changed files with 270 additions and 1032 deletions

View File

@@ -128,8 +128,12 @@ def handle_message(msg):
params = msg.get("params", {})
arguments = params.get("arguments", {})
result = forward_to_editor(arguments)
if isinstance(result, dict) and "error" in result:
text = result["error"]
else:
text = result
return make_jsonrpc(msg_id, {
"content": [{"type": "text", "text": result}],
"content": [{"type": "text", "text": text}],
})
return {