Skip to content

chore: release main - #520

Merged
stephen-wang24 merged 7 commits into
mainfrom
release-please--branches--main--changes--next
Sep 18, 2026
Merged

stephen-wang24 merged 7 commits into
mainfrom
release-please--branches--main--changes--next

Conversation

@stainless-app

@stainless-app stainless-app Bot commented Sep 15, 2026

Copy link
Copy Markdown
Contributor

✨ 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

  • adk: make AgentEx client HTTP timeouts configurable by env var (#510) (066105f)
  • cli: stamp global.agent.version from the image tag on helm deploys (#504) (a90f622)
  • obs: wire sgp-obs from the SDK for traces, metrics and logs (#518) (d88fac6)
  • registration: report the agent's commit and source repo at registration (#508) (94335d7)
  • tracing: stamp commit_sha automatically when AGENT_COMMIT_SHA is set (#507) (53ab900)

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

  • obs: wire sgp-obs from the SDK for traces, metrics and logs (#518) (d88fac6)

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

RetriggerConfidence Score: 3/5

This PR is not safe to merge until both startup-order bugs are fixed.

Fix All in CursorFindings

  1. P1 Dotenv timeouts load too late
  2. P1 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.
Fix with agent prompt
### Issue 1
src/agentex/lib/adk/utils/_modules/client.py:72-73
`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.

### Issue 2
src/agentex/lib/core/tracing/code_revision.py:undefined-124
`_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.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

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.

  • AgentEx clients read timeout settings from environment variables.
  • Helm deployments derive the agent version from the final image tag.
  • Tracing and registration report verified build commit and repository details.
  • Release metadata moves both packages from 0.26.0 to 0.27.0.
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 timeouts
Loading

Reviews (5) · Last reviewed commit: "chore: release main"

max-parke-scale and others added 2 commits September 15, 2026 16:54
…stration (#508)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…HA is set (#507)

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 4f49802 to 6efe231 Compare September 15, 2026 20:55
enable()


_enable_from_environment()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 _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.

Fix in Cursor Fix in Claude Code Fix in Codex

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 6efe231 to 8b60a57 Compare September 15, 2026 22:21
Comment thread src/agentex/lib/sdk/fastacp/base/base_acp_server.py Outdated
Comment thread src/agentex/lib/core/observability/sgp_obs_setup.py Outdated
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 8b60a57 to ba336f3 Compare September 16, 2026 04:11
@stephen-wang24
stephen-wang24 marked this pull request as ready for review September 16, 2026 04:13
…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>
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from ba336f3 to 3f9fbc2 Compare September 16, 2026 14:59
@stainless-app
stainless-app Bot force-pushed the release-please--branches--main--changes--next branch from 3f9fbc2 to bd2a3ed Compare September 18, 2026 14:58
Comment on lines +72 to +73
if "timeout" not in kwargs:
kwargs["timeout"] = _timeout_from_env()

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Fix in Cursor Fix in Claude Code Fix in Codex

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chakrris if applies, can you follow up on this comment in the next release?

@stephen-wang24
stephen-wang24 merged commit 966bb8a into main Sep 18, 2026
51 checks passed
@stephen-wang24
stephen-wang24 deleted the release-please--branches--main--changes--next branch September 18, 2026 21:16
@stainless-app

stainless-app Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

@stainless-app

stainless-app Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants