Skip to content

Fix #1035: refresh extension tab metadata after navigation#1073

Closed
roshanasingh4 wants to merge 1 commit intoopenclaw:mainfrom
roshanasingh4:fix/1035-extension-tabs-stale
Closed

Fix #1035: refresh extension tab metadata after navigation#1073
roshanasingh4 wants to merge 1 commit intoopenclaw:mainfrom
roshanasingh4:fix/1035-extension-tabs-stale

Conversation

@roshanasingh4
Copy link
Copy Markdown
Contributor

Fixes #1035.

Problem

  • For the Chrome extension profile (driver: extension), browser tabs reads metadata from the relay server’s /json/list.
  • The relay cached target metadata from Target.attachedToTarget and never updated it, so after navigation the tab’s title/url in /json/list remained stale even though navigation + snapshots worked.

Fix

  • Handle Target.targetInfoChanged events in src/browser/extension-relay.ts and update the cached targetInfo for the matching targetId, keeping /json/list fresh.

Tests

  • Extend src/browser/extension-relay.test.ts with a regression that simulates Target.targetInfoChanged and asserts /json/list reflects updated title/url.

Handle Target.targetInfoChanged in extension relay so /json/list reflects updated title/url after navigation. Adds regression coverage.
@steipete steipete self-assigned this Jan 17, 2026
steipete added a commit that referenced this pull request Jan 17, 2026
Thanks @roshanasingh4.

Co-authored-by: Roshan Singh <88576930+roshanasingh4@users.noreply.github.com>
@steipete steipete closed this Jan 17, 2026
@steipete
Copy link
Copy Markdown
Contributor

Landed on main via rebase.

Commits:

Tests: pnpm lint && pnpm build && pnpm test (build failed: src/media-understanding/attachments.ts TS2322 "document" not assignable; tests not run).

Thanks @roshanasingh4!

zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Thanks @roshanasingh4.

Co-authored-by: Roshan Singh <88576930+roshanasingh4@users.noreply.github.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.

browser tabs CLI shows stale title/URL after navigation (chrome extension profile)

2 participants