Conversation
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] when starting a game, my test showed that at least one AI first listed the games with games.list and then tried games.start
with { "gameId": "294100" } which of course failed. Can you redesign the build-in commands so they are more coherent in what th...
Fix game command coherence - accept both game ID and launch target
Sep 13, 2025
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 an issue where AI agents would get confused by
games.listoutput and fail when trying to start games using Steam App IDs or other launch targets.Problem
When AI agents call
games.list, they see output like:The AI would then try
games.start {"gameId": "294100"}using the prominent Steam App ID, which would fail with"Game '294100' not found". This created a poor user experience where the commands appeared incoherent - what you see ingames.listdoesn't work ingames.start.Solution
Made the game management commands more forgiving and the output clearer:
1. Forgiving Input Resolution
Added
resolveGameId()helper that accepts both:"rimworld"(configured ID)"294100"(Steam App ID),"/path/to/game"(direct path), etc.All game commands now use this resolution:
games.start,games.stop,games.kill,games.status2. Clearer Output Format
games.listnow shows:This makes it clear which identifiers can be used in commands.
3. Better Error Messages
Instead of
"Game '294100' not found", now shows:"Game '294100' not found. Use games.list to see available games."Results
Before:
games.start {"gameId": "294100"}→ ❌"Game '294100' not found"After:
games.start {"gameId": "294100"}→ ✅"Game 'rimworld' (RimWorld) started successfully"games.start {"gameId": "rimworld"}→ ✅ Still works as beforeTesting
Added comprehensive tests covering:
"rimworld")"294100")"/opt/minecraft/start.sh")All existing functionality is preserved while fixing the coherence issue.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.