Skip to content

agents: forward flowStartedAt and firstAttemptAt through ConnectorStepContext - #1799

Merged
longquanzheng merged 1 commit into
mainfrom
agents-connector-context-identities
Nov 13, 2026
Merged

longquanzheng merged 1 commit into
mainfrom
agents-connector-context-identities

Conversation

@longquanzheng

Copy link
Copy Markdown
Contributor

Summary

ConnectorStepContext (TypeScript) now exposes flowStartedAt and firstAttemptAt from the tool Step's context. The conformance test that pins its member list includes them, and a new test runs a connector operation that reads both through ConnectorToolSource.

Why

Released connectors read these Context members inside a Call: the Gmail connector's send builds its Message-ID from call.context.runId and call.context.flowStartedAt, and six operations read call.context.firstAttemptAt. Inside an agent tool Step both were undefined, so a Gmail send always failed (flowStartedAt.getTime() threw, reported as VALIDATION: message could not be encoded). An audit of every call.context.* read in the connectors library found no other missing member. The Python side follows in a separate PR.

Testing

  • npm run typecheck (the package's lint gate).
  • connector-tool-source.integration.test: 26/26, including the new test.
  • connector-tools.integration.test against a real Dex engine (dexcli 1.47.3): 34/34.
  • CI runs the full suites.

…nnectorStepContext

Released connectors read call.context.flowStartedAt and firstAttemptAt. The
tool Step's ConnectorStepContext did not forward them, so such an operation
failed with a TypeError inside an agent tool Step.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant