Skip to content

fix(serve): restore query helper#3658

Merged
esengine merged 1 commit into
esengine:main-v2from
paradoxSCH:fix-3645-serve-dollar-helper
Jun 9, 2026
Merged

fix(serve): restore query helper#3658
esengine merged 1 commit into
esengine:main-v2from
paradoxSCH:fix-3645-serve-dollar-helper

Conversation

@paradoxSCH

Copy link
Copy Markdown
Contributor

Summary

  • restore the missing $ query helper in the embedded serve-mode web UI
  • add a regression test that ensures both $ and $$ helpers are defined before the page uses them

Fixes #3645

Tests

  • go test ./internal/serve -run TestServeIndexDefinesQueryHelpers -count=1
  • go test ./internal/serve -count=1

Notes

  • local commit/push hooks currently fail because they try to run npm from the repository root where package.json is absent; the relevant Go tests above were run manually

@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Jun 9, 2026
@paradoxSCH paradoxSCH marked this pull request as ready for review June 9, 2026 09:54

@esengine esengine left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified end-to-end. Reproduced #3645: the embedded serve UI references $ 51 times starting at const log = $('#log') but never defines it (only $$ was defined), so the page throws ReferenceError: $ is not defined and the whole script dies. With the one-line helper restored, the regression test and the full serve package pass. Thanks for the fix and the test.

@esengine esengine merged commit b0b1b17 into esengine:main-v2 Jun 9, 2026
10 checks passed
SuMuxi66 pushed a commit to SuMuxi66/DeepSeek-Reasonix that referenced this pull request Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: $ is not defined — Reasonix Web UI (serve mode) 页面交互完全失效

2 participants