Repository navigation
fix: correct work heartbeat query and roster latest versions - #43
Merged
Merged
Conversation
- Send Managed work heartbeat expected_last_heartbeat and desired_ttl_seconds as query parameters; the service ignored them in the JSON body, so lease preconditions and TTLs had no effect. - Accept and type Managed Agent roster child versions saved as "latest"; Session and Deployment references stay numeric.
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.
Summary
environments.work.heartbeat()expected_last_heartbeatanddesired_ttl_secondsas query parameters instead of a JSON body. Calleroptions.queryvalues are still merged.ManagedAgentsMultiagentAgentParams,ManagedAgentsMultiagentAgentReferenceandManagedAgentsMultiagentAgentVersion. Managed Agent roster child versions accept"latest"and positive integer strings, and saved roster versions are typednumber | "latest".Why
"latest"for child Agent references, which the previous types could not express.Verification
npm run buildnpm run typechecknpm testnpm run docs:checkCommands and results:
Impact
CHANGELOG.mdunderUnreleased, or not applicable (explain below).env.live, logs, or generated test output committedAdditional context:
tests/fixtures/managed/api-methods.jsonalready declared both heartbeat fields as query parameters, so fixtures did not need changes.versionis nownumber | "latest". The changelog explains how to check for"latest"before treating it as a number."latest". Only TypeScript sent heartbeat parameters in the body.