Repository navigation
Document that task.progress does not renew leases - #919
Merged
Merged
Conversation
Progress events preserve the claim deadline. Correct the handler summary and regenerate both operation references so callers use task.heartbeat for renewal. Signed-off-by: zlareb1 <[email protected]>
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.
Changelog category (leave one):
Why
task.progressrecords a note without extending its lease. Its generated summary says that it extends the lease, contradicting thenotefield and the handler. A caller relying on that summary can let its claim expire while posting progress.Scope and risk
Correct the handler docstring and regenerate the operations index and task reference with the maintained generator. The handler records the same event and preserves the same lease deadline. SDK tables and MCP listings do not derive their descriptions from this handler docstring.
Compatibility, rollout and rollback
Tests
python -m scripts.codegen.docs_referenceregenerated both reference locations;--checkpasses.git diff --checkpasses. An AST comparison confirms that the module is identical after excluding the one changed docstring.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated: Codex corrected the source summary and ran the maintained generator. The lease handler and generated diff were checked against the ownership and version-writing paths.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist