feat(spec): add ToolExecutionContext.userMessageText contract field#2328
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Optional, neutral field carrying the latest user message — for a tool to detect explicit user intent (e.g. a confirm/approval) without re-deriving it from the transcript. Consumed by cloud's confirm-before-change gate. Scope reduced after #2325 (ADR-0025) removed framework service-ai: the agent route that POPULATES this now lives with the AI runtime (cloud-owned), so this PR adds only the contract field; cloud wires the value when it owns the route. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
os-zhuang
force-pushed
the
feat/tool-ctx-user-message
branch
from
June 25, 2026 13:41
78f614c to
40862bc
Compare
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 91 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
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.
Adds an optional, neutral
userMessageTextto theToolExecutionContextcontract — for a tool to detect explicit user intent (e.g. a confirm/approval) without re-deriving it from the transcript. Consumed by cloud's confirm-before-change gate.Scope reduced: my original change also populated this in
service-ai's agent route, but #2325 (ADR-0025) removedservice-aifrom framework (open edition = MCP-only). So this PR now adds only the contract field; the value is populated by whichever layer owns the agent route (cloud, post-migration). Safe + forward-looking on its own.🤖 Generated with Claude Code