Skip to content

fix: add update_browse_history handler and fix verify_apps crash#156

Merged
abrichr merged 1 commit into
mainfrom
fix/setup-browse-history-and-verify-apps
Mar 20, 2026
Merged

fix: add update_browse_history handler and fix verify_apps crash#156
abrichr merged 1 commit into
mainfrom
fix/setup-browse-history-and-verify-apps

Conversation

@abrichr
Copy link
Copy Markdown
Member

@abrichr abrichr commented Mar 20, 2026

Summary

  • Bug 6a: Added update_browse_history config handler — writes Chrome history entries to History.sqlite via /execute_windows. Kills Chrome first (DB lock), finds profile path via glob, inserts URLs with Chrome timestamp format (microseconds since 1601-01-01).
  • Bug 6b: Fixed verify_apps crash — WAA uses "app" (list) parameter, handler expected "apps" (string). Now handles both and uses repr() for safe serialization.

Test plan

  • 37/37 tests pass
  • Generated Python commands compile successfully
  • Test on live WAA VM with YouTube task (44ee5668)

🤖 Generated with Claude Code

Bug 6a: The YouTube task config uses "update_browse_history" to
pre-populate Chrome's history.sqlite with URLs before the agent runs.
This was being skipped as an unknown type. Now translates to a Python
script that kills Chrome, finds the History DB, and INSERTs entries
with proper Chrome timestamps (microseconds since 1601-01-01).

Bug 6b: verify_apps crashed with "AttributeError: 'list' object has
no attribute 'replace'" because the WAA task JSON uses "app" (list)
but the handler expected "apps" (string). Now handles both parameter
names and properly serializes the list with repr().

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@abrichr abrichr force-pushed the fix/setup-browse-history-and-verify-apps branch from e9211ed to f6f343a Compare March 20, 2026 15:52
@abrichr abrichr merged commit 56e1b63 into main Mar 20, 2026
1 check passed
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