add advanced runtimeuse client coverage and handler diagnostics#9
Merged
vijit-lark merged 6 commits intomainfrom Mar 17, 2026
Merged
add advanced runtimeuse client coverage and handler diagnostics#9vijit-lark merged 6 commits intomainfrom
vijit-lark merged 6 commits intomainfrom
Conversation
… be specified together Made-with: Cursor
… invocation lifecycle - Add local HTTP server fixture (stdlib, no new deps) for serving downloadable files and receiving artifact upload PUTs - Add READ_FILE command to echo handler for verifying downloaded files - TestArtifactUploadIntegration: verify uploaded content reaches HTTP target - TestPreAgentDownloadables: verify files downloaded into runtime, failure case - TestFullInvocationLifecycle: combined ordering (download → pre-cmd → agent → post-cmd → artifact upload) - Pre-create artifacts_dir to fix chokidar race on non-existent directories Made-with: Cursor
Previously secrets were only redacted from pre/post command stdout/stderr. Now redaction is applied at the send() boundary in session.ts so every outgoing WebSocket message (result, assistant, error) is scrubbed. The logger is also wrapped to prevent secrets from appearing in server logs. - Add createRedactingLogger in logger.ts - Store secrets and redact in session.send() - Add STREAM_TEXT echo handler command for testing - Add TestSecretsRedaction e2e tests (command output, assistant msg, result text, error message) - Add session.test.ts unit tests for redaction Made-with: Cursor
…, and full lifecycle Covers Claude and OpenAI agents with real E2B sandboxes: - pre/post command execution with cwd and failure handling - artifact upload via real S3 presigned URLs with polling helper - full invocation lifecycle (download → pre-cmd → agent → post-cmd → upload) Made-with: Cursor
Add USE_LOCAL_WS escape hatch in conftest to run tests against a local server. Make pre/post command tests write sentinel files for more robust assertions. Install websocat in E2B sandbox and expose a WS-to-SSH proxy for live debugging. Ensure artifacts dir is created before the watcher starts and apply post-invocation delay when artifacts are present. Made-with: Cursor
Make the test harness configurable for remote websocket targets and S3 uploads while adding richer agent tool logging and local shell support for debugging runtime behavior. Made-with: Cursor
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
Test plan
pytest packages/runtimeuse-client-python/test/e2e packages/runtimeuse-client-python/test/llmpackages/runtimeusetest suite for handler and session changesMade with Cursor