Skip to content

Add runtime heartbeats and client timeout diagnostics#37

Merged
vijit-lark merged 5 commits intomainfrom
vd-20260427-1618
Apr 28, 2026
Merged

Add runtime heartbeats and client timeout diagnostics#37
vijit-lark merged 5 commits intomainfrom
vd-20260427-1618

Conversation

@vijit-lark
Copy link
Copy Markdown
Contributor

@vijit-lark vijit-lark commented Apr 27, 2026

Summary

  • Add runtime heartbeat messages while requests are in flight so clients can distinguish slow handlers from silent connections.
  • Add Python client idle timeout and callback timeout diagnostics for assistant and artifact callbacks, plus deterministic cleanup of one-shot transport iterators to release WebSocket connections and sender tasks.
  • Fix CLI integration test harness behavior after the CLI entrypoint started being spawned from Vitest, and keep the 0.14.1 package version bumps.

Test plan

  • cd packages/runtimeuse && npm run build && npm run typecheck && npm test (146 passed)
  • cd packages/runtimeuse && npm run test:integration (5 passed)
  • cd packages/runtimeuse-client-python && uv run --with pytest --with pytest-asyncio pytest test -m "not e2e and not sandbox and not llm" -q (54 passed, 54 deselected)
  • cd packages/runtimeuse-client-python && uv build

Not run: Python e2e, sandbox, and llm tests; these require external services/API-backed resources.

Made with Cursor

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 353db03. Configure here.

Comment thread packages/runtimeuse-client-python/src/runtimeuse_client/client.py Outdated
Ensure one-shot client calls close async transport generators so WebSocket sender tasks and connections are released promptly.

Made-with: Cursor
Ensure spawned CLI processes run their entrypoint outside Vitest and wait for terminal WebSocket messages without requiring the session to close.

Made-with: Cursor
@vijit-lark vijit-lark merged commit c9aef0d into main Apr 28, 2026
6 checks passed
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