Skip to content

feat(stagehand): summarize observe evidence - #238

Merged
aaronlab merged 1 commit into
aaronlab:mainfrom
xclear-cast:codex/stagehand-evidence-summary
May 10, 2026
Merged

aaronlab merged 1 commit into
aaronlab:mainfrom
xclear-cast:codex/stagehand-evidence-summary

Conversation

@xclear-cast

Copy link
Copy Markdown
Contributor

Summary

  • add a compact stagehand_evidence summary beside the existing Stagehand wrapper result output
  • extract selector, description, and method values from nested observe-style results while keeping Stagehand optional
  • add a fake Stagehand-shaped test so the behavior needs no network, browser, or API key

Refs #8.

Validation

  • In the original Korean-path workspace, uv run --python 3.11 --extra dev pytest tests/test_stagehand_integration.py -q failed during Python site initialization because an editable-install .pth path was decoded with the Windows cp949 locale.
  • Re-ran validation from an ASCII clone at F:\bounty-agent-ascii\browsertrace-test:
    • uv run --python 3.11 --extra dev pytest tests/test_stagehand_integration.py -q -> 3 passed
    • uv run --python 3.11 --extra dev pytest tests/test_cli.py -k "public or redact or export" -q -> 7 passed
    • PYTHONUTF8=1 uv run --python 3.11 --extra dev pytest -q -> 326 passed
    • uv build
    • python -m compileall browsertrace\integrations\stagehand.py tests\test_stagehand_integration.py
    • git diff --check HEAD~1 HEAD

@aaronlab aaronlab left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Thanks for the focused Stagehand improvement. I verified this in an isolated worktree:\n\n- uv run --python 3.11 --extra dev pytest tests/test_stagehand_integration.py -q -> 3 passed\n- uv run --python 3.11 --extra dev pytest -q -> 326 passed\n- uv build -> wheel and sdist built\n- git diff --check HEAD~1 HEAD -> clean\n\nThe compact evidence summary fits the current Stagehand observe/action result shape and keeps Stagehand optional.

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.

2 participants