You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(test): expect the lease-id refusal when shutdown omits the lease id - #4941
#4911 and #4917 merged into 0.22 35 seconds apart. #4911 refuses any request to a leased session that omits its lease id with UNAUTHORIZED / LEASE_SESSION_MISMATCH, before any handler runs. #4917 added a shutdown test whose "omitting" case still expected a DEVICE_IN_USE response. That case now throws, so Coverage fails on 0.22 (f409db1) and on every PR against it.
The omitting case now expects the #4911 refusal and checks it does not name the session. The sending case is unchanged.
Validation
npx vitest run packages/daemon/src/sessions/handlers/__tests__/session-shutdown.test.ts: 7 passed.
This PR is ready at 0aa996b. It updates one test file to expect the lease-id refusal when shutdown omits the lease id, and it touches no production path. No conflicts are known. The only failing checks are Body rules, which show as cancelled, so they look unrelated to this diff. Not verified here: the vitest file was not run, so the 7-passed claim is the author's. Not blocking: PR #4943 edits the same test file to fix the same 0.22 break, so the two PRs conflict and only one can merge; #4941 is the smaller diff. The second rejects.not.toMatchObject({details:{session}}) assertion cannot fail on this route, and the if (!leaseId) return inside the shared loop makes the test two tests in one body. Asserting details.field === 'leaseId' or splitting the omitting case would tighten it, and both can be taken or left. Before merge, decide between #4941 and #4943, merge one, and close the other.
Cleanup after merge: the local and remote branch fix/0.22-shutdown-lease-test are removed, and the temporary PR body files are removed. The change was made in the coordinator checkout, which is back on 0.22. No worktree, T3 device, daemon or session was opened for this PR.
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
ready-for-humanValid work that needs human implementation, judgment, or maintainer merge
1 participant
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
#4911 and #4917 merged into
0.2235 seconds apart. #4911 refuses any request to a leased session that omits its lease id withUNAUTHORIZED/LEASE_SESSION_MISMATCH, before any handler runs. #4917 added a shutdown test whose "omitting" case still expected aDEVICE_IN_USEresponse. That case now throws, so Coverage fails on0.22(f409db1) and on every PR against it.The omitting case now expects the #4911 refusal and checks it does not name the session. The sending case is unchanged.
Validation
npx vitest run packages/daemon/src/sessions/handlers/__tests__/session-shutdown.test.ts: 7 passed.0.22(job 137128314290) and on refactor(limrun): ship Limrun as the @agent-device/limrun plugin #4846.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.