Repository navigation
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?
Production advanced past the scaleapi#506 commit that the earlier back-sync brought over. Merges 761833e so staging carries the current production trunk again. Merge commit, never cherry-pick -- a rewritten SHA would leave 'git merge-base --is-ancestor prod/main staging/main' false, which is what the generate workflow's codegen hold tests. Conflict-free this time. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
PR scaleapi#4 was merged with squash rather than a merge commit, rewriting the incoming history into one single-parent commit. Staging main kept the right tree but lost its ancestral link to both the inherited SDK history and the production trunk, leaving 'git merge-base --is-ancestor prod/main staging/main' false -- the exact check the generate workflow's codegen hold performs. This merge restores that link and brings production releases scaleapi#520 and scaleapi#525, which landed while the PR was open. The squash also destroyed the merge base, so a normal 3-way merge reported 70+ spurious add/add conflicts against the orphan root. The resolution is not ambiguous: main's tree is byte-identical to next's tree before the back-sync, so main contributes nothing next lacks. This commit therefore takes next's tree wholesale, with both trunks as parents -- content equals next exactly, and no hand-resolution was involved. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
chore(stlc): restore trunk ancestry and back-sync production scaleapi#520/scaleapi#525
✨ 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"