Skip to content

fix(browser): keep agent browser work visible - #167

Merged
badcuban merged 3 commits into
mainfrom
fix/browser-agent-ownership
Aug 22, 2026
Merged

badcuban merged 3 commits into
mainfrom
fix/browser-agent-ownership

Conversation

@badcuban

@badcuban badcuban commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Problem:
When an agent opened a closed browser panel, its work could stay hidden behind a blank tab. Cleanup also did not distinguish agent-owned tabs from the user's browser state, and chat had no durable browser receipt.

Fix:
Track who opened the panel and which agent owns each tab. Show agent work when the panel was closed, preserve user focus when it was already open, yield cleanup after user interaction, and record the browser result in chat.

Validation:

  • vp fmt
  • vp lint (passes with existing repo warnings)
  • vp run typecheck
  • Full web browser suite: 41 files, 472 tests passed
  • Focused browser coverage: ChatView.browser 118 passed
  • Preview automation host: 16 passed
  • Web, server, and desktop builds passed
  • Isolated packaged Electron smoke passed with temporary app and Threadlines data directories
  • Exact-head GitHub CI on 4dd78ed477e06f1c68f3bf79670cb07c024dd4d0 passed, including format, lint, typecheck, unit tests, browser tests, desktop build, CodeQL, release smoke, and package dry run

Known local limitation:
The two focused unit files browserPanelStore.test.ts and session-logic.test.ts hit the repository's existing Windows Vitest setup failure before collecting tests (Cannot read properties of undefined (reading 'config')). The full exact-head Linux CI job passed.

@vercel

vercel Bot commented Aug 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
threadlines Ready Ready Preview Aug 22, 2026 5:49am

Request Review

@github-actions github-actions Bot added size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Aug 21, 2026
@badcuban
badcuban force-pushed the fix/browser-agent-ownership branch from 915b8e9 to 379ec63 Compare August 21, 2026 20:49
@badcuban
badcuban marked this pull request as ready for review August 21, 2026 21:02
@badcuban
badcuban marked this pull request as draft August 21, 2026 21:04
@badcuban
badcuban force-pushed the fix/browser-agent-ownership branch from 379ec63 to 4dd78ed Compare August 21, 2026 21:04
@badcuban
badcuban marked this pull request as ready for review August 22, 2026 05:48
@badcuban
badcuban merged commit 562f871 into main Aug 22, 2026
15 checks passed
@badcuban
badcuban deleted the fix/browser-agent-ownership branch August 22, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant