3 Commits

Author SHA1 Message Date
d6d3e61a9e fix: add /wss/ prefix to WebSocket URL for nginx proxy
URL should be /wss/harnessed_reasoning/reasoning_console.wss, not
/harnessed_reasoning/reasoning_console.wss. Nginx consumes the /wss
prefix to route to the WebSocket service.
2026-05-23 15:49:57 +08:00
42fd93b706 fix: use bricks.getWidgetById instead of non-existent bricks.app.find_widget_by_id
The correct bricks API is bricks.getWidgetById(id), not
bricks.app.find_widget_by_id(id). Replaced all 11 occurrences.
2026-05-23 15:39:03 +08:00
c6df7f1829 fix: move JS logic from Html widget to external .js file
- Html widget's innerHTML doesn't execute <script> tags, causing
  'startReasoning is not defined' error
- Extract all JS (reasoningWS, startReasoning, clearSteps) into
  reasoning_console.js which is auto-loaded by Sage's header.tmpl
- Switch Button binds from actiontype='script' to
  actiontype='registerfunction' with rfname
- Fix widgettype 'Input' -> 'KeyinText' (Input is not registered)
- Fix widgettype 'Scroll' -> 'VBox' with CSS overflow (Scroll not registered)
- Remove duplicate WebSocket widget (JS handles WS connection directly)
- Clean up failed fix script attempts
2026-05-23 12:05:42 +08:00