google-github-actions / google-github-actions/run-gemini-cli
unable to add files to the context with @
Open
Nobody has claimed this yet.
area/prompts
kind/bug
status/needs-triage
- Dominant language
- TypeScript
- Stars
- 2.1k
- Forks
- 285
- Avg merge
- 8h 8m
- Merged PRs (30d)
- 1
Description
TL;DR
I am trying to add files to the prompt context using @ like I do in the Gemini CLI, but the result is an error
Error: Exiting due to an error processing the @ command.
See logs for more details
Error: Process completed with exit code 1.
Expected behavior
The files I add with @/path/to/file are added to the context.
Observed behavior
The @ is procesed as a command or something like that
Action YAML
- name: Run Prompt
uses: google-github-actions/run-gemini-cli@2a77eb258d8d2447292fd5d9df6e7b49533d4f37
id: analyze-ci-error
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
gemini_api_key: ${{ secrets.GEMINI_API_KEY }}
prompt: |
## Context
@/path/to/a/file
## Question
Answer to the ultimate question of life, the universe, and everything
Log output
Error: Exiting due to an error processing the @ command.
See logs for more details
Error: Process completed with exit code 1.
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the workflow from the Action YAML and trace how the prompt is passed to the @ command processing. Confirm the fix by rerunning the workflow with @/path/to/a/file and verifying that the file is added to the prompt context without an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions, typescript
- Domain
- ci-cd, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100