-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Bug Description
The Playwright skills (navigate_to_url and take_screenshot) each create their own browser sessions instead of sharing a single session. This causes screenshots to be blank because:
- navigate_to_url creates session A and navigates to a URL
- take_screenshot creates session B (fresh/blank) and takes a screenshot of an empty page
Evidence
From agent logs:
- Navigation: sessionID: session_1758373522286453631
- Screenshot: sessionID: session_1758373522844540590
Expected Behavior
Skills should share the same browser session so that:
- Navigation happens in session A
- Screenshot captures the content from the same session A
Current Implementation Issue
Both skills have getOrCreateSession() methods that always create new sessions:
take_screenshot.go:238-246:
func (s *TakeScreenshotSkill) getOrCreateSession(ctx context.Context) (*playwright.BrowserSession, error) {
config := playwright.DefaultBrowserConfig()
session, err := s.playwright.LaunchBrowser(ctx, config)
// Always creates new session
}Solution
Implement session sharing in the Playwright service so skills can reuse existing sessions instead of always creating new ones.
Impact
- Screenshots are blank/empty
- No access logs showing agent reaching websites
- Poor user experience with browser automation workflows
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working