google-github-actions / google-github-actions/run-gemini-cli

unable to add files to the context with @

Open
#287 7 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.