You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sequenceDiagram
participant ConnectGame as connect_game.py
participant ConfigModule as 配置模块
participant Execute as execute()
ConnectGame->>ConfigModule: 导入配置并读取启动参数
ConfigModule-->>ConnectGame: 返回 launch_arguments 或旧 args
ConnectGame->>Execute: 传入程序路径和启动参数
Loading
Merge Risk: Minimal · previous review f7798
The change makes game launches read windows.launch_arguments, falling back to windows.args only when the new field is absent. No unresolved merge-blocking issue was found. Update the sub-repository gitlink and recheck the latest HEAD before merging, as the author noted.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
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
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.
问题
ok-script 使用
windows.launch_arguments声明游戏启动参数,工具的连接入口却只读取windows.args。从工具拉起游戏时,正式配置中的参数因此丢失。修改
launch_arguments;只有该键缺省时才兼容旧args字符串/列表,显式None或空串不回退。回调支持保留连接辅助脚本的现有运行环境,不额外初始化完整框架服务;依赖完整应用服务的回调仍由任务执行器启动。
验证
npm test通过。execute(arguments=...)的内容;原始主线能复现正式字符串和回调被丢弃。npm run package通过。跨仓依赖
JetBrains 共享源码引用同步已通过 AliceJump/ok-script-toolkit-jetbrains#44 合并;本 PR 的 gitlink 已更新为子仓 main 上的
c26657b4e41b650fdea07b6fd07833464ff00c0c。该指针同时包含子仓 main 已有的 #42 缓存预览任务类型修复,未重新修改其实现。共享运行代码
f7798cf68b495f94138459ec52a930f47c9557f5与子仓 PR 均已获得覆盖对应 HEAD 的无 finding 审阅。最终ee4293f125eb325ee021466ff99726f5662b374f仅追加 gitlink,四项 CI 全部通过;其 CodeRabbit 增量审阅仍受额度限制时,PR 于 2026-12-01 11:22:04 UTC 合并为b433144657e816d41e72c5d1ff5a3b4a71a48fef。最终指针提交未获得新一轮 CodeRabbit coverage,不将此前审阅误记为覆盖该提交。已核对 squash 后的主线 tree 与最终 PR HEAD 完全一致;合并后 CI 46635746424 的 VS Code、JetBrains 和两套 PowerShell 审阅脚本检查全部通过。此次修复单独从 main 提交,与 #48 的整体审查分开。
Summary by CodeRabbit
功能改进
windows.launch_arguments启动参数配置,支持字符串和回调;仅在该配置未声明时才使用旧版windows.args。测试