feat: hot reload user scripts#1380
Open
130040167 wants to merge 2 commits into
Open
Conversation
Contributor
Author
|
主要是完善脚本市场的热重载功能。因为有的时候会重新安装、主动修一下脚本的bug,尤其是让ai改起来会更加方便 |
Owner
|
这个功能方向可以,不过建议加一个开关再合并。 现在 launcher 在 bridge 注入成功后会直接启动 建议:
加完开关后我觉得这个 PR 更适合合并。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.jsfiles, anduser_scripts.json.Verification
cargo fmt --checkcargo test -p codex-plus-corecargo test -p codex-plus-core --test bridge_routescargo test -p codex-plus-launcher --no-runcargo build -p codex-plus-launcher --releaseNote: hot reload re-executes enabled scripts. Scripts that register global listeners or mutate DOM still need to be idempotent, or require a page reload to fully clear old side effects after disabling.