Skip to content

test(kap-server): fix sessions test using removed getHandle API - #1681

Closed
kermanx wants to merge 1 commit into
mainfrom
fix/kap-server-sessions-test-gethandle
Closed

test(kap-server): fix sessions test using removed getHandle API#1681
kermanx wants to merge 1 commit into
mainfrom
fix/kap-server-sessions-test-gethandle

Conversation

@kermanx

@kermanx kermanx commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue — this fixes a CI failure on main (run 29310725642).

Problem

The agent lifecycle refactor (#1624) renamed the agent lookup on IAgentLifecycleService from getHandle(id) to get(id). createBlockedGoalRig in packages/kap-server/test/sessions.test.ts still called getHandle('main'), which broke:

  • the typecheck job (TS2339: Property 'getHandle' does not exist, plus a cascading implicit-any)
  • the two blocked-goal resume tests (TypeError: getHandle is not a function)

What changed

One line: getHandle('main')get('main') in the test rig. Verified locally: tsgo passes for packages/kap-server and all 53 tests in sessions.test.ts pass.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works. (This PR fixes an existing test; no new tests needed.)
  • Ran gen-changesets skill, or this PR needs no changeset. (Test-only change — no changeset per skill rule 5.)
  • Ran gen-docs skill, or this PR needs no doc update. (No user-facing change.)

The agent lifecycle refactor (#1624) renamed the agent lookup on
IAgentLifecycleService from getHandle(id) to get(id), leaving
createBlockedGoalRig in sessions.test.ts calling a method that no
longer exists. This broke the typecheck and the two blocked-goal
resume tests on main.
@changeset-bot

changeset-bot Bot commented Jul 14, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 687abff

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kermanx kermanx closed this Jul 14, 2026
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