workspace: open use entire_url for xterm trigger

This commit is contained in:
p 2026-08-13 16:56:56 +08:00
parent e19f5c5a2e
commit 67f318888d

View File

@ -51,7 +51,7 @@ file_url = entire_url("/pipeline-sdlc/api/workspace_file.dspy") + "?id=" + quote
# 1. 文本/源码 → Wterm + vi 编辑
if ext in text_exts:
ws_url = websocket_url("/wss/pipeline-sdlc/workspace_edit.xterm") + "?id=" + quote(file_id)
ws_url = entire_url("/wss/pipeline-sdlc/workspace_edit.xterm") + "?id=" + quote(file_id)
return {
"widgettype": "PopupWindow",
"options": {"title": name + " (vi 编辑)", "width": "85%", "height": "85%", "auto_open": True},