chore: release main - #520
Open
stainless-app[bot] wants to merge 5 commits into
Open
stainless-app[bot] wants to merge 5 commits into
stainless-app[bot] wants to merge 5 commits into
Conversation
stainless-app
Bot
force-pushed
the
release-please--branches--main--changes--next
branch
from
September 15, 2026 20:55
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.Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
stainless-app
Bot
force-pushed
the
release-please--branches--main--changes--next
branch
from
September 15, 2026 22:21
6efe231 to
8b60a57
Compare
stephen-wang24
marked this pull request as draft
September 15, 2026 22:29
This was referenced Sep 15, 2026
stainless-app
Bot
force-pushed
the
release-please--branches--main--changes--next
branch
from
September 16, 2026 04:11
8b60a57 to
ba336f3
Compare
stephen-wang24
marked this pull request as ready for review
September 16, 2026 04:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ Stainless prepared a new release
agentex-client: 0.27.0
0.27.0 (2026-09-16)
Full Changelog: agentex-client-v0.26.0...agentex-client-v0.27.0
Features
Reverts
agentex-sdk: 0.27.0
0.27.0 (2026-09-16)
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
The PR is not safe to merge yet because span stamping still misses
AGENT_COMMIT_SHAloaded from.env.Fix with agent prompt
Summary
This release makes agent build provenance automatic for tracing and registration. It also publishes both packages as version 0.27.0 and records the release notes.
AGENT_COMMIT_SHAon spans when the process starts.Diagram
sequenceDiagram participant Process participant Revision as code_revision participant Env as EnvironmentVariables participant Register as register_agent participant API as AgentEx API participant Span as tracing processor Process->>Revision: import module Revision->>Revision: read process AGENT_COMMIT_SHA Process->>Env: refresh() Env->>Env: load .env files in development Env-->>Register: commit and source repo Register->>Register: check SHA and normalize repo Register->>API: POST /agents/register with metadata Process->>Span: emit span Revision-->>Span: cached commit or noneReviews (3) · Last reviewed commit: "chore: release main"