Local deployment template requires ADC and Cloud Logging at import time
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 72/100
Research direction
Generate an ADK project with deployment_target: none, then inspect app/fast_api_app.py and import it in an isolated environment without Application Default Credentials. Trace the --otel-to-cloud entry point and child environment handling, then run the reported regression suite; done means local startup needs no ADC or Cloud Logging, while exact opt-in propagation and existing fallback behavior remain covered.
Written by the indexing model from the issue text.
Description
Baseline
Reproduced from v1.3.1 at 5a306f8956cb1eeae69f9709de0e4d61b44e11e7.
Reproduction
- Generate an ADK project with
deployment_target: none. - Use an isolated local environment without Application Default Credentials.
- Import or start the generated
app/fast_api_app.py.
The generated module unconditionally calls google.auth.default(), constructs google.cloud.logging.Client(), and always sets otel_to_cloud=True.
Actual behavior
A local-only template needs cloud credentials and a Cloud Logging dependency merely to import/start. This makes the none target fail in a normal offline/no-ADC development environment.
Expected behavior
The local target should use Python stdlib logging and start without ADC. Existing cloud OTEL behavior should remain opt-in through the public --otel-to-cloud flag only.
Minimal fix
- use
logging.getLogger(__name__)in the local template and remove its Cloud Logging dependency; - pass a private child-only
AGENTS_CLI_OTEL_TO_CLOUD=1value only when--otel-to-cloudis explicitly set; - remove any inherited copy of that private variable when the option is off;
- read the private flag before loading project
.envfiles, accepting only the exact value1.
Reference implementation: https://github.com/benagentai93-dot/agents-cli/commit/d888f8db85d05e7bb4ed92c711045a246c00b537
Test evidence
Runnable regressions cover dependency output, import without ADC, exact opt-in behavior, inherited-environment removal, explicit child propagation, and the existing ADK fallback flag.
Fork verification on Python 3.11/3.13:
- focused Batch 1 suite: 17 passed
- full root suite: 19 passed
- lint, type check, build, and installed-wheel smoke: passed
- Dominant language
- Python
- Stars
- 6k
- Forks
- 670
- PR merge metrics
- No merged PRs in 30d
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.
More from google/agents-cli
-
documentation
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
google/agents-cli#86 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
google/agents-cli#85 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
google/agents-cli#84 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
google/agents-cli#83 · 2 comments · 1 reaction ·
-
google/agents-cli#79 · 2 comments · 1 assignee ·
All issues in google/agents-cli
Similar issues
-
essnmx good first issue
Difficulty 1/5 Under an hour Newbie friendliness 95/100
-
[Feature] 奇物选择添加优先级 Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
syfoud/Simulated_Scepter#174 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Giskard-AI/giskard-oss#2840 · 1 comment ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success Openarea: repo bug perceived difficulty: 2
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
yeti-platform/yeti#1380 ·