Repository navigation
fix(init/opencode): apply the version floor on dry-run and time out the probe - #4534
Open
cestercian wants to merge 1 commit into
Open
cestercian wants to merge 1 commit into
cestercian wants to merge 1 commit into
Conversation
…he probe Dry-run skipped the 1.18.29 check and previewed writing the plugin that a real run refuses. It now reads the version and prints the same refusal. The version probe is limited to 5 seconds. A hung wrapper and the child it started are killed and treated as no version, so init still installs the plugin. Fixes rtk-ai#4519
📊 Automated PR Analysis
SummaryFixes OpenCode init dry-run to apply the same 1.18.29 version floor as a real run, previewing the same refusal instead of writing plugins/rtk.ts for versions that would actually be rejected. Also adds a 5-second timeout to the Review Checklist
Linked issues: #4519 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
Author
|
Friendly ping when someone has a minute, glad to adjust anything. |
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.
Fixes #4519
Summary
rtk init --opencode --dry-runskipped the OpenCode 1.18.29 floor and previewed writingplugins/rtk.tsfor versions a real run refuses (e.g. 1.1.4). Dry-run now runs the same version check and prints the same refusal, without writing the file.opencode --versionis capped at 5 seconds. On Unix a timeout kills the process group so a hung wrapper and its child both stop. A missing, failing, or hung probe is treated as no version, and init still installs the plugin.Testing
opencodestub still gets the plugin installedcargo clippy --all-targets -- -D warningscleanOne unrelated suite failure on the agent VM (
git_log_malformed_digit_run_propagates_real_git_error) is a git 2.43 vs 2.51 message mismatch, not from this change.