chore: release main - #520
Conversation
4f49802 to
6efe231
Compare
| enable() | ||
|
|
||
|
|
||
| _enable_from_environment() |
There was a problem hiding this comment.
_enable_from_environment() runs once when code_revision is imported. Normal worker startup imports register_agent before EnvironmentVariables.refresh() loads supported .env and .env.local files. A valid AGENT_COMMIT_SHA from those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.
Knowledge Base Used:
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agentex/lib/core/tracing/code_revision.py
Line: 124
Comment:
`_enable_from_environment()` runs once when `code_revision` is imported. Normal worker startup imports `register_agent` before `EnvironmentVariables.refresh()` loads supported `.env` and `.env.local` files. A valid `AGENT_COMMIT_SHA` from those files reaches registration but never enables tracing. Run the hook after refresh, or read the value lazily.
**Knowledge Base Used:**
- [Observability](https://app.greptile.com/scale-ai/-/custom-context/knowledge-base/scaleapi/scale-agentex-python/-/docs/observability.md)
- [Agent runtime](https://app.greptile.com/scale-ai/-/custom-context/knowledge-base/scaleapi/scale-agentex-python/-/docs/agent-runtime.md)
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
@max-parke-scale if applies, can you follow up on this comment in the next release?
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
6efe231 to
8b60a57
Compare
8b60a57 to
ba336f3
Compare
…oys (#504) Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
ba336f3 to
3f9fbc2
Compare
3f9fbc2 to
bd2a3ed
Compare
| if "timeout" not in kwargs: | ||
| kwargs["timeout"] = _timeout_from_env() |
There was a problem hiding this comment.
create_async_agentex_client() reads these values while agentex.lib.adk builds its module clients. Normal FastACP startup does not load .env or .env.local until the later lifespan call to EnvironmentVariables.refresh(). A timeout set there is ignored, and each existing client keeps the 5-second connect default. Load dotenv before these clients are built, or apply the timeout after refresh.
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agentex/lib/adk/utils/_modules/client.py
Line: 72-73
Comment:
`create_async_agentex_client()` reads these values while `agentex.lib.adk` builds its module clients. Normal FastACP startup does not load `.env` or `.env.local` until the later lifespan call to `EnvironmentVariables.refresh()`. A timeout set there is ignored, and each existing client keeps the 5-second connect default. Load dotenv before these clients are built, or apply the timeout after refresh.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.There was a problem hiding this comment.
@chakrris if applies, can you follow up on this comment in the next release?
✨ Stainless prepared a new release
agentex-client: 0.27.0
0.27.0 (2026-09-18)
Full Changelog: agentex-client-v0.26.0...agentex-client-v0.27.0
Features
Reverts
agentex-sdk: 0.27.0
0.27.0 (2026-09-18)
Full Changelog: agentex-sdk-v0.26.0...agentex-sdk-v0.27.0
Features
Reverts
This pull request is managed by Stainless's GitHub App.
The semver version number is based on included commit messages. Alternatively, you can manually set the version number in the title of this pull request.
For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request.
🔗 Stainless website
📚 Read the docs
🙋 Reach out for help or questions
This PR is not safe to merge until both startup-order bugs are fixed.
Fix with agent prompt
Summary
Release 0.27.0 adds configurable HTTP timeouts, deployment version stamping, and build provenance for tracing and registration. It also updates both package versions and their release history.
Diagram
sequenceDiagram participant App as Agent process participant ADK as ADK import participant Client as AsyncAgentex client participant Life as FastACP lifespan participant Env as EnvironmentVariables participant API as AgentEx API App->>ADK: Import agentex.lib.adk ADK->>Client: Build module clients Client->>Client: "Read AGENTEX_CLIENT_* from os.environ" Client->>Client: Save current or default timeouts App->>Life: Start server lifespan Life->>Env: refresh() Env->>Env: Load .env and .env.local in development Life->>API: Check compatibility and register agent ADK->>API: Send later requests with saved timeoutsReviews (5) · Last reviewed commit: "chore: release main"