Skip to content

log_inference_to_file = True not creating log summary file in Stagehand Python #209

@kirtimaan-zs

Description

@kirtimaan-zs

Before submitting an issue, please:

Environment Information

Please provide the following information to help us reproduce and resolve your issue:

Stagehand:

  • Language/SDK: Python
  • Stagehand version: [e.g., 1.0.0]

AI Provider:

  • Provider: OpenAI , Google Gemini
  • Model: gpt-4o , gemini-2.5-flash

Issue Description

When enabling log_inference_to_file = True in the Stagehand Python client, no log summary file is created in the local environment.
This option seems to exist in the API, but it may not be implemented yet for the Python client.

pgsql
Copy code

Steps to Reproduce

  1. Initialize Stagehand in Python with log_inference_to_file=True.
  2. Run a script that triggers Stagehand events.
  3. Check local directory for the log file → none is created.

Minimal Reproduction Code

from browserbase import Stagehand

stagehand = Stagehand(
    log_inference_to_file=True
)

# Trigger any actions to generate events
page = stagehand.page()
page.goto("https://example.com")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions