Skip to content

Conversation

@drewdrewthis
Copy link
Collaborator

@drewdrewthis drewdrewthis commented Jan 12, 2026

  • Add runId field to ScenarioResult for tracking scenario runs
  • Add RunOptions parameter to run() with langwatch config and batchId
  • Allow programmatic override of env vars for langwatch integration

Changes for: langwatch/langwatch#1074

@drewdrewthis drewdrewthis self-assigned this Jan 12, 2026
@drewdrewthis drewdrewthis force-pushed the issue203/feat-add-programmatic-langwatch-config-to-scenarioconfig-remove-env-var-dependency branch from c375e83 to 12ee25f Compare January 12, 2026 20:27
- Add runId field to ScenarioResult for tracking scenario runs
- Add RunOptions parameter to run() with langwatch config and batchRunId
- Allow programmatic override of env vars for langwatch integration

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@drewdrewthis drewdrewthis force-pushed the issue203/feat-add-programmatic-langwatch-config-to-scenarioconfig-remove-env-var-dependency branch from 12ee25f to 4fba5ad Compare January 12, 2026 20:43
drewdrewthis and others added 2 commits January 12, 2026 22:22
- Resolve batchRunId at call boundary (run.ts) instead of fallback in class
- Remove redundant type exports from runner/index.ts
- Add guard for uninitialized scenarioRunId in setResult
- Add comprehensive tests for runId, batchRunId, and langwatch config

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds tests verifying that concurrent scenario runs with different
API keys create isolated EventBus instances and don't cross-contaminate
events. Also documents the concurrency model in run.ts explaining how
each run() call creates its own isolated EventBus, replacing the old
mutex-based approach.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
drewdrewthis and others added 4 commits January 13, 2026 22:21
Add logging to trace how batchRunId is resolved in the run() function:
- passedBatchRunId: value from options
- fallbackBatchRunId: value from getBatchRunId()
- resolvedBatchRunId: final value used
- optionsKeys: keys present in options object

This helps debug cases where the passed batchRunId isn't being used.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…pport

Enables consuming the package directly from git with pnpm by adding
a prepare script that builds the javascript subdirectory on install.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Skip workspace examples during git dependency install to avoid
Node version conflicts with example packages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
npm ignores pnpm workspace config, avoiding engine validation
issues with workspace example packages.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.

3 participants