Skip to content

fix: solving start tab not applying browsers preferences properly#346

Open
LucasAlvws wants to merge 2 commits intoautoscrape-labs:mainfrom
LucasAlvws:start_tab_issue
Open

fix: solving start tab not applying browsers preferences properly#346
LucasAlvws wants to merge 2 commits intoautoscrape-labs:mainfrom
LucasAlvws:start_tab_issue

Conversation

@LucasAlvws
Copy link
Collaborator

@LucasAlvws LucasAlvws commented Jan 22, 2026

Pull Request

Description

Related Issue(s)

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Refactoring (no functional changes, no API changes)
  • Performance improvement
  • Tests (adding missing tests or correcting existing tests)
  • Build or CI/CD related changes

How Has This Been Tested?

# Include code examples if relevant

Testing Checklist

  • Unit tests added/updated
  • Integration tests added/updated
  • All existing tests pass

Screenshots

Implementation Details

API Changes

Additional Info

Checklist before requesting a review

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have run poetry run task lint and fixed any issues
  • I have run poetry run task test and all tests pass
  • My commits follow the conventional commits style

@LucasAlvws LucasAlvws self-assigned this Jan 22, 2026
@LucasAlvws LucasAlvws added the bug Something isn't working label Jan 22, 2026
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment on lines +197 to 201
self._tabs_opened[valid_tab_id] = initial_tab
await initial_tab.close()
tab: Tab = await self.new_tab()
logger.info('Initial tab attached')
return tab
Copy link
Member

Choose a reason for hiding this comment

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

you assigned the initial_tab to the tabs_opened dict, it can cause some conflicts

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can remove it, but I dont think that has any problem, because the tab.close() remove pop the valid_tab_id from tabs_opened. What you think? "self._tabs_opened[valid_tab_id] = initial_tab" this line was already in the code before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants