The reason will be displayed to describe this comment to others. Learn more.
🟡 MediumLayers/GrokAdapter.ts:109
potentialGrokSkillTokens filters out only all-uppercase tokens, so a lowercase shell variable like $foo in a prompt such as echo $foo is treated as a skill token and triggers listSkills. When grok inspect fails, sendTurn rejects the entire prompt with ProviderAdapterRequestError instead of sending the literal text. This breaks otherwise-valid prompts that happen to contain ordinary shell syntax. Consider tightening the token classification so common shell variables are not mistaken for skill names, or make discovery failures non-fatal so the prompt is still sent as literal text.
🤖 Copy this AI Prompt to have your agent fix this:
In file @apps/server/src/provider/Layers/GrokAdapter.ts around line 109:
`potentialGrokSkillTokens` filters out only all-uppercase tokens, so a lowercase shell variable like `$foo` in a prompt such as `echo $foo` is treated as a skill token and triggers `listSkills`. When `grok inspect` fails, `sendTurn` rejects the entire prompt with `ProviderAdapterRequestError` instead of sending the literal text. This breaks otherwise-valid prompts that happen to contain ordinary shell syntax. Consider tightening the token classification so common shell variables are not mistaken for skill names, or make discovery failures non-fatal so the prompt is still sent as literal text.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The reason will be displayed to describe this comment to others. Learn more.
Avoid probing lowercase shell variables as Grok skills
When a Grok prompt contains an ordinary lowercase shell variable such as $branch or $file, this condition treats it as a potential skill and makes grok inspect part of turn submission. If inspection is unsupported, fails, or reaches its 10-second timeout, the adapter rejects the turn even though the token was not intended as a skill and the ACP session could otherwise process the prompt; the uppercase-only exception does not cover common lowercase shell variables, so discovery failures should not block ambiguous raw-text tokens.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
You are visitor 01402809 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.