Commit f10b378
fix(cli): add local_development.redis_enabled manifest opt-out (MAY-1086)
agentex agents run unconditionally sets REDIS_URL=redis://localhost:6379 in
the agent process env. Combined with the module-level RedisStreamRepository
instantiated by `from agentex.lib import adk`, this causes silent request
hangs for agents that don't use adk.messages/adk.streaming when no local
Redis is reachable (e.g. Temporal-direct async agents in restricted dev
pods). The lazy redis.asyncio client only fails on first publish, so there
is no startup error to point at the misconfiguration.
Add an explicit `local_development.redis_enabled: bool = true` flag.
Default true preserves existing behavior; users with no local Redis can
set false to skip the REDIS_URL default. acp_type is not a reliable
discriminator here — the codebase has acp_type=async tutorials that
legitimately call adk.messages.create.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7817ced commit f10b378
2 files changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
365 | 365 | | |
366 | 366 | | |
367 | 367 | | |
368 | | - | |
369 | 368 | | |
370 | 369 | | |
371 | 370 | | |
372 | 371 | | |
373 | 372 | | |
374 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
375 | 381 | | |
376 | 382 | | |
377 | 383 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
0 commit comments