-
Notifications
You must be signed in to change notification settings - Fork 1.5k
fix(cli): silent killers — viewer port auto-bump, engine version-match warning, adopt-on-attach, stop --force, npx PATH hint #405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
88b57e5
fix(cli): auto-bump viewer port when 3113 is taken
rohitg00 1f5e774
fix(cli): warn when iii-engine on PATH is not the pinned version
rohitg00 28440d6
fix(cli): add stop --force to bypass Docker-heuristic guard
rohitg00 898052c
fix(cli): adopt running engine on attach (write pidfile + state)
rohitg00 5bb65fe
fix(cli): hint that global install drops the `npx` prefix
rohitg00 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only adopt engines you can prove are local/native.
This path currently treats any reachable
getBaseUrl()as a local nativeiiiinstance. With a remoteAGENTMEMORY_URL, a Docker-published engine, or Windows (wherefindEnginePidsByPort()always returns[]), it still persists{ kind: "native", attached: true }and may emit a local-binary version warning for the wrong process. That changes laterstopbehavior from the existing Docker/ambiguity guard into native PID signaling or a dead-end “could not locate engine process”.At minimum, don't persist native state or run the version check unless you've established that the target is loopback and you actually found a native engine PID to adopt.
Minimal guard to avoid misclassifying foreign engines
Also applies to: 699-703
🤖 Prompt for AI Agents