Skip to content

Release/v0.2.3#8

Merged
kalil0321 merged 5 commits into
mainfrom
release/v0.2.3
Dec 26, 2025
Merged

Release/v0.2.3#8
kalil0321 merged 5 commits into
mainfrom
release/v0.2.3

Conversation

@kalil0321
Copy link
Copy Markdown
Owner

@kalil0321 kalil0321 commented Dec 26, 2025

Greptile Summary

This release (v0.2.3) includes version management improvements, logging cleanup, and installation documentation updates. The version is now dynamically imported from __version__ instead of hardcoded strings, external logs from browser-use and claude-agent-sdk are suppressed, and the README provides clearer instructions for installing browser-use from git.

Key changes:

  • Fixed hardcoded version display in opencode_ui.py and HAR creator metadata by importing from __init__.py
  • Simplified logging suppression for browser-use by setting environment variable and using a dedicated suppression function
  • Added logging suppression for claude_agent_sdk in engineer.py and utils.py
  • Improved README installation instructions, fixing typo in git URL (removed trailing T)
  • Removed browser-use from PyPI dependencies in favor of git-based installation
  • Simplified agent result extraction to use final_result() method

Issues found:

  • The final_result() call on line 791 of browser.py assumes it's a method, but if it's actually a property in the browser-use API, this will cause an error

Confidence Score: 4/5

  • This PR is generally safe to merge with one potential runtime issue to verify
  • The changes are mostly low-risk improvements (version management, logging, documentation). However, the refactored result extraction logic in browser.py that calls final_result() as a method needs verification against the browser-use API - if it's a property rather than a method, this will cause runtime errors. The environment variable for logging may also not work as expected if set after imports.
  • Verify browser.py changes work correctly with the browser-use API, especially the final_result() method call

Important Files Changed

Filename Overview
README.md Fixed typo in git URL and improved installation instructions for agent mode
pyproject.toml Bumped version to 0.2.3 and added comment explaining browser-use git installation requirement
src/reverse_api/browser.py Simplified logging suppression, fixed result extraction using final_result(), and dynamically imported version

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

8 files reviewed, 2 comments

Edit Code Review Agent Settings | Greptile

Comment thread src/reverse_api/browser.py Outdated
Comment thread src/reverse_api/browser.py
@kalil0321 kalil0321 merged commit cd62c31 into main Dec 26, 2025
1 check passed
kalil0321 added a commit that referenced this pull request May 6, 2026
…item 5)

Lets agents and CI wrappers sanity-check inputs (prompt, url, config,
env vars, deps, output dir writability) without launching a browser
or burning LLM tokens. Implies --json since --dry-run is fundamentally
about machine-parseable validation.

Output shape: same top-level fields as `agent --json` (schema_version,
status, run_id=null, prompt, url, mode="dry-run", error, error_kind)
plus:
  - `would_run` sub-object: agent_provider, sdk, model, output_dir,
    headless — what an actual `agent` invocation would do
  - `checks` array: one entry per validation step with name, status
    (ok | warn | error), and a human message

Validations:
  1. prompt non-empty
  2. url is http(s):// if provided
  3. agent_provider in {auto, chrome-mcp}
  4. SDK env var present (warn — SDK may resolve auth elsewhere)
  5. node binary in PATH (required by both MCP servers) + version
  6. chrome-mcp without --headless: warn that auto-connect needs Chrome
     146+ with remote-debugging enabled (not auto-checkable)
  7. output_dir writable (probe-write-and-delete)

Aggregate status is `error` if any check is `error`, otherwise `ok`.
Error kinds are `misuse` for prompt/url issues, `config_invalid` for
env/deps/output_dir issues — matching the schema-v1 error_kind enum.

Tests: 6 new in TestAgentDryRun covering: ok path, missing prompt
(misuse), bad url (misuse), unwritable output_dir (config_invalid),
that run_agent_capture is NOT called under --dry-run, and --help
mentions the flag with "Implies --json".

Closes the last medium-priority blocker on issue #62. Item #8
(`run --json` wrapped) intentionally deferred — orthogonal surface.

Co-Authored-By: Claude Opus 4.7 (1M context) <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.

1 participant